After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 319349 - gnome vfs dav module don't handle properly file containing = or , characters
gnome vfs dav module don't handle properly file containing = or , characters
Status: RESOLVED DUPLICATE of bug 166969
Product: gnome-vfs
Classification: Deprecated
Component: Module: http
cvs (head)
Other Linux
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2005-10-20 20:13 UTC by Yann Rouillard
Modified: 2005-10-20 22:49 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Fix the comparison between escaped and unescaped string in http-neon-module.c (973 bytes, patch)
2005-10-20 22:43 UTC, Yann Rouillard
none Details | Review

Description Yann Rouillard 2005-10-20 20:13:44 UTC
- Create a file on a webdav containing the = or the , characters
- the file keeps its "new document" name
- push the resfresh button
- the real name appears
- try to right click on it
- the file disappears
- push the resfresh button
- the file reappears
- try to copy it
- nothing happens
Comment 1 Yann Rouillard 2005-10-20 20:20:17 UTC
The problem is that when nautilus tries to retrieve info about the file, the
do_get_file_info lies of http-neon-method.c always return NOT_FOUND.

The bug lies in the propfind_result function:

	if (ne_path_compare (ctx->path, uri.path) == 0) {
		DEBUG_HTTP_3 ("target");
		ctx->target = info;

The comparison doesn't succeed because ctx->path is escaped but uri.path is not,
so no info return for the file, so nautilus thinks it doesn't exist.
Comment 2 Yann Rouillard 2005-10-20 22:43:42 UTC
Created attachment 53714 [details] [review]
Fix the comparison between escaped and unescaped string in http-neon-module.c

A patch to solve this bug.
I unescape ctx->path before doing the comparison.

I don't know if it's the best way since I don't know gnomevfs very much.
Comment 3 Yann Rouillard 2005-10-20 22:49:28 UTC

*** This bug has been marked as a duplicate of 166969 ***