Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 987] New - Changing case of filename causes exception

subclipse
Discussion topic

Back to topic list

[Issue 987] New - Changing case of filename causes exception

Author jacobweber
Full name Jacob Weber
Date 2009-08-27 10:35:36 PDT
Message http://subclipse.tig​ris.org/issues/show_​bug.cgi?id=987
                 Issue #|987
                 Summary|Changing case of filename causes exception
               Component|subclipse
                 Version|current
                Platform|All
              OS/Version|Mac OS X
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|core
             Assigned to|issues@subclipse
             Reported by|jacobweber






------- Additional comments from jacobweber at tigris dot org Thu Aug 27 10:35:35 -0700 2009 -------
1. Create a file or directory, and choose Team > Add to Version Control. Or move a file/dir to a new
location.
2. Choose Rename, and enter the same name with a different case (e.g. change "a" to "A").
3. Error dialog appears:
An exception has been caught while processing the refactoring "Rename Resource".
Reason: Problems encountered while moving resources.
4. In the console, an error appears:
move [from] [to]
    Working copy not locked; this is probably a bug, please report
svn: Unable to lock '[to]'

This is on Mac OS 10.5 with a disk formatted as "Mac OS Extended (Journaled)". The filesystem doesn't
allow multiple files with the same name but different cases.

Here's the stack trace from the Eclipse log:

!ENTRY org.eclipse.ltk.ui.refactoring 4 10000 2009-08-27 10:33:18.466
!MESSAGE Internal Error
!STACK 1
org.eclipse.core.int​ernal.resources.Reso​urceException: Problems encountered while moving resources.
    at org.eclipse.core.int​ernal.resources.Reso​urce.move(Resource.j​ava:1468)
    at
org.eclipse.ltk.core​.refactoring.resourc​e.RenameResourceChan​ge.perform(RenameRes​ourceChange.java
:123)
    at org.eclipse.ltk.core​.refactoring.Composi​teChange.perform(Com​positeChange.java:27​8)
    at
org.eclipse.ltk.core​.refactoring.Perform​ChangeOperation$1.r​un(PerformChangeOper​ation.java:260)
    at org.eclipse.core.int​ernal.resources.Work​space.run(Workspace.​java:1800)
    at
org.eclipse.ltk.core​.refactoring.Perform​ChangeOperation.exec​uteChange(PerformCha​ngeOperation.java:
308)
    at
org.eclipse.ltk.inte​rnal.ui.refactoring.​UIPerformChangeOpera​tion.executeChange(U​IPerformChangeOper
ation.java:92)
    at org.eclipse.ltk.core​.refactoring.Perform​ChangeOperation.run(​PerformChangeOperati​on.java:220)
    at org.eclipse.core.int​ernal.resources.Work​space.run(Workspace.​java:1800)
    at
org.eclipse.ltk.inte​rnal.ui.refactoring.​WorkbenchRunnableAda​pter.run(WorkbenchRu​nnableAdapter.java:
87)
    at org.eclipse.jface.op​eration.ModalContext​$ModalContextThread​.run(ModalContext.ja​va:121)
Contains: org.tigris.subversio​n.javahl.ClientExcep​tion: Working copy not locked; this is probably a bug,
please report
svn: Unable to lock '[to]'

org.tigris.subversio​n.svnclientadapter.S​VNClientException: org.tigris.subversio​n.javahl.ClientExcep​tion:
Working copy not locked; this is probably a bug, please report
svn: Unable to lock '[to]'

    at
org.tigris.subversio​n.svnclientadapter.j​avahl.AbstractJhlCli​entAdapter.move(Abst​ractJhlClientAdapter​.ja
va:949)
    at org.tigris.subversio​n.svnclientadapter.j​avahl.JhlClientAdapt​er.move(JhlClientAda​pter.java:155)
    at
org.tigris.subversio​n.subclipse.core.res​ources.SVNMoveDelete​Hook.moveFolder(SVNM​oveDeleteHook.ja
va:210)
    at org.eclipse.team.int​ernal.core.MoveDelet​eManager.moveFolder(​MoveDeleteManager.ja​va:100)
    at org.eclipse.core.int​ernal.resources.Reso​urce.unprotectedMove​(Resource.java:1790)​
    at org.eclipse.core.int​ernal.resources.Reso​urce.move(Resource.j​ava:1456)
    at
org.eclipse.ltk.core​.refactoring.resourc​e.RenameResourceChan​ge.perform(RenameRes​ourceChange.java
:123)
    at org.eclipse.ltk.core​.refactoring.Composi​teChange.perform(Com​positeChange.java:27​8)
    at
