Menu

#13 Filename conflict when only case changes in SCM

open
nobody
None
5
2007-11-28
2007-11-28
Anonymous
No

I am using version 1.00-SNAPSHOT as of yesterday - 27 Nov 2007 loaded from the codehaus snapshot repo.

I have a folder in SVN that was originally created with the name 'FMQ'. I don't think the parent folder names matter here. Then we realized that all upper case was wrong and changed it to 'fmq'

Stat-scm tries to create

Nov 28, 2007 11:57:18 AM net.sf.statcvs.pages.Page write
INFO: writing page 'Directory domain/src/main/java/com/aa/rti/business/domain/vo/FMQ/' to dir_domain_src_main_java_com_aa_rti_business_domain_vo_FMQ.xml

and then a bit later it creates the same xml file with lower case name.

Nov 28, 2007 11:57:18 AM net.sf.statcvs.pages.Page write
INFO: writing page 'Directory domain/src/main/java/com/aa/rti/business/domain/vo/fmq/' to dir_domain_src_main_java_com_aa_rti_business_domain_vo_fmq.xml

There was a similar situation creating .png files as well.

When I run this on Windows, there is no problem. But when I run this on Linux, I get an error message as below:

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error during page generation

Embedded error: Files 'statscm/dir_domain_src_main_java_com_aa_rti_business_domain_vo_fmq.xml' clashes with existing '/home/continuum/working/76/domain/target/generated-site/xdoc/statscm/dir_domain_src_main_java_com_aa_rti_business_domain_vo_FMQ.xml'

Note that similar problems will occur when there are subfolders of FMQ (or fmq) because the generated names include all the parent folder names.

The strange thing about this is that it seems as if generation should work on both OS's but Windows would overwrite a file and there could be something messed up on the report.

It also seems as if the xml file should be named after the final name in SVN instead of some previous name but that is based on pure ignorance of how these HTML bits fit together. (The problem could exist anyway if all development was done on Linux and SVN was on Linux and there were folders (or files, maybe) with the same path but differing only by the case of their names. This, admittedly, seems a foolish thing to do but we've all been less than wise at times.)

Discussion

  • lee meador

    lee meador - 2007-11-28

    Logged In: YES
    user_id=1004894
    Originator: NO

    I created this before logging in. I suppose my user info will be tagged to this comment.

     
  • lee meador

    lee meador - 2007-11-28

    Logged In: YES
    user_id=1004894
    Originator: NO

    Ok ... the version is really 1.00 and it comes from the maven repo. :)

    Also, from looking at the source code, this is probably an issue with statsvn itself. I'm not quite sure buy probably.

     
  • lee meador

    lee meador - 2007-12-10

    Logged In: YES
    user_id=1004894
    Originator: NO

    Patch #1848123 adds exclude option with which I can exclude the old "spelling" (with upper case) which allows the report to complete without error. The info is still missing but the rest of the report gets generated.

     
  • Nobody/Anonymous

    Logged In: NO

    BUMP. I'm running into the same situation.

     
  • DaShaun Carter

    DaShaun Carter - 2008-01-02

    Logged In: YES
    user_id=680212
    Originator: NO

    Is there a SNAPSHOT repository anywhere?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.