IPv6 Url with Special Characters

126 views
Skip to first unread message

李梓轩

unread,
Jul 7, 2023, 8:13:38 AM7/7/23
to TortoiseSVN
When I use special characters, like chinese character, if it was IPv4 url,it can work correct correctly.But if it was IPv6 url,the utl will encode twice.
Like "安" ,if it in IPv4 url,it will become %E5. If  it in IPv6 url, it will become %25E5.

Stefan

unread,
Jul 7, 2023, 9:42:16 AM7/7/23
to TortoiseSVN
that makes no sense at all. How would TSVN know from an URL whether it resolves later to an ipv4 or an ipv6 ip address?

李梓轩

unread,
Jul 7, 2023, 11:40:14 PM7/7/23
to TortoiseSVN

I don't know.
I guess it's not Servers problem.
When I open SVN IPv6 link with Chrome,it can work correctly.
Maybe I can show some picture to you.ipv6 Client.pngIPv4Client.pngEdgeIpv6.png

Daniel Sahlberg

unread,
Jul 8, 2023, 2:44:51 PM7/8/23
to TortoiseSVN
Thanks for the screenshots. I've tried to replicate your problem but it works fine for me. From my log file:

[[[
fe80::1950:41c3:b5dd:60cf - dsg [08/Jul/2023:20:34:59 +0200] "REPORT /svn/test/!svn/rvr/3/%E5%AE%89 HTTP/1.1" 200 250 "SVN/1.14.2 (x64-microsoft-windows) serf/1.3.9 TortoiseSVN-1.14.5.29465"
]]]

Could it be that you have a proxy or reverse proxy between your computer and the Subversion server? I was a bit surprised to see that the ip address (the first column in the log) is an IPv4 address in all your screenshots. Please note that the Subversion client is using the REPORT method and the web browser is using the GET method - if there is a proxy/reverse proxy it might have different URL encoding rules for different methods.

Kind regards,
Daniel Sahlberg

李梓轩

unread,
Jul 8, 2023, 9:41:09 PM7/8/23
to TortoiseSVN
No,this happened when I build my server machine in my local area network.At that time,I don't have any proxy or reverse proxy.
Yesterday I bought a domain,and build  a reverse proxy on my server.When there is none IPv6 address in url,it can work.
I'm sure the problem is that some characters like IPv6 address and "[","]" in url.
Whatever,it can work with domain and nginx reverse proxy.But I think I better to report my problem.

hua li

unread,
Nov 17, 2023, 12:16:07 AM11/17/23
to TortoiseSVN
Common Problem

it don't access path with Chinese or Japanese kana's characters.
such as 'svn://[2409:8a44:701b:5060:76d4:35ff:fe10:edb0]/dev/电子书'、'svn://[2409:8a44:701b:5060:76d4:35ff:fe10:edb0]/dev/にほんご'.
2023-11-17_13-13.png



And It's correct that use tortoisesvn to access the path with the only English's Characters.
2023-11-17_13-11.png

But it work correct when I use with domain name instead of ipv6 address.
2023-11-17_13-05.png2023-11-17_13-05_1.png



And it's normal about the svn server. the reason is that I can get files's list by svn command client.

2023-11-17_13-00.png

Daniel Sahlberg

unread,
Nov 20, 2023, 4:38:18 AM11/20/23
to TortoiseSVN
There was some work done on this yesterday. Can you please download a nightly build[1] and check if this solves your problem?

Kind regards,
Daniel Sahlberg

hua li

unread,
Nov 20, 2023, 11:56:48 PM11/20/23
to TortoiseSVN

I've successfully implemented the solution you provided, and everything is running smoothly.

thank you for your hard work and excellent support!

Best regards,

Reply all
Reply to author
Forward
0 new messages