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

cannot accept share through 'Shared with you' view #240

Closed
michielbdejong opened this issue Aug 28, 2023 · 14 comments
Closed

cannot accept share through 'Shared with you' view #240

michielbdejong opened this issue Aug 28, 2023 · 14 comments

Comments

@michielbdejong
Copy link
Contributor

michielbdejong commented Aug 28, 2023

Screenshot 2023-08-28 at 15 18 23

Clicking 'accept' or 'reject' in https://oc2.docker/index.php/apps/files/?dir=/&view=sharingin shows an error message and doesn't work.
The API call does return a 200 status code but with the following body:

{"ocs":{"meta":{
  "status":"failure",
  "statuscode":404,
  "message":"wrong share ID, share doesn't exist.",
  "totalitems":"",
  "itemsperpage":""
},"data":[]}}
@michielbdejong
Copy link
Contributor Author

This only happens when trying to accept/decline from the 'Shared with you' view.
A workaround is to refresh the page and then accept through the modal dialog.

@michielbdejong michielbdejong changed the title cannot accept share if Marie was added to group later cannot accept share through 'Shared with you' view Aug 28, 2023
@michielbdejong
Copy link
Contributor Author

Turns out that getShares has the switch to the second ExternalManager, but acceptShare does not :(

@yasharpm
Copy link
Collaborator

Neither does declineShare. We need another PR into OwnCloud :(

@michielbdejong
Copy link
Contributor Author

Yes! but a small one this time, and it should be easy to write.

@yasharpm
Copy link
Collaborator

Gonna do it tomorrow...

@yasharpm
Copy link
Collaborator

yasharpm commented Sep 1, 2023

I have pushed the fix to the fixing_issue_240 branch of our fork of OwnCloud core.

@yasharpm
Copy link
Collaborator

yasharpm commented Sep 1, 2023

This is not tested. I am working on a way to test it!

@michielbdejong
Copy link
Contributor Author

Great! I updated dev-stock to use that branch of owncloud/core for opencloudmesh-testing and for rd-sram-testing. Building the images now.

@yasharpm
Copy link
Collaborator

yasharpm commented Sep 1, 2023

Testing the fix...
There is bug is reproduced as follows:
Decline a share in the "shared with you". then share it again. This time try to accept using the notification pop up. It won't work.

@yasharpm
Copy link
Collaborator

yasharpm commented Sep 1, 2023

It might be a bug that exists independently. Might be because we need different table constraints

@michielbdejong
Copy link
Contributor Author

then share it again.

In my experience, when Marie declines a share, for Einstein it still looks like shared with Test Group, so he can't share it again?

I tried with Einstein removing Test Group from the sharees list and readding it after Marie had declined it, and then there is no problem, she can accept it in both ways.

@yasharpm
Copy link
Collaborator

yasharpm commented Sep 1, 2023

I created an issue about it here on the OCM app repository.

@michielbdejong
Copy link
Contributor Author

The original issue of this ticket is fixed in owncloud/core#40967

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

No branches or pull requests

2 participants