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 305828 - Add GNOME_VFS_ERROR_INVALID_FILENAME
Add GNOME_VFS_ERROR_INVALID_FILENAME
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: Other
2.15.x
Other All
: High enhancement
: 2.16
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2005-05-29 13:50 UTC by Alexander Brausewetter
Modified: 2006-07-14 14:34 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Proposed patch (1.89 KB, patch)
2005-05-29 14:11 UTC, Alexander Brausewetter
committed Details | Review

Description Alexander Brausewetter 2005-05-29 13:50:14 UTC
Add GNOME_VFS_ERROR_INVALID_FILENAME for filenames which are not supported by
the filesystem.

For example, when the filename contains chars which would act as control chars
on the FS.
Comment 1 Christian Kellner 2005-05-29 14:10:43 UTC
Shouldn't we just be using GNOME_VFS_ERROR_INVALID_URI for that? A invalid
FILENAME is just a special case of a invalid URI, right? 
Comment 2 Alexander Brausewetter 2005-05-29 14:11:44 UTC
Created attachment 47001 [details] [review]
Proposed patch
Comment 3 Alexander Brausewetter 2005-05-29 14:15:41 UTC
GNOME_VFS_ERROR_INVALID_URI is returned when the URI has invalid syntax. When we
have an invalid filename, the URI syntax is valid but the filename itself is
invalid for the current module.
Comment 4 Alexander Brausewetter 2005-05-29 14:25:47 UTC
Another example: You try to pass a filename with umlauts to a method which
doesn't support it.

The URI "method:///nirvana/ex%E4mpl%F6.file" is perfectly valid but the filename
"exämplö.file" is not valid for the current method.
Comment 5 Christian Neumair 2005-05-31 07:52:37 UTC
Wouldn't that be GNOME_VFS_ERROR_NOT_FOUND?
Comment 6 Alexander Brausewetter 2005-05-31 11:19:06 UTC
Would it? You probably mean for open(), do you?

I need that return for create() and move(). I find that there is no fitting
error right now.
Comment 7 Sebastien Bacher 2005-07-17 13:37:32 UTC
the bug has a patch
Comment 8 Christian Neumair 2006-07-14 10:36:44 UTC
Updating bug version.

I think we could use this to wrap the EINVAL retval for FAT32 file system operations, and use it in the async calls when providing a duplicate name.
Comment 9 Christian Kellner 2006-07-14 14:34:41 UTC
Committed to cvs head. Thanks.