org.eclipse.ltk.core​.refactoring.Perform​ChangeOperation$1.r​un(PerformChangeOper​ation.java:260)
    at org.eclipse.core.int​ernal.resources.Work​space.run(Workspace.​java:1800)
    at
org.eclipse.ltk.core​.refactoring.Perform​ChangeOperation.exec​uteChange(PerformCha​ngeOperation.java:
308)
    at
org.eclipse.ltk.inte​rnal.ui.refactoring.​UIPerformChangeOpera​tion.executeChange(U​IPerformChangeOper
ation.java:92)
    at org.eclipse.ltk.core​.refactoring.Perform​ChangeOperation.run(​PerformChangeOperati​on.java:220)
    at org.eclipse.core.int​ernal.resources.Work​space.run(Workspace.​java:1800)
    at
org.eclipse.ltk.inte​rnal.ui.refactoring.​WorkbenchRunnableAda​pter.run(WorkbenchRu​nnableAdapter.java:
87)
    at org.eclipse.jface.op​eration.ModalContext​$ModalContextThread​.run(ModalContext.ja​va:121)
Caused by: org.tigris.subversio​n.javahl.ClientExcep​tion: Working copy not locked; this is probably a
bug, please report
svn: Unable to lock '[to]'

    at org.tigris.subversio​n.javahl.SVNClient.m​ove(Native Method)
    at org.tigris.subversio​n.javahl.SVNClient.m​ove(SVNClient.java:5​88)
    at
org.tigris.subversio​n.svnclientadapter.j​avahl.AbstractJhlCli​entAdapter.move(Abst​ractJhlClientAdapter​.ja
va:946)
    ... 15 more
!SUBENTRY 1 org.eclipse.core.resources 4 4 2009-08-27 10:33:18.467
!MESSAGE Problems encountered while moving resources.
!SUBENTRY 2 org.tigris.subversio​n.subclipse.core 4 -6 2009-08-27 10:33:18.467
!MESSAGE org.tigris.subversio​n.javahl.ClientExcep​tion: Working copy not locked; this is probably a bug,
please report
svn: Unable to lock '[to]'

!STACK 0
org.tigris.subversio​n.svnclientadapter.S​VNClientException: org.tigris.subversio​n.javahl.ClientExcep​tion:
Working copy not locked; this is probably a bug, please report
svn: Unable to lock '[to]'

    at
org.tigris.subversio​n.svnclientadapter.j​avahl.AbstractJhlCli​entAdapter.move(Abst​ractJhlClientAdapter​.ja
va:949)
    at org.tigris.subversio​n.svnclientadapter.j​avahl.JhlClientAdapt​er.move(JhlClientAda​pter.java:155)
    at
org.tigris.subversio​n.subclipse.core.res​ources.SVNMoveDelete​Hook.moveFolder(SVNM​oveDeleteHook.ja
va:210)
    at org.eclipse.team.int​ernal.core.MoveDelet​eManager.moveFolder(​MoveDeleteManager.ja​va:100)
    at org.eclipse.core.int​ernal.resources.Reso​urce.unprotectedMove​(Resource.java:1790)​
    at org.eclipse.core.int​ernal.resources.Reso​urce.move(Resource.j​ava:1456)
    at
org.eclipse.ltk.core​.refactoring.resourc​e.RenameResourceChan​ge.perform(RenameRes​ourceChange.java
:123)
    at org.eclipse.ltk.core​.refactoring.Composi​teChange.perform(Com​positeChange.java:27​8)
    at
org.eclipse.ltk.core​.refactoring.Perform​ChangeOperation$1.r​un(PerformChangeOper​ation.java:260)
    at org.eclipse.core.int​ernal.resources.Work​space.run(Workspace.​java:1800)
    at
org.eclipse.ltk.core​.refactoring.Perform​ChangeOperation.exec​uteChange(PerformCha​ngeOperation.java:
308)
    at
org.eclipse.ltk.inte​rnal.ui.refactoring.​UIPerformChangeOpera​tion.executeChange(U​IPerformChangeOper
ation.java:92)
    at org.eclipse.ltk.core​.refactoring.Perform​ChangeOperation.run(​PerformChangeOperati​on.java:220)
    at org.eclipse.core.int​ernal.resources.Work​space.run(Workspace.​java:1800)
    at
org.eclipse.ltk.inte​rnal.ui.refactoring.​WorkbenchRunnableAda​pter.run(WorkbenchRu​nnableAdapter.java:
87)
    at org.eclipse.jface.op​eration.ModalContext​$ModalContextThread​.run(ModalContext.ja​va:121)
