Skip to content
This repository was archived by the owner on Jul 24, 2018. It is now read-only.

Shareing not working #622

Open
hermann1514 opened this issue Mar 11, 2016 · 38 comments
Open

Shareing not working #622

hermann1514 opened this issue Mar 11, 2016 · 38 comments

Comments

@hermann1514
Copy link

When i will create a new Share, i can choose the User but then only the rotating circle is shown on the right side and in the middle of the scrren there is an errror "failed to share"

@rullzer
Copy link

rullzer commented Mar 14, 2016

Ah it seems the sharing from the documents app is still referencing the obsolete (and removed) internal private api endpoint. We had the same issue with the gallery. I'll see if it is easy to port the patch from @oparoz .

@rullzer rullzer self-assigned this Mar 14, 2016
@oparoz
Copy link
Contributor

oparoz commented Mar 14, 2016

@rullzer Bear in mind that the upload and email buttons are not activated yet in Gallery. There is work currently done to make it happen.

@rullzer
Copy link

rullzer commented Mar 16, 2016

Mmmm crap. The documents app won't really work on my system. (at least the default install steps fail)... so this makes working on this issue a bit harder...

@rullzer
Copy link

rullzer commented Mar 16, 2016

Ah some fiddling made it work... let see..

@rullzer
Copy link

rullzer commented Mar 16, 2016

mmm so it seems that the path is not present easily from within the documents app...

@rullzer
Copy link

rullzer commented Mar 16, 2016

@oparoz am I correct in assuming that with modifying the namespace copying over your changes should not create much trouble?

@oparoz
Copy link
Contributor

oparoz commented Mar 16, 2016

Correct, with the caveats mentioned above. As long as you have the path stored in the share button, it should work.

@rullzer
Copy link

rullzer commented Mar 16, 2016

@oparoz cool! then I'll try to tackle the path issue and then just pull your file :) Thanks

@rullzer rullzer mentioned this issue Mar 16, 2016
@resoli
Copy link

resoli commented Mar 28, 2016

I'm hit as well by this bug. No way to share a document link for collaborative editing.

@rullzer
Copy link

rullzer commented Mar 29, 2016

@resoli, as a work around share the file via the 'files' app.

@resoli
Copy link

resoli commented Mar 29, 2016

Hello @rullzer; this is not an option, I need to share under collaborative editing ... I will wait for a fix.

@reuterbal
Copy link

Same problem here on OC 9.0.0:

  • Installed master branch: works fine but sharing issue persists
  • Applying Fix sharing #624 doesn't fix the issue for me, now the entire share button isn't working anymore

@reuterbal
Copy link

Sorry, not-working share button was probably due to the bug in Mail app owncloud/mail#1422.

When clicking the share button, it produces now the error message "Error while retrieving shares" and the associated request to
/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json&path=7563&shared_with_me=true
fails with 404.

@oparoz
Copy link
Contributor

oparoz commented Apr 14, 2016

@reuterbal - Have you disabled any of the sharing options in admin?

@reuterbal
Copy link

Not that I'm aware of. Specifically the Share API is enabled:
screenshot from 2016-04-14 14 45 27

@oparoz
Copy link
Contributor

oparoz commented Apr 14, 2016

Thanks. What do you get if you just paste the URL in your browser?

@reuterbal
Copy link

It asks me for authentication repeatedly, not accepting (correct) credentials.
curl -u <user>:<pass> ... provides me with a list of shares.

@oparoz
Copy link
Contributor

oparoz commented Apr 14, 2016

Thanks, so that URL works. I wonder why it gives you a 404 when called from within documents

@reuterbal
Copy link

Sorry, mistake on my side with the curl-call. I did not encapsulate the URL in quotation marks, so not all GET parameters were sent.
curl .../ocs/v2.php/apps/files_sharing/api/v1/shares?format=json&shared_with_me=true"
works, however
curl .../ocs/v2.php/apps/files_sharing/api/v1/shares?format=json&path=7563&shared_with_me=true"
does not (note the additional path=7563)

@reuterbal
Copy link

(works not = 404)

@oparoz
Copy link
Contributor

oparoz commented Apr 14, 2016

Thanks, that should help figure out what the problem is.

@PVince81 PVince81 added this to the 9.0.3-next-maintenance milestone Apr 19, 2016
@angristan
Copy link

Hello, I also have a issue with file sharing, but it does not show any error, it just loads
screenshot_24-04-2016_gcivlph4

@wiertz
Copy link

wiertz commented Jun 2, 2016

@angristan: could be the same issue - I get an error message on Firefox and the spinning wheel on Safari. In any case sharing from the documents app currently does not work for me either.

@reuterbal
Copy link

Just upgraded PHP 5.5.9 to PHP 5.6.22 - this fixed login problems with LDAP-Users from Android Apps. However, sharing of documents does still not work.

@PVince81 PVince81 modified the milestones: 9.0.4-next-maintenance, 9.0.3-current-maintenance Jun 17, 2016
@kidandcat
Copy link

+1
Some quick fix until it is resolved?

I have nothing logged, but it keep loading like in @angristan pic.

@geislern
Copy link

Is anything happening here soon? Same problem for me: Error message in firefox, endless spinning in chrome. Changes from the pull request didn't fix it.

