Issue Details (XML | Word | Printable)

Key: KENAI-783
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: lennon
Reporter: IgorMinar
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Kenai

name taken when trying to recreate a hg repo

Created: 11/Jun/09 07:03 PM   Updated: 15/Jun/09 12:54 PM   Resolved: 11/Jun/09 11:07 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 20090619

Time Tracking:
Not Specified

Tags:


 Description  « Hide

I have a hg repo s4~main, which I renamed to main.old, then I tried to create a new hg repo called main but got an error that the name is already taken.

http://skitch.com/me3x/bu3mb/name-taken

When i tried to rename it back to main, the ui got stuck on ajaxy "working.." and deleting the repo doesn't work either.



IgorMinar added a comment - 11/Jun/09 07:06 PM

it seems that the repo on the fs was somehow modified, because it is not accessible via hg any more:

$ hg pull
remote: User IgorMinar not authorized to read repository s4~main
abort: no suitable response from remote hg!


lennon added a comment - 11/Jun/09 07:40 PM

The message in your attached screenshot is actually to be expected – you were creating another repository with the same display name, which we disallow to avoid confusion. You should be able to rename the old repository something like "Source Code Repository (old)", even temporarily, and then create the new repo as expected.

Similarly, the error you're getting from Mercurial is because the first rename (main -> main.old) succeeded, and so the old 'main' repo has been moved. You should be able to clone s4~main.old and see the old repo right away, and use the same s4~main URL as soon as the display name conflict I mentioned above has been resolved.


IgorMinar added a comment - 11/Jun/09 07:52 PM

the thing is that I can't do anything with the existing repo: http://skitch.com/me3x/bu3wf/working


IgorMinar added a comment - 11/Jun/09 08:34 PM

So the edit breaks because of 404 from the xhr response and delete returns empty http 406


lennon added a comment - 11/Jun/09 11:07 PM

Igor,

I tracked down the root cause of this – we were mistakenly allowing periods in repository names, even though the default Rails routing treats them as a special character for determining the desired response content type for a request (i.e., 'filename.ext').

I've fixed the issue in our source code, and also manually renamed your repo back to 'main' for the time being. Please try renaming it again, this time with a name that doesn't include a period.

Thanks for your patience. I'm still looking into the cause of the original commit email issue that caused us to trigger this bug.


IgorMinar added a comment - 11/Jun/09 11:56 PM - edited

cool, that helped. I was able to rename the repo and create an empty repo and finally remove the old repo. thanks!


Michal Vanek added a comment - 15/Jun/09 12:54 PM

closing as verified (revision 20090619.006b533) - cannot rename repo name with period, successful rename of all repositories