Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webdav via gvfs #4370

Closed
meshok0 opened this issue Aug 9, 2013 · 17 comments
Closed

webdav via gvfs #4370

meshok0 opened this issue Aug 9, 2013 · 17 comments
Assignees

Comments

@meshok0
Copy link

meshok0 commented Aug 9, 2013

I can't connect to my owncloud via gvfs (so other clients which use gvfs: PCManFM, Nautilus).
Error:
$ gvfs-mount dav://192.168.10.60:3080/remote.php/webdav/
Enter password for ownCloud
User: xxx
Password:
Error mounting location: HTTP Error: Connection terminated unexpectedly
$
In apache log I see only:
192.168.xx.xx - - [09/Aug/2013:11:49:35 +0400] "OPTIONS /remote.php/webdav HTTP/1.1" 401 798 "-" "gvfs/1.12.1"

cadaver, firefox, davfs(mount -t davfs) work.

I would thought that it is gvfs problem, BUT
when I do
gvfs-mount dav://demo.owncloud.org/remote.php/webdav/
it works.

Operating system:
debian 7.1 amd64
Web server:
Apache/2.2.22 (Debian)
Database:
mysql Ver 14.14 Distrib 5.5.31, for debian-linux-gnu (x86_64) using readline 6.2
PHP version:
PHP 5.4.4-14+deb7u3 (cli) (built: Jul 17 2013 14:54:08)
ownCloud version:
5.0.9
gvfs version:
1.12.1-0ubuntu1.2

@DeepDiver1975
Copy link
Member

maybe a setup issue with your server - you can double check by running litmus against your server
http://www.webdav.org/neon/litmus/

@meshok0
Copy link
Author

meshok0 commented Aug 9, 2013

litmus http://192.168.x.x:xx/remote.php/webdav/ xxx xxx

-> running `basic':

  1. init.................. pass
  2. begin................. pass
  3. options............... pass
  4. put_get............... pass
  5. put_get_utf8_segment.. pass
  6. put_no_parent......... pass
  7. mkcol_over_plain...... pass
  8. delete................ pass
  9. delete_null........... pass
  10. delete_fragment....... pass
    1. mkcol................. pass
    2. mkcol_again........... pass
    3. delete_coll........... pass
    4. mkcol_no_parent....... pass
    5. mkcol_with_body....... pass
    6. finish................ pass
      <- summary for basic': of 16 tests run: 16 passed, 0 failed. 100.0% -> runningcopymove':
  11. init.................. pass
  12. begin................. pass
  13. copy_init............. pass
  14. copy_simple........... pass
  15. copy_overwrite........ pass
  16. copy_nodestcoll....... pass
  17. copy_cleanup.......... pass
  18. copy_coll............. pass
  19. copy_shallow.......... pass
  20. move.................. pass
    1. move_coll............. pass
    2. move_cleanup.......... pass
    3. finish................ pass
      <- summary for copymove': of 13 tests run: 13 passed, 0 failed. 100.0% -> runningprops':
  21. init.................. pass
  22. begin................. pass
  23. propfind_invalid...... pass
  24. propfind_invalid2..... pass
  25. propfind_d0........... pass
  26. propinit.............. pass
  27. propset............... pass
  28. propget............... pass
  29. propextended.......... pass
  30. propmove.............. pass
    1. propget............... pass
    2. propdeletes........... pass
    3. propget............... pass
    4. propreplace........... pass
    5. propget............... pass
    6. propnullns............ pass
    7. propget............... pass
    8. prophighunicode....... pass
    9. propget............... FAIL (Property {http://example.com/neon/litmus/}high-unicode had value , expected )
    10. propremoveset......... pass
    11. propget............... pass
    12. propsetremove......... pass
    13. propget............... pass
    14. propvalnspace......... pass
    15. propwformed........... pass
    16. propinit.............. pass
    17. propmanyns............ pass
    18. propget............... pass
    19. propcleanup........... pass
    20. finish................ pass
      <- summary for `props': of 30 tests run: 29 passed, 1 failed. 96.7%
      See debug.log for network/debug traces.

I do not think that "18. propget............... FAIL" involved in my problem. Or I was wrong?

@DeepDiver1975
Copy link
Member

hmm - looks good

@DeepDiver1975
Copy link
Member

can you access your webdav endpoint in the browser?

@meshok0
Copy link
Author

meshok0 commented Aug 9, 2013

yes

@DeepDiver1975
Copy link
Member

ok - maybe gvfs-mount cannot handle the port within the url?

@meshok0
Copy link
Author

meshok0 commented Aug 9, 2013

$ gvfs-mount dav://192.168.x.x/remote.php/webdav/
Enter password for ownCloud
User: xxx
Password:
Error mounting location: HTTP Error: Connection terminated unexpectedly

@ghost ghost assigned bantu Aug 9, 2013
@bantu
Copy link

bantu commented Aug 9, 2013

dav://localhost:81/projects/owncloud/core/remote.php/webdav works for me in Nautilus on master. This is lighttpd and php5-fpm and gvfs version 1.16.1-0ubuntu1, though.

@bantu
Copy link

bantu commented Aug 12, 2013

Also working on Ubuntu Precise (gvfs 1.12.1-0ubuntu1.2).

@bantu
Copy link

bantu commented Aug 12, 2013

Are there any additional informations you can provide? Do you have a proxy configured?

@meshok0
Copy link
Author

meshok0 commented Aug 13, 2013

I have found something.
My steps:

  1. I had created new user xxx with password yyy (literally) in owncloud.
  2. I had been able to connect using this user and gvfs-mount to dav://192.168.x.x/remote.php/webdav/
  3. I had changed my first owncloud user password to xxx and had connected to dav://192.168.x.x/remote.php/webdav/ .
    So, I have found out If password contains "_" symbol, there is no chance to connect. If it contains capital letters,
    it is occasionally possible to connect after some attempts.

Is there a mistake in authentification code in owncloud?

I connect directly to owncloud server and have owncloud 5.0.10 now.

@meshok0
Copy link
Author

meshok0 commented Aug 13, 2013

I set password to 'qqqqqq_' and can connect on second attempt... Owncloud lives it's ownlife. :)

@bantu
Copy link

bantu commented Sep 19, 2013

@meshok0 How has this been working for you on the latest owncloud version?

@meshok0
Copy link
Author

meshok0 commented Sep 20, 2013

ownCloud 5.0.11

Exact same issue:

user: qqq
pass: www
OK

user: qqq
pass: QQQwww_
Error mounting location: HTTP Error: Connection terminated unexpectedly

user: qqq
pass: qweasd
ОК

@meshok0
Copy link
Author

meshok0 commented Sep 20, 2013

cadaver works on any passwords

@meshok0
Copy link
Author

meshok0 commented Sep 21, 2013

Today I have tried another machine with Ubuntu 13.04. And PCManFM worked with my owncloud's webdav. Probably it was a bug in my ubuntu installation.

@meshok0
Copy link
Author

meshok0 commented Sep 21, 2013

Or in old version of gvfs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants