commit b267ff4ea02665c1056d408ce8ac1d695304ffb2 Author: Tomas Bzatek Date: 2012-12-18 Update NEWS for 1.15.1 release M NEWS commit a8df997a5945ef8cb19558fbd2530f804ddfe42e Author: Tomas Bzatek Date: 2012-12-18 build: Bump required libsoup version M configure.ac commit 635c3b507e9082d8f8016f18cc14445a7493e456 Author: Tomas Bzatek Date: 2012-12-18 dav: Use application/octet-stream content type for uploading The content_type argument is required to be set for soup_message_set_request() if passing data in. Using "application/octet-stream" makes it work, though I'm not sure whether it's accepted by all dav servers. https://bugzilla.gnome.org/show_bug.cgi?id=687757 M daemon/gvfsbackenddav.c commit e0f03f9cd91a8f074cb905c8be8c3f5eabb2ff7c Author: Tomas Bzatek Date: 2012-12-18 http: Set use-thread-context property on async SoupSession Apparently SoupRequester needs this to be set TRUE. https://bugzilla.gnome.org/show_bug.cgi?id=687757 M daemon/gvfsbackendhttp.c commit ed7fd5313ca8759e162c640b3de293489e359162 Author: Dan Winship Date: 2012-12-18 dav: kill SoupOutputStream SoupOutputStream was never particularly useful, since we ended up not doing chunked requests (since server support for them is mostly nonexistent). So kill SoupOutputStream off and just use a GMemoryOutputStream instead. https://bugzilla.gnome.org/show_bug.cgi?id=687757 Signed-off-by: Tomas Bzatek M daemon/Makefile.am M daemon/gvfsbackenddav.c D daemon/soup-output-stream.c D daemon/soup-output-stream.h commit d751f968d65fa287a8cbfa6e2a28f8dd421deb66 Author: Dan Winship Date: 2012-12-18 http: Simplify job failure handling gvfsbackendhttp defined g_vfs_job_failed_from_http_status(), but didn't export this, so gvfsbackenddav was sort of forced to reimplement it. Fix that by exporting it as http_job_failed(). https://bugzilla.gnome.org/show_bug.cgi?id=687757 Signed-off-by: Tomas Bzatek M daemon/gvfsbackenddav.c M daemon/gvfsbackendhttp.c M daemon/gvfsbackendhttp.h commit cac808508f1fcdb3c9c00cdb36ba6053a1f5dbbb Author: Dan Winship Date: 2012-12-18 http: replace SoupInputStream with SoupRequest Replace the hacky SoupInputStream with a new GVfsHttpInputStream that is a wrapper around SoupRequest. (We need a wrapper stream rather than just using SoupRequest directly because we want the stream here to be seekable, which requires cancelling and re-sending the HTTP request and getting a new underlying stream.) The http and dav backends still use both a sync and an async SoupSession, even though this is no longer necessary, since changing this would require a lot of rewriting of code that currently works. https://bugzilla.gnome.org/show_bug.cgi?id=687757 Signed-off-by: Tomas Bzatek M daemon/Makefile.am M daemon/gvfsbackenddav.c M daemon/gvfsbackendhttp.c A daemon/gvfshttpinputstream.c A daemon/gvfshttpinputstream.h D daemon/soup-input-stream.c D daemon/soup-input-stream.h M daemon/soup-output-stream.c commit 333d9db1d52e61f690bd68bcd70c4affe446724a Author: Piotr Drąg Date: 2012-12-16 Updated Polish translation M po/pl.po commit 5dea5823a4adac54e14d6eb2db91a02c3188ecd6 Author: Fran Diéguez Date: 2012-12-15 Updated Galician translations M po/gl.po commit cc6d3d293cd90cb6ed11cb972cc1d931b493a80b Author: David Zeuthen Date: 2012-12-11 udisks2: don't set GDrive.can_stop to TRUE if drive has removable media If the drive is using removable media, we want the shell and file manager to eject the media, not turn the drive off. Signed-off-by: David Zeuthen M monitor/udisks2/gvfsudisks2drive.c commit b3f72baca687f81e7618d4b829ade2df2b59d2b8 Author: David Zeuthen Date: 2012-12-11 If a drive is hotplugged and CanPowerOff is TRUE, set can_stop to TRUE With this change, USB-connected drives that appear *during* the user session will now be powered off when the user clicks the "Eject" icon in the GUI. This involves powering off the USB port typically resulting in LEDs and other user-visible features turning off. In particular, bus-powered HDDs will completely turn off by virtue of being, well, bus-powered. This is generally what users expect and should make them feel all cozy, warm inside and, most importantly, more confident removing the device now that the LED is off. Or something. Since we only do this for devices detected *during* the user session, we should not run into problems with internal USB devices such as laptop SD card readers or the various 4-in-1 flash card readers in many workstations. This is actually important because removing the power to the USB port of an "internal" device is generally a bad idea as it requires a system restart to make the laptop BIOS power the port up again (or the user to crack open the chassis). (No, unfortunately there is no *reliable* way to determine if a USB device is "internal" (e.g. reachable and/or servicable by the user) or not. There are a couple of mechanisms - one is to look at various USB device descriptors - but none of them seem very reliable. So instead we simply look at whether the device is hotplugged.) See also this udisks commit http://cgit.freedesktop.org/udisks/commit/?id=81dcb6eeaeceb6c6faae1a40a5b34a65cd5af653 introducing the Drive:CanPowerOff property and the Drive.PowerOff() method. Signed-off-by: David Zeuthen M monitor/udisks2/gvfsudisks2drive.c M monitor/udisks2/gvfsudisks2drive.h M monitor/udisks2/gvfsudisks2mount.c M monitor/udisks2/gvfsudisks2volumemonitor.c commit cdb8babf12c883b13f32c9adeaa8aab3feec3667 Author: Tomas Bzatek Date: 2012-12-11 udisks2: Initialize local variables to NULL We need to set initial value to local variables we're about to use later in the code. Found the volume monitor segfaulting on stable udisks-2.0.0 M monitor/udisks2/gvfsudisks2volume.c commit fc34a87b7d534a4becb6c9969adc19c1187bac42 Author: Tomas Bzatek Date: 2012-12-10 proxy volume monitor: Remove unnecessary goto A matter of developer's taste, but since the function has been simplified a lot, no need to keep the goto around. M monitor/proxy/gproxyvolumemonitor.c commit 5a6d6ddc66a4bc32aef99f73c9e99a1c3ca91bff Author: Tomas Bzatek Date: 2012-12-10 proxy volume monitor: Don't leak the_volume_monitors hash table The the_volume_monitors hash table is a shared global instance, make sure to only initialize it once. Based on a patch by Tim Lunn https://bugzilla.gnome.org/show_bug.cgi?id=689946 M monitor/proxy/gproxyvolumemonitor.c commit ee170849f84ecb09caf6dc49611db9db812f060c Author: Tomas Bzatek Date: 2012-12-10 proxy volume monitor: Clarify when mutex is hold on construction Found by reviewing usage of the global lock, this place is not obvious whether is inside the lock or not. Let's add a simple comment to make it clear. M monitor/proxy/gproxyvolumemonitor.c commit 3c08836f7f9cb61317298e85c1fe6adee01860aa Author: Tomas Bzatek Date: 2012-12-07 afc: Add missing break statement Found by Coverity Scan analysis M daemon/gvfsbackendafc.c commit 9088dbe0ed3a52f85ce4a87baa6ac4bfa8248c8f Author: Tomas Bzatek Date: 2012-12-07 fuse: Make truncating more robust Don't try to seek if there was an error during padding. Also report seek errors. M client/gvfsfusedaemon.c commit bf5493fc31ca6555390a076d7ce18872b7c0c0ec Author: Tomas Bzatek Date: 2012-12-07 Fix use of uninitialized values M common/gmountspec.c M common/gvfsdaemonprotocol.c M daemon/gvfsafpconnection.c commit 3c1b401670c7fbdf7ad8f3034b3d508ae719d6d3 Author: Tomas Bzatek Date: 2012-12-07 Fix some potential NULL dereferences M daemon/gvfsbackendgphoto2.c M daemon/gvfsbackendlocaltest.c commit 3350ccfa0fbaacfd2ffc089399517d16a96abe48 Author: Tomas Bzatek Date: 2012-12-07 daemon: Add missing va_end() call M daemon/daemon-main.c commit db9d1795582ad888b1653f5b43718bbe263ff369 Author: Jonathan Matthew Date: 2012-12-06 http: Provide edit-name whether display-name is also requested or not https://bugzilla.gnome.org/show_bug.cgi?id=625741 Signed-off-by: Tomas Bzatek M daemon/gvfsbackendhttp.c commit bb4e7ed0236855d2ced7cfd4445877822da8fe7b Author: David Zeuthen Date: 2012-12-05 udisks2: add support for mount option x-gvfs-symbolic-icon ... and also the new Block:HintSymbolicIcon icon just added to udisks master. Signed-off-by: David Zeuthen M monitor/udisks2/gvfsudisks2volume.c M monitor/udisks2/what-is-shown.txt commit 986f052f48aa87288ff4eb55fb7f8b9e157e33bc Author: Daniel Mustieles Date: 2012-12-05 Updated Spanish translation M po/es.po commit dff2d84d15b7a62a162031f2da3015e989c0eadc Author: David Zeuthen Date: 2012-12-05 udisks2: get icons via UDisksObjectInfo for block devices that are not drives Signed-off-by: David Zeuthen M monitor/udisks2/gvfsudisks2volume.c commit 82880411705bd7d4bc64a42756a50f2af582faf7 Author: David Zeuthen Date: 2012-12-05 udisks2: don't leak GIcon when applying hints Signed-off-by: David Zeuthen M monitor/udisks2/gvfsudisks2volume.c commit acca15e159475dc9dad837651e0e3118c3fd5f0f Author: William Jon McCann Date: 2012-12-03 gvfs-info: Print out symbolic-icon too https://bugzilla.gnome.org/show_bug.cgi?id=684328 Signed-off-by: Tomas Bzatek M programs/gvfs-info.c commit cf7f98995591f6c992467337469df41756c76b04 Author: Tomas Bzatek Date: 2012-12-03 smb: Report proper error on do_query_fs_info() We always reported success despite storing the smb call result. https://bugzilla.gnome.org/show_bug.cgi?id=687778 M daemon/gvfsbackendsmb.c commit c2b246c8e9ee67034aa0e0017516bc0f05448783 Author: Tomas Bzatek Date: 2012-12-03 client: Set default timeout to infinite for all GDaemonFile methods Certain operations may take a lot of time to complete, don't timeout on that. Use cancellable if you need to control the flow. https://bugzilla.gnome.org/show_bug.cgi?id=687534 M client/gdaemonfile.c commit 9044fc62eab9f10035bd914ed78bbcbc23220d49 Author: Martin Pitt Date: 2012-11-29 gvfs-test: Add tests for trash:// This covers trashing a file from $HOME (both API and CLI), trying to trash a file from /tmp/, and handling trashing files with the same path. M test/gvfs-test commit b1e7b70aa4db582743637fef4b2a00f19787d46f Author: Martin Pitt Date: 2012-11-28 gvfs-test: Move temporary D-BUS setup from run-in-tree.sh For adding further tests such as for trash://, we want to be able to use a temporary private $XDG_DATA_HOME, and also ensure that we do not touch the user's configuration in any way by setting a temporary $XDG_CONFIG_HOME as well. (The latter needs to be in the actual $HOME until https://bugzilla.gnome.org/show_bug.cgi?id=142568 gets fixed) To achieve this, set up the temporary session D-BUS in gvfs-test itself (so that it sees our new XDG environment variables), and stop setting up a session D-BUS in run-in-tree.sh when running under make. Retain the funtionality in run-in-tree.sh for calling the script manually. This also allows us to capture the output of the D-BUS daemon and its attached processes. Show its stdout and stderr on test case failures for easier debugging, and enable general GLib and gvfs debug messages. In addition this simplifies the handling of $LIBSMB_PROG, as we can now set it in the test suite and can stop setting it in the Makefile. M test/Makefile.am M test/gvfs-test M test/run-in-tree.sh commit 46b4898edc221eff6e1caffae894fc5a6f8d42ed Author: Martin Pitt Date: 2012-11-27 gvfs-test: Skip Sftp.test_unknown_host when not in gvfs-testbed When running under the normal user account, the StrictHostKeyChecking option is client-configurable behaviour which cannot be temporarily changed. Skip the test entirely in this case instead of exfailing it, as it does not test anything meaningful then. Drop the exfail so that the test must succeed when running under gvfs-testbed. M test/gvfs-test commit 56a11c77e5bbefcbb490e7e39a3f724f7f207509 Author: David Zeuthen Date: 2012-11-28 udisks2: fix symbolic icons for devices without an UDisksDrive We were returning folder-remote-symbolic which is incorrect since that should only be used for network filesystems. Signed-off-by: David Zeuthen M monitor/udisks2/gvfsudisks2mount.c M monitor/udisks2/gvfsudisks2utils.c M monitor/udisks2/gvfsudisks2utils.h M monitor/udisks2/gvfsudisks2volume.c commit 765fa2635fc565453c42489c13825efa13434a70 Author: Matej Urbančič Date: 2012-11-26 Updated Slovenian translation M po/sl.po commit 40fb32bef39e5fa590c82dd8d5f18bd974ccac5c Author: Alexandre Rostovtsev Date: 2011-06-14 Fix symlink target in query_info_reply() for sftp backend In SSH_FXP_NAME messages, the name field is preceded by a uint32 count field. query_info_reply() in gvfsbackendsftp.c did not take the existence of the count field into account, and so set symlink targets incorrectly. For a simple demonstration, use gvfs-info to stat a symlink on an ssh mount. https://bugzilla.gnome.org/show_bug.cgi?id=652535 M daemon/gvfsbackendsftp.c commit 28f117d29163c79d60084cd74c1fd4e3a7b47694 Author: Nilamdyuti Goswami Date: 2012-11-26 Assamese translation updated M po/as.po commit e1aa9e862ea151ba4b73bf982e91ed54b65d8cc6 Author: Martin Pitt Date: 2012-11-23 gvfs-test: Skip Dav tests if http is disabled Skip the Dav tests instead of failing when running against the build tree and http support is disabled. M test/gvfs-test commit 8ed2757a7e3bd396a50e866b0e8fcba83e1df510 Author: Martin Pitt Date: 2012-11-22 tests/run-in-tree.sh: Disable service activation for local D-BUS This tries to spawn gnome-keyring which can potentially mess up user's real keyrings. It also causes long timeouts during D-BUS activation which make the testsuite painfully slow. M test/session.conf.in commit 8cae7af51bc7dacf6a196b95ba81a6a9886e7749 Author: Martin Pitt Date: 2012-11-22 gvfs-test: Add tests using the introspected Gio API So far we were only using the command line programs. This adds some tests that exercise the Gio API through gobject-introspection, covering archive mounts, and anonymous and authenticated FTP. M test/gvfs-test commit 09c8be942506999490a0df74d4bcfa52de58a644 Author: Matthias Clasen Date: 2012-11-25 Add a cmdline way to empty the trash Support gvfs-trash --empty to empty the trash. M man/gvfs-trash.xml M programs/gvfs-trash.c commit 5fe24e3a42164b20795d653d4bb00316cedba3ab Author: Nilamdyuti Goswami Date: 2012-11-23 Assamese translation updated M po/as.po commit 3023ce9c2f69d368a48064c7507e70742abdde42 Author: Fran Diéguez Date: 2012-11-22 Updated Galician translations M po/gl.po commit 535cc9d04a9b793b981773c597560216314cf2f9 Author: Wouter Bolsterlee Date: 2012-11-22 Updated Dutch translation M po/nl.po commit d2273d404cb3e895ba67052dde4a3e85b1c084ba Author: David Zeuthen Date: 2012-11-20 Use UDisksObjectInfo API from udisks 2.0.90, if available, for symbolic icons Without this fix volumes would fall back to folder-remote-symbolic which is obviosly wrong. With this fix, it looks correct, see http://people.freedesktop.org/~david/gvfs-udisks2-symbolic-icons.png Right now we only use the API if it's available - things still work with udisks >= 1.97. Signed-off-by: David Zeuthen M monitor/udisks2/gvfsudisks2drive.c M monitor/udisks2/gvfsudisks2mount.c M monitor/udisks2/gvfsudisks2volume.c commit e4f2a031e0fbe1424e155a6c4dbed104dcf93155 Author: Daniel Mustieles Date: 2012-11-20 Updated Spanish translation M po/es.po commit e5c4b5f2c951ff9271ac0e801eb1aaeff547c223 Author: Martin Pitt Date: 2012-11-20 gvfs-test: Fix logic error in waiting for prompt Do not try to check the prompt string if it is None (which can happen for non-blocking streams). Also add a (commented out) debug print to help with figuring out why some of the calls take a very long time. M test/gvfs-test commit ffb341e9322b913161271abafc47d5c02700b572 Author: Mario Blättermann Date: 2012-11-18 [l10n] Updated German translation M po/de.po commit 419524fc7a702072f1355bffb05c75af1beeaa05 Author: Changwoo Ryu Date: 2012-11-07 Updated Korean translation M po/ko.po commit f14dd5a3fc835e3ba29979c96bc5f62e7dd4e187 Author: Martin Pitt Date: 2012-11-06 gvfs-test: Fix Drive tests for Python 3.3 Python 3.3 changed the behaviour of subprocess.Popen() with universal_newlines=True: now stdin is expected to be a str as well, which makes sense, but didn't work that way in Python 3.2. Change the code to explicitly recode and not use universal_newlines=True, so that this works for both Python versions. M test/gvfs-test commit 9ebfe661e864d8d0dda41926dc57dcebb9634184 Author: Matej Urbančič Date: 2012-11-02 Updated Slovenian translation M po/sl.po commit 108168e6ecc0103f62b20531b9adf138935bb8a3 Author: cjl Date: 2012-11-02 Capitalize acronyms https://bugzilla.gnome.org/show_bug.cgi?id=683763 Signed-off-by: Tomas Bzatek M common/gvfsdnssdutils.c M daemon/gvfsbackendsftp.c commit 10ca359c57eb6f5481a61bf1bf52996bd992aa09 Author: Tomas Bzatek Date: 2012-11-01 proxy volume monitor: Get session bus on demand Do not connect to session bus at module load, let proxies to get a bus when needed. No need to keep it active all the time. Proxies will return an error when a bus is unavailable. Also don't close the shared d-bus connection on module unload, let it be managed by proxies. https://bugzilla.gnome.org/show_bug.cgi?id=687074 M monitor/proxy/gproxyvolumemonitor.c M monitor/proxy/gproxyvolumemonitor.h M monitor/proxy/remote-volume-monitor-module.c commit f70800d655ca6b222625cd72af820f17404bdb4d Author: Tomas Bzatek Date: 2012-11-01 proxy volume monitor: Don't disable exit_on_close on session bus We're on shared session bus, let's exit when connection closes (usually tied to running desktop session). https://bugzilla.gnome.org/show_bug.cgi?id=687074 M monitor/proxy/gproxyvolumemonitor.c commit ed24477ecdcf137276e9b7e89be70a819854a423 Author: Colin Walters Date: 2012-10-30 Remove calls to g_type_init(), bump GLib required version See http://git.gnome.org/browse/glib/commit/?id=2002479c02fa6e468fc3f67ddc663657a52ebde8 https://bugzilla.gnome.org/show_bug.cgi?id=687236 M client/gvfsfusedaemon.c M configure.ac M daemon/daemon-main.c M daemon/main.c M metadata/meta-daemon.c M metadata/meta-set.c M monitor/proxy/gvfsproxyvolumemonitordaemon.c M programs/gvfs-cat.c M programs/gvfs-copy.c M programs/gvfs-info.c M programs/gvfs-ls.c M programs/gvfs-mime.c M programs/gvfs-mkdir.c M programs/gvfs-monitor-dir.c M programs/gvfs-monitor-file.c M programs/gvfs-mount.c M programs/gvfs-move.c M programs/gvfs-open.c M programs/gvfs-rename.c M programs/gvfs-rm.c M programs/gvfs-save.c M programs/gvfs-set-attribute.c M programs/gvfs-trash.c M programs/gvfs-tree.c M test/benchmark-common.c M test/benchmark-gvfs-big-files.c M test/benchmark-gvfs-small-files.c M test/benchmark-posix-big-files.c M test/benchmark-posix-small-files.c M test/test-query-info-stream.c commit 1aa6f731fa75535be856ea0ee2c112637becc22a Author: Mattias Põldaru Date: 2012-10-30 [l10n] Updated Estonian translation M po/et.po commit 7c1acbfed943c42ac2abd47f684e356a676b64a2 Author: Tomas Bzatek Date: 2012-10-24 Post release version bump M configure.ac