Skip to content

Share link #440

Closed
Closed

Description

@nedimhx

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

Activity

  1. masensio commented on Mar 17, 2014

    @masensio

    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.

  2. nedimhx commented on Mar 17, 2014

    @nedimhx
    Author

    6.0.0.8

  3. davivel commented on Mar 17, 2014

    @davivel
    Contributor

    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-

  4. nedimhx commented on Mar 17, 2014

    @nedimhx
    Author

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

  5. davivel commented on Mar 20, 2014

    @davivel
    Contributor

    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.

  6. nedimhx commented on Mar 29, 2014

    @nedimhx
    Author

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

  7. nedimhx commented on Mar 29, 2014

    @nedimhx
    Author

    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

  8. nedimhx commented on Mar 29, 2014

    @nedimhx
    Author

    anyone help ?

  9. davivel commented on Mar 31, 2014

    @davivel
    Contributor

    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.

  10. DPTJKKVH commented on Apr 26, 2014

    @DPTJKKVH

    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!

  11. masensio commented on Jun 3, 2014

    @masensio

    @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.

  12. 20 remaining items

  13. stormbyte commented on Oct 20, 2014

    @stormbyte

    ownCloud 7.0.2 with app 1.5.8
    Still can't create new share for a file

  14. stormbyte commented on Oct 21, 2014

    @stormbyte

    ownCloud 7.0.2 with app 1.6.0
    Responds with "missing authirisation to share file"

    What authirisation?

  15. nirvana1 commented on Oct 24, 2014

    @nirvana1

    If you are having this application hosted on an Apache server, the URL sharing error "Sorry, sharing is not enabled on your server. Please contact your administrator" is more than likely caused due to the 'allow_url_fopen' and 'alolw_url_include' variables set to 'Off' in the php.ini file.. I just fixed it by turning these 'On'.

  16. stormbyte commented on Oct 25, 2014

    @stormbyte

    I put the following settings in the php ini
    allow_url_fopen = On
    allow_url_include = On
    But it would not change the effect.
    In the apache error log there is no entry
    In the owncloud log there is no entry
    In the apache acces log I got 2 entries

    "GET /ocs/v1.php/apps/files_sharing/api/v1/shares?path=%2F5205061402_4e98912b3c_o.jpg&reshares=false&subfiles=false HTTP/1.0" 200 1410 "-" "Android-ownCloud"
    "POST /ocs/v1.php/apps/files_sharing/api/v1/shares HTTP/1.0" 200 1434 "-" "Android-ownCloud"

    Dutch error "u mist autorisatie om dit bestand te delen"
    Translates "missing authorization to share this file"

  17. nedimhx commented on Oct 25, 2014

    @nedimhx
    Author

    I don't have that problem after install owncloud latest stable version.

    Regards

    On Oct 25, 2014, stormbyte [email protected] wrote:

    I put the following settings in the php ini
    allow_url_fopen = On
    allow_url_include = On
    But it would not change the effect.
    In the apache error log there is no entry
    In the owncloud log there is no entry
    In the apache acces log I got 2 entries

    "GET
    /ocs/v1.php/apps/files_sharing/api/v1/shares?path=%2F5205061402_4e98912b3c_o.jpg&reshares=false&subfiles=false
    HTTP/1.0" 200 1410 "-" "Android-ownCloud"
    "POST /ocs/v1.php/apps/files_sharing/api/v1/shares HTTP/1.0" 200 1434
    "-" "Android-ownCloud"

    Dutch error "u mist autorisatie om dit bestand te delen"
    Translates "missing authorization to share this file"


    Reply to this email directly or view it on GitHub:
    #440 (comment)

    -- Sent with K-@ Mail - the evolution of emailing.

  18. stormbyte commented on Oct 28, 2014

    @stormbyte

    I think that it has to do with the LDAP setup.
    The authentication is LDAP only.
    When the App is trying to share a file, 4 LDAP requests are made.
    Maybe the problem is there but need to research more.

    @schiesbn
    Is LDAP tested?
    I got zentyal with there LDAP active directory look a like, maybe that is the problem.
    If this is the problem then it could be in the server

  19. stormbyte commented on Nov 24, 2014

    @stormbyte

    After a long search in the wrong direction into LDAP and the reverse proxy settings.
    I found that the config settings in the installation I updated from V4 to V7 are not saved.
    Default values that are shown in the admin panel as active where not saved as active.
    This was the setting for "Allow apps to use the Share API" that was active in the admin but not active when accessed from the API.

    @nedimhx the new installation helped with diagnostics. With a new installation the settings where saved.

    The App is now able to share files.
    Is the a possibility to add an appropriate error message or to remove share link when disabled?

  20. davivel commented on Jan 26, 2015

    @davivel
    Contributor

    @nedimhx , thanks for your feedback about your state.

    @stormbyte , thanks a lot for your deep research in this problem. It is really helpful.

    We have in the backlog several improvements about the usability of the "sharing link" action, including not showing it when the server does not support it. But we don't have an estimated date to work in it.

    @DPTJKKVH , @ERamseth , is this still a problem for you? Could you try to disable and then enable again the Share API in the admin settings? Thanks in advance.

  21. nedimhx commented on Jan 26, 2015

    @nedimhx
    Author

    After I have installed owncloud 7, problem was solved. Thats report from me :)

    On January 26, 2015 8:56:33 PM "David A. Velasco"
    [email protected] wrote:

    @nedimhx , thanks for your feedback about your state.

    @stormbyte , thanks a lot for your deep research in this problem. It is
    really helpful.

    We have in the backlog several improvements about the usability of the
    "sharing link" action, including not showing it when the server does not
    support it. But we don't have an estimated date to work in it.

    @DPTJKKVH , @ERamseth , is this still a problem for you? Could you try to
    disable and then enable again the Share API in the admin settings? Thanks
    in advance.


    Reply to this email directly or view it on GitHub:
    #440 (comment)

  22. DPTJKKVH commented on Jan 26, 2015

    @DPTJKKVH

    Unfortunately I have still the problem with the app saying: "Sorry, you
    have no permission to share this file." I disabled and reenabled the
    share api like you suggested but no luck with that.

  23. tobiasKaminsky commented on Jan 27, 2015

    @tobiasKaminsky
    Contributor

    @DPTJKKVH I also get this message, but only if I have enabled "require password"

  24. DPTJKKVH commented on Jan 27, 2015

    @DPTJKKVH

    Actually the root of this bug has been identified long ago: If you enable public uploading sharing from the Android app works. I tried it myself after several reports it working and it's true. It's some problem with the sharing api checking share rules one after another and for some reason failing if public upload ist set to false.

    I don't know why core doesn't fix it. :\

  25. davivel commented on Mar 16, 2015

    @davivel
    Contributor

    A fix for this bug will be available with next release of the OC app, version 1.7.1. There is no estimation time for the release, but should not take to long.

    If the problem persists or reappears, please, reopen.

  26. added a commit that references this issue on Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions