GNOME Bugzilla – Bug 745212
query_info result contains attributes which doesn't fit attribute matcher
Last modified: 2016-02-09 09:11:32 UTC
Created attachment 297979 [details] [review] apply attribute mask before sending infos We are sending unwanted attributes from some backends, because g_file_info_copy_info is used, thus source attribute matcher is replaced. Apply attribute mask before sending as it is done in gvfsjobenumerate to fix this issue. Maybe clearer solution would be fix those backends (archive, ftp, gphoto, and maybe others), but similar logic is used in enumerate. This will be working also when new limited backends will be added in future for example...
Comment on attachment 297979 [details] [review] apply attribute mask before sending infos Current output: $ gvfs-info -a standard::icon ftp://HOST/ display name: / on HOST edit name: / name: / type: directory uri: ftp://HOST/ attributes: standard::type: 2 standard::name: / standard::display-name: / on HOST standard::edit-name: / standard::icon: folder-remote standard::content-type: inode/directory standard::fast-content-type: inode/directory standard::symbolic-icon: folder-remote-symbolic Output with the patch applied: $ gvfs-info -a standard::icon ftp://HOST/ uri: ftp://HOST/ attributes: standard::icon: folder-remote
Comment on attachment 297979 [details] [review] apply attribute mask before sending infos I've pushed the patch already with slightly modified description: commit cf8a6cc2d9b13dc8fe949fa8b9eb320f8f06985e