In one case there was a link generated eventually, which did, however, not show the document, but an empty page with the owncloud logo. Could not replicate that though.

@olivierche
Copy link

Same problem with owncloud-files-9.1.0-1.1.noarch and documents: 0.13.1 on CentOS Linux release 7.2.1511 (Core).

When i try to share a doc i got ""failed to share / Erreur lors de la mise en partage" in firefox, and in owncloud.log : {"reqId":"qdfsqfdqfqf","remoteAddr":"MYIP","app":"PHP","message":"Invalid argument supplied for foreach() at /var/www/html/owncloud/core/ajax/share.php#342","level":3,"time":"2016-08-23T13:26:03+02:00","method":"GET","url":"/index.php/core/ajax/share.php?fetch=getShareWith&search=usernameofuseritrytosharedocwith&limit=200&itemType=file","user":"myldaplogin"}

Enabled:

  • activity: 2.3.2
  • comments: 0.3.0
  • dav: 0.2.5
  • documents: 0.13.1
  • federatedfilesharing: 0.3.0
  • federation: 0.1.0
  • files: 1.5.1
  • files_pdfviewer: 0.8.1
  • files_sharing: 0.10.0
  • files_texteditor: 2.1
  • files_trashbin: 0.9.0
  • files_versions: 1.3.0
  • files_videoplayer: 0.9.8
  • firstrunwizard: 1.1
  • gallery: 15.0.0
  • notifications: 0.3.0
  • provisioning_api: 0.5.0
  • systemtags: 0.3.0
  • templateeditor: 0.1
  • updatenotification: 0.2.1
  • user_ldap: 0.9.0
    Disabled:
  • encryption
  • external
  • files_antivirus
  • files_external
  • user_external

@joker234
Copy link

same problem here with documents 0.13.1 and ownCloud 9.1.0 (from Debian owncloud stable repos). would appreciate soon fix of this issue :)

@PVince81 PVince81 modified the milestones: 9.0.6, 9.0.5 Sep 21, 2016
@olivierche
Copy link

Same problem after upgrade to ownCloud 9.1.1(.3 from Centos 7 ownCloud stable repos) and documents: 0.13.1.
Is a fix planed for 9.1 branch ?

@kidandcat
Copy link

Nothing planed and no response in months, too much time waiting, next week
I will fork the app and take care of it, any help will be welcome :)

El vie, 23 de septiembre de 2016 18:37, olivierche [email protected]
escribió:

Same problem after upgrade to ownCloud 9.1.1(.3 from Centos 7 ownCloud
stable repos) and documents: 0.13.1.
Is a fix planed for 9.1 branch ?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#622 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADrV0l0FT1vqSBkA32liYmn1Hj8T3WLBks5qtABTgaJpZM4HuhXO
.

@tiefenau
Copy link

Maybe the bug has something to do with the encryption-module. I found the following message in my log after trying to share a file:

"Message":"Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you."

@kidandcat
Copy link

The bug is that the internal owncloud API changed from owncloud 8 to
owncloud 9, so now the methods used to generate the shared link doesn't
work anymore.

El jue, 29 de septiembre de 2016 11:38, Christian Tiefenau <
[email protected]> escribió:

Maybe the bug has something to do with the encryption-module. I found the
following message in my log after trying to share a file:

"Message":"Can not decrypt this file, probably this is a shared file.
Please ask the file owner to reshare the file with you."


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#622 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADrV0gE1ZEAHaVlMkrIlvOsGuEX3SOgcks5qu4cSgaJpZM4HuhXO
.

@PVince81 PVince81 modified the milestones: 9.0.7, 9.0.6 Oct 20, 2016
@PVince81
Copy link
Contributor

I will fork the app and take care of it, any help will be welcome :)

@kidandcat Have you done so already ? Do you have a link ?

Note that the documents app has no maintainer currently so if someone is up to taking care of it and publishing to the app store (and future market), please let us know.

@kidandcat
Copy link

@PVince81 No, I'm focushing now in CODE

@olivierche
Copy link

Hi,
@PVince81. Is there a new maintainer for the documents app that could work on this issue (for ownCloud 9.1.5 or 10) ?
It seems that there's a lot of users waiting for it to work again (since 2016).

Reading https://doc.owncloud.org/server/9.1/admin_manual/configuration_files/collaborative_documents_configuration.html one can think that "Documents application supports share and edit files in the browser, and then share them inside ownCloud or through a public link." but that's no more true.
I'm sorry i can't help (i'm only sysadmin ;) ) but i'd like to know if there's a roadmap for this bug. Without maintainer in the next days, i'll try to install a server with Collabora Online and install the "Collabora Online connector" apps but this is much more work than installing the official documents app !
Regards,
Olivier

@PVince81
Copy link
Contributor

There is currently no maintainer for the app and no plans to release new versions.

If someone wants to step up and maintain and make releases for this app, feel free.

@Rudloff
Copy link

Rudloff commented May 29, 2017

Can someone please sum up what needs to be changed in order to fix this bug?

@VicDeo
Copy link
Contributor

VicDeo commented May 29, 2017

@Rudloff In short: Write a js code using a new sharing dialog.

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