android icon indicating copy to clipboard operation
android copied to clipboard

Share link

Open nedimhx opened this issue 12 years ago • 43 comments

Hello, when I long tap on some file or folder, I get 4 selections, Share link, Rename, Remove, Details

when I click Share link on any file or folder I get this Error: "Sorry, sharing is not enabled on your server. Please contact your administrator"

In my owncloud admin settings sharing API is enabled and I can share files trought web browser, but I need that funciton on android app too.

Regards

nedimhx avatar Mar 17 '14 02:03 nedimhx

Hi, Please, could you tell me what is your server version? Write in your web browser "server address/status.php" and tell us the output, please.

Thanks.

masensio avatar Mar 17 '14 07:03 masensio

6.0.0.8

nedimhx avatar Mar 17 '14 08:03 nedimhx

Should be working.

  1. Share with a public link some file from the web interface. Then go to the Android app, and browse to the folder where that file is. Do you see a new icon on the right side of the file entry in the list?

  2. Is your account marked to automatically synchronize? In this case, please, disable it in the device settings. Then open the app, browse into any folder, and then browse up to root again. Then try to share a file. Tell us if that helps-

davivel avatar Mar 17 '14 08:03 davivel

I have done with your steps, but still same problem.

nedimhx avatar Mar 17 '14 10:03 nedimhx

Could you give us more information about your server? What web server are you using? Could you add here the logs of the web server when trying to share?

Thanks in advance.

davivel avatar Mar 20 '14 17:03 davivel

I have installed latest owncloud server and still same problem, where to look server logs ?

nedimhx avatar Mar 29 '14 17:03 nedimhx

UPDATE:

I have owncloud version with buil 2014-01-22T11:26:13+00:00 and I have try to share on android app. Sharing has success, after I investigate and copy files form this build version to latest, everything was be the same, on my latest wersion sharing problem still occure, but when I change version.php and config.php file sharing on android works it show list of options how to share, but when I select any options eg. Copy Ling I get error "An error occure while trying to share this file or folder"

So problem is somewhere with OC verision

nedimhx avatar Mar 29 '14 19:03 nedimhx

anyone help ?

nedimhx avatar Mar 29 '14 22:03 nedimhx

Hi, @nedimhx . There is a bug in the Android app in the processing of version number that can be resulting in this behaviour. We are fixing it at this moment.

Stay tuned.

davivel avatar Mar 31 '14 06:03 davivel

Just wanting to say that I have exactly this bug "An error occure while trying to share this file or folder" aswell. But thanks for working on it!

DPTJKKVH avatar Apr 26 '14 16:04 DPTJKKVH

@nedimhx, @DPTJKKVH We have fix the problem in the Android app in the processing of version number in the release 1.5.6. Can you tell us if this issue is solved for you?

Thanks.

masensio avatar Jun 03 '14 07:06 masensio

Nope, it is still present.

Please tell me what information you need and I will provide everything.

DPTJKKVH avatar Jun 03 '14 07:06 DPTJKKVH

@nedimhx , @DPTJKKVH , could you tell us your current server version numbers?

Thanks in advance.

UPDATE: the access log from the server could help.

davivel avatar Jun 03 '14 09:06 davivel

Server Version is 6.0.3 on an Ubuntu Server 14.04.

Will post access logs later. Do you want the raw apache logs or the ownCloud produced logs?

DPTJKKVH avatar Jun 03 '14 12:06 DPTJKKVH

Both, but specially Apache.

davivel avatar Jun 03 '14 12:06 davivel

Hello davivel. This issue is one i have followed a long time. In my test i notice that files that are already shared do work but creating a new share link does not work. What are you looking for in the apache log files?

stormbyte avatar Jun 03 '14 16:06 stormbyte

Access log:

