View Issue Details

IDProjectCategoryView StatusLast Update
0002454JEDI VCSClient (Gui)public2008-11-15 07:25
ReporteranonymousAssigned ToUSchuster 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.40 (First JVCS release) 
Target VersionFixed in Version2.40 RC2 (Client) 
Summary0002454: Problem with Rename Module and uppercase letters
DescriptionRename module command can cause trouble if you use uppercase letters in new
filename.

Let me explain...

Consider that you add Module1.pas to your project.

JediVCS assigns a ModuleID (let's say 123) to this file, lower cases file
name as "module1.pas" and adds this record to MODULES table.

There is nothing wrong till here.

Now you wanted to rename Module1.pas to Module2.pas.

Selecting Module1.pas in JediVCS project manager, and using Rename command,
you enter new module name as "Module2.pas".

Now if you look at MODULES table, you'll see that this time JediVCS didn't
lowercase filename and record became (ModuleID: 123, Name: "Module2.pas").

You'll think there is nothing wrong here, but let's say you wanted to share
this module with another project. When you add it with project manager,
JediVCS searches the "module2.pas" entry in MODULES table, it can't find old
record, and "adds another module entry" to MODULES table. So, now you have
two module IDs for the same file!

Solution is simple. I think rename command should lowercase filenames as it
is performed everywhere else in JediVCS. I have fixed my version database by
hand, but most users won't notify the cause.

Tested with JediVCS 2.4.0.652.
TagsNo tags attached.
Fix in JVCS version2.40 RC2
Releasedocumentation

Relationships

child of 0002377 closed Releaseinfo: 2.40 gui client issues 

Activities

USchuster

2005-01-09 06:49

manager   ~0006107

Thats an issue for client and server.
The edit in the client should behave like the edit for a new project.
The server function RENAME_MODULE should lowercase the new name as well as ADD_NEW_PROJECT or ADD_NEW_MODULE do it.

USchuster

2005-01-10 11:12

manager   ~0006116

This bug was introduced in revision 0.4 of ProjAdmin.pas.
In the client InputQuery is used for entering the module name.
To allow only lowercase in the edit it is necessary to write a InputQuery replacement. For now we only Lowercase the new name afterwards.

Issue History

Date Modified Username Field Change
2004-12-31 02:36 anonymous New Issue
2005-01-09 06:49 USchuster Fix in JVCS version => 2.40 RC2
2005-01-09 06:49 USchuster Note Added: 0006107
2005-01-09 06:49 USchuster Status new => confirmed
2005-01-09 06:50 USchuster Relationship added child of 0002377
2005-01-10 11:12 USchuster Note Added: 0006116
2005-01-10 11:12 USchuster Status confirmed => assigned
2005-01-10 11:12 USchuster Assigned To => USchuster
2005-01-10 12:15 USchuster Status assigned => resolved
2005-01-10 12:15 USchuster Fixed in Version => 2.40 RC2
2005-01-10 12:15 USchuster Resolution open => fixed
2005-04-16 12:10 THuber Fixed in Version 2.40 RC2 => 2.40 RC2 (Client)
2008-11-15 07:25 THuber Status resolved => closed