You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Gilbert Fine <gf...@corp.netease.com> on 2003/06/26 12:47:48 UTC

strange entry in a dir, cannot be deleted

Hi all,

        I manage a subversion server. The server is Apache 2.0.46+subversion
0.23.0, FreeBSD 4.8.
        Today I happened to find there is a strange entry under a dir. The
URL is:
https://....../gamesales/%80%ed%f9/

        I know who made this entry ("%80%ed%f9") (from Apache's access_log),
but he said that he didn't do that. I think who did that is not important,
the problem is that I cannot remove this entry, which seems to be a subdir.

        I tried removing it in windows, using the command line client, this
was what I got:
svn: Filesystem has no item
svn: URL `https://...../gamesales/%80%ed%f9' does not exist

       And I cannot checkout the dir https://..../gamesales/, obviousely
because of that entry under gamesales dir.

        I think it is a bug of subversion (maybe of TortoiseSVN, because
that guy was using it as client). Since if subversion thinks the name is
invalid, there should be no way to create it at the very start.

        Please help me to delete the evil entry. ....

        BTW, I am new to subversion and TortoiseSVN.


Gilbert Fine.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: strange entry in a dir, cannot be deleted

Posted by Gilbert Fine <gf...@corp.netease.com>.
I successfully deleted the strange entry, by dumping the repository and then
loading it. The method suggested by Francois did not work, I got this error:
svn: Bogus URL
svn: URL `https://.../gamesales/€??' is not properly URI-encoded

I seems that URL passed to svn must be URI-encoded. This is inconvenient.
For example, if I want to delete a file in repository which has a Chinese
name, I have to encode the name.

And We have tested that created a Chinese-named file in the working copy,
and then add, commit, and update. That was done under TortoiseSVN. All
operations were OK.
This time, as suggested by Branko, I use svn command line to create a
Chinese-named dir, and then commit, then delete it. All are fine. (My
computer is running English Win2K professional).


Gilbert Fine

----- Original Message ----- 
From: "Branko Čibej" <br...@xbc.nu>
To: "Gilbert Fine" <gf...@corp.netease.com>
Cc: <de...@subversion.tigris.org>
Sent: Friday, June 27, 2003 1:38 AM
Subject: Re: strange entry in a dir, cannot be deleted



> We've had problrms with URL escaping in ra_dav before. Could you try
> something, please? See if you can create a filename with Chinese
> characters with the svn command line, then connect to your repository
> with a Web browser and see if the characters you see there are the same.
>
> -- 
> Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: strange entry in a dir, cannot be deleted

Posted by Branko Čibej <br...@xbc.nu>.
Gilbert Fine wrote:

>        The strange entry may be caused by our Chinese (GB2312) file names.
>I know using non-English names is not recommended, but I have did some
>simple tests, all seemed fine at that time. Personally I do not prefer
>Chinese file names, it causes many troubles in my experiences. But if
>subversion and TortioseSVN support Chinese file names, it would be very
>nice. Anyway, I will let the developers rename all Chinese file names to
>English names, as long as it won't cause any big changes in source code.
>
Subversion definitely should support this, since all file names in the
repository are encoded in UTF-8. There are two possible sources for this
bug:

    * In TortoiseSVN, if the file names passed to the Subversion
      libraries aren't converted to UTF-8 correctly.
    * Within Subversion itself, if the filenames aren't transmitted to
      the repository correctly.

We've had problrms with URL escaping in ra_dav before. Could you try
something, please? See if you can create a filename with Chinese
characters with the svn command line, then connect to your repository
with a Web browser and see if the characters you see there are the same.

-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: strange entry in a dir, cannot be deleted

Posted by Gilbert Fine <gf...@corp.netease.com>.
Hi all,

    Thanks for all the kindly replies. I cannot reach the server now, since
it is in our office's LAN. I will try to fix the problem again tomorrow.

     My English is poor. So let me make something clearer.

      I found that strange "subdir" by browsing the source tree in IE. There
are only 5 entries under gamesales folder, so I notice that that at once. I
clicked at the entry, IE displayed a empty page, no error, no contents.

       After I spent some time to check the log, I try to get more
information by using some commands like "svnlook info" and "svn list" and
other commands I thought that were safe. But suddenly I found the repository
was corrupted. All operations reported the same error message, "...
checkpointing...", sorry I don't remember the message now. I was a little
panic at that time.

        Finally the command "svnadmin recover" saved me. But the recovery
process took me exactly one hour to accomplish. The command recovered the
repository to the status when I just found the strange entry.

        I am curious why did it take so long to recover. My repository is
new, the youngest revision was 96. Although there were a few hundreds of
small files, one hour still seems a long time, especially in that situation.

        The strange entry may be caused by our Chinese (GB2312) file names.
I know using non-English names is not recommended, but I have did some
simple tests, all seemed fine at that time. Personally I do not prefer
Chinese file names, it causes many troubles in my experiences. But if
subversion and TortioseSVN support Chinese file names, it would be very
nice. Anyway, I will let the developers rename all Chinese file names to
English names, as long as it won't cause any big changes in source code.


        Despite of this small problem, subversion is good. I will recommend
it to all my friends. Thanks for your great job!


Gilbert Fine


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: strange entry in a dir, cannot be deleted

Posted by cm...@collab.net.
"Gilbert Fine" <gf...@corp.netease.com> writes:

> Hi all,
> 
>         I manage a subversion server. The server is Apache 2.0.46+subversion
> 0.23.0, FreeBSD 4.8.
>         Today I happened to find there is a strange entry under a dir. The
> URL is:
> https://....../gamesales/%80%ed%f9/
> 
>         I know who made this entry ("%80%ed%f9") (from Apache's access_log),
> but he said that he didn't do that. I think who did that is not important,
> the problem is that I cannot remove this entry, which seems to be a subdir.
> 
>         I tried removing it in windows, using the command line client, this
> was what I got:
> svn: Filesystem has no item
> svn: URL `https://...../gamesales/%80%ed%f9' does not exist
> 
>        And I cannot checkout the dir https://..../gamesales/, obviousely
> because of that entry under gamesales dir.
> 
>         I think it is a bug of subversion (maybe of TortoiseSVN, because
> that guy was using it as client). Since if subversion thinks the name is
> invalid, there should be no way to create it at the very start.
> 
>         Please help me to delete the evil entry. ....

Have you tried dumping and loading your repository?

   $ mv repos repos.backup
   $ svnadmin dump repos.backup > dumpfile
   $ emacs dumpfile # replace all instances of your funky dirname with
                    # some non-funky dirname
   $ svnadmin create repos
   $ svnadmin load repos < dumpfile
   $ # copy over any hook scripts from repos.backup to repos

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: strange entry in a dir, cannot be deleted

Posted by Branko Čibej <br...@xbc.nu>.
Francois Beausoleil wrote:

>Hello Gilbert,
>
>Might want to try again, from the Win32 command line, but this time, use
>the actual ASCII codes.  Here's what I propose:
>svn delete "https://.../gamesales/
>
>Then, hold down your left Alt key, and on your numeric keypad, type 128. 
>This is the decimal code of %80, which is 0x80.  Here's the table to use:
>
>%80 = 128 (Ç)
>%ed = 237 (Ý)
>%f9 = 249 (¨)
>
These aren't ASCII codes.

>Then, close the quote and execute the command.
>
>What you are seeing is the URL encoded form of the ASCII characters named
>above.
>
To avoid any confusion, I must point out that ASCII only defines codes
between 0 and 127, inclusive.


First of all, you have to find out what actually happened. How did you
find out the URL of that file? The one you gave isn't encoded in UTF-8
(the leading 0x80 isn't a valid UTF-8 code), so you must figure out what
the encoding is. Once you do that, François' recipe would probably work.


I wonder what TortoiseSVN is doing with the filenames under the hood...

-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: strange entry in a dir, cannot be deleted

Posted by Francois Beausoleil <fb...@users.sourceforge.net>.
Hello Gilbert,

Might want to try again, from the Win32 command line, but this time, use
the actual ASCII codes.  Here's what I propose:
svn delete "https://.../gamesales/

Then, hold down your left Alt key, and on your numeric keypad, type 128. 
This is the decimal code of %80, which is 0x80.  Here's the table to use:

%80 = 128 (Ç)
%ed = 237 (Ý)
%f9 = 249 (¨)

Then, close the quote and execute the command.

What you are seeing is the URL encoded form of the ASCII characters named
above.

Hope that helps !
François

On Thu, 26 Jun 2003 20:47:48 +0800, "Gilbert Fine"
<gf...@corp.netease.com> said:
> Hi all,
> 
>         I manage a subversion server. The server is Apache
>         2.0.46+subversion
> 0.23.0, FreeBSD 4.8.
>         Today I happened to find there is a strange entry under a dir.
>         The
> URL is:
> https://....../gamesales/%80%ed%f9/
> 
>         I know who made this entry ("%80%ed%f9") (from Apache's
>         access_log),
> but he said that he didn't do that. I think who did that is not
> important,
> the problem is that I cannot remove this entry, which seems to be a
> subdir.
> 
>         I tried removing it in windows, using the command line client,
>         this
> was what I got:
> svn: Filesystem has no item
> svn: URL `https://...../gamesales/%80%ed%f9' does not exist
> 
>        And I cannot checkout the dir https://..../gamesales/, obviousely
> because of that entry under gamesales dir.
> 
>         I think it is a bug of subversion (maybe of TortoiseSVN, because
> that guy was using it as client). Since if subversion thinks the name is
> invalid, there should be no way to create it at the very start.
> 
>         Please help me to delete the evil entry. ....
> 
>         BTW, I am new to subversion and TortoiseSVN.
> 
> 
> Gilbert Fine.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
> 
> 
--
  Francois Beausoleil
  Developer of Java Gui Builder
  http://jgb.sourceforge.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org