[03/Jun/2014:19:13:01 +0200] "GET /status.php HTTP/1.1" 200 743 "-" "Android-ownCloud" [03/Jun/2014:19:13:03 +0200] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 1320 "-" "Android-ownCloud" [03/Jun/2014:19:13:05 +0200] "GET /ocs/v1.php/apps/files_sharing/api/v1/shares?path=%2F&reshares=false&subfiles=true HTTP/1.1" 200 737 "-" "Android-ownCloud" [03/Jun/2014:19:13:07 +0200] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 3559 "-" "Mozilla/5.0 (Linux) mirall/1.5.0" [03/Jun/2014:19:13:17 +0200] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 1151 "-" "Mozilla/5.0 (Linux) mirall/1.5.0" [03/Jun/2014:19:13:22 +0200] "GET /ocs/v1.php/apps/files_sharing/api/v1/shares?path=%2F5205061402_4e98912b3c_o.jpg&reshares=false&subfiles=false HTTP/1.1" 200 1440 "-" "Android-ownCloud" [03/Jun/2014:19:13:24 +0200] "POST /ocs/v1.php/apps/files_sharing/api/v1/shares HTTP/1.1" 200 1393 "-" "Android-ownCloud" [03/Jun/2014:19:13:37 +0200] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 3559 "-" "Mozilla/5.0 (Linux) mirall/1.5.0"

While trying to share a file

I notice that something is using Webdav. In the admin panel I have the following notice:

Setup Warning Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken. Please double check the installation guides.

status.php {"installed":"true","version":"6.0.3.1","versionstring":"6.0.3","edition":""}

Hope it helps @davivel

stormbyte avatar Jun 03 '14 17:06 stormbyte

While I fixed the Webdav warning it did not fix the share link ability

stormbyte avatar Jun 03 '14 18:06 stormbyte

access log while sharing after fix of the warning: [03/Jun/2014:20:24:27 +0200] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 3559 "-" "Mozilla/5.0 (Linux) mirall/1.5.0" [03/Jun/2014:20:24:28 +0200] "GET /status.php HTTP/1.1" 200 758 "-" "Android-ownCloud" [03/Jun/2014:20:24:28 +0200] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 1320 "-" "Android-ownCloud" [03/Jun/2014:20:24:29 +0200] "GET /ocs/v1.php/apps/files_sharing/api/v1/shares?path=%2F&reshares=false&subfiles=true HTTP/1.1" 200 737 "-" "Android-ownCloud" [03/Jun/2014:20:24:43 +0200] "GET /ocs/v1.php/apps/files_sharing/api/v1/shares?path=%2F5205061402_4e98912b3c_o.jpg&reshares=false&subfiles=false HTTP/1.1" 200 1440 "-" "Android-ownCloud" [03/Jun/2014:20:24:43 +0200] "POST /ocs/v1.php/apps/files_sharing/api/v1/shares HTTP/1.1" 200 1393 "-" "Android-ownCloud"

stormbyte avatar Jun 03 '14 18:06 stormbyte

Found something in the log of owncloud

{"app":"user_ldap","message":"Turned off SSL certificate validation successfully.","level":2,"time":"2014-06-03T18:35:59+00:00"} {"app":"PHP","message":"ldap_start_tls(): Unable to start TLS: Protocol error at #PATH_TO_OWNCLOUD#/apps/user_ldap/lib/ldap.php#141","level":3,"time":"2014-06-03T18:35:59+00:00"} {"app":"user_ldap","message":"LDAP error Protocol error (2) after calling ldap_start_tls","level":0,"time":"2014-06-03T18:35:59+00:00"} {"app":"PHP","message":"Invalid argument supplied for foreach() at #PATH_TO_OWNCLOUD#/apps/files_sharing/lib/api.php#103","level":3,"time":"2014-06-03T18:36:00+00:00"} {"app":"user_ldap","message":"Turned off SSL certificate validation successfully.","level":2,"time":"2014-06-03T18:36:00+00:00"} {"app":"PHP","message":"ldap_start_tls(): Unable to start TLS: Protocol error at #PATH_TO_OWNCLOUD#/apps/user_ldap/lib/ldap.php#141","level":3,"time":"2014-06-03T18:36:00+00:00"} {"app":"user_ldap","message":"LDAP error Protocol error (2) after calling ldap_start_tls","level":0,"time":"2014-06-03T18:36:00+00:00"}

stormbyte avatar Jun 03 '14 18:06 stormbyte