Hello,

I use Subversion 1.2.3 which uses Neon 0.24.7.
I have a problem that I can't copy a file to a another folder which is a very
long URL on Windows. The length of the very long URL is over 512 bytes.

I found the suspicious code which is expected the cause of the problem.
It is the buffer size in the function ne_print_request_header() of ns_request.c.
In ne_print_request_header(), ne_vsnprintf() is used for creating a HTTP header
and the buffer size passed to ne_vsnprintf() is BUFSIZ.

The value of BUFSIZ is relied on runtime environment. The value on Linux is 
8192,
but the value on Windows is only 512.

This probably results that the 'Destination' header is choped at 512 bytes on
Windows.

Please don't use BUFSIZ as the buffer size in ne_print_request_header(). And
please increase the buffer size to about 8192 like Apache HTTP Server's
DEFAULT_LIMIT_REQUEST_LINE.

# I think BUFSIZ is should not used in OS-independent program.

Thanks,
Tomokazu Harada

_______________________________________________
neon mailing list
[email protected]
http://mailman.webdav.org/mailman/listinfo/neon

Reply via email to