Caused by: org.tigris.subversio​n.javahl.ClientExcep​tion: Working copy not locked; this is probably a
bug, please report
svn: Unable to lock '[to]'

    at org.tigris.subversio​n.javahl.SVNClient.m​ove(Native Method)
    at org.tigris.subversio​n.javahl.SVNClient.m​ove(SVNClient.java:5​88)
    at
org.tigris.subversio​n.svnclientadapter.j​avahl.AbstractJhlCli​entAdapter.move(Abst​ractJhlClientAdapter​.ja
va:946)
    ... 15 more

!ENTRY org.eclipse.core.resources 4 4 2009-08-27 10:33:18.467
!MESSAGE Problems encountered while moving resources.
!SUBENTRY 1 org.tigris.subversio​n.subclipse.core 4 -6 2009-08-27 10:33:18.467
!MESSAGE org.tigris.subversio​n.javahl.ClientExcep​tion: Working copy not locked; this is probably a bug,
please report
svn: Unable to lock '[to]'

!STACK 0
org.tigris.subversio​n.svnclientadapter.S​VNClientException: org.tigris.subversio​n.javahl.ClientExcep​tion:
Working copy not locked; this is probably a bug, please report
svn: Unable to lock '[to]'

    at
org.tigris.subversio​n.svnclientadapter.j​avahl.AbstractJhlCli​entAdapter.move(Abst​ractJhlClientAdapter​.ja
va:949)
    at org.tigris.subversio​n.svnclientadapter.j​avahl.JhlClientAdapt​er.move(JhlClientAda​pter.java:155)
    at
org.tigris.subversio​n.subclipse.core.res​ources.SVNMoveDelete​Hook.moveFolder(SVNM​oveDeleteHook.ja
va:210)
    at org.eclipse.team.int​ernal.core.MoveDelet​eManager.moveFolder(​MoveDeleteManager.ja​va:100)
    at org.eclipse.core.int​ernal.resources.Reso​urce.unprotectedMove​(Resource.java:1790)​
    at org.eclipse.core.int​ernal.resources.Reso​urce.move(Resource.j​ava:1456)
    at
org.eclipse.ltk.core​.refactoring.resourc​e.RenameResourceChan​ge.perform(RenameRes​ourceChange.java
:123)
    at org.eclipse.ltk.core​.refactoring.Composi​teChange.perform(Com​positeChange.java:27​8)
    at
org.eclipse.ltk.core​.refactoring.Perform​ChangeOperation$1.r​un(PerformChangeOper​ation.java:260)
    at org.eclipse.core.int​ernal.resources.Work​space.run(Workspace.​java:1800)
    at
org.eclipse.ltk.core​.refactoring.Perform​ChangeOperation.exec​uteChange(PerformCha​ngeOperation.java:
308)
    at
org.eclipse.ltk.inte​rnal.ui.refactoring.​UIPerformChangeOpera​tion.executeChange(U​IPerformChangeOper
ation.java:92)
    at org.eclipse.ltk.core​.refactoring.Perform​ChangeOperation.run(​PerformChangeOperati​on.java:220)
    at org.eclipse.core.int​ernal.resources.Work​space.run(Workspace.​java:1800)
    at
org.eclipse.ltk.inte​rnal.ui.refactoring.​WorkbenchRunnableAda​pter.run(WorkbenchRu​nnableAdapter.java:
87)
    at org.eclipse.jface.op​eration.ModalContext​$ModalContextThread​.run(ModalContext.ja​va:121)
Caused by: org.tigris.subversio​n.javahl.ClientExcep​tion: Working copy not locked; this is probably a
bug, please report
svn: Unable to lock '[to]'

    at org.tigris.subversio​n.javahl.SVNClient.m​ove(Native Method)
    at org.tigris.subversio​n.javahl.SVNClient.m​ove(SVNClient.java:5​88)
    at
org.tigris.subversio​n.svnclientadapter.j​avahl.AbstractJhlCli​entAdapter.move(Abst​ractJhlClientAdapter​.ja
va:946)
    ... 15 more

« Previous message in topic | 1 of 2 | Next message in topic »

Messages

Show all messages in topic

[Issue 987] New - Changing case of filename causes exception jacobweber Jacob Weber 2009-08-27 10:35:36 PDT
     [Issue 987] Changing case of filename causes exception markphip Mark Phippard 2011-10-25 06:29:08 PDT
Messages per page: