-
Notifications
You must be signed in to change notification settings - Fork 155
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
Shared with me view: error on changing status of files #4946
Comments
is this a duplicate of owncloud/product#276 ? |
With recent changes in web we wanted to be clever and use the response of the accept/decline request for updating the respective row of the shared-with-me page. For oc10 this works fine, for oCIS the response is empty, so we cannot use it. As a quick fix we have two options: I prefer b) as it's less payload, but a) is the quickest solution. Looking into it right now. |
IMO the best solution would be to actually return the share in the response, like we had it for oc10. But that's also the one that takes the most time to implement. Will work on a quick fix for now. |
@butonic since you looked into it today, how much effort are we talking about with returning the share in the response in reva? |
after changing a share the endpoints need to reread the share and do a stat to fill in all necessary data. quite a bit of logic and testing. rough estimation 3 days. |
For now mitigated in web by fetching the share by id after accepting/declining if the response was empty: #4988 |
@elizavetaRa could you check if we can close this ticket for now? A fix in reva would be good and is in progress AFAIK. Web will be compatible with that out of the box, as the fix in reva will resemble the oc10 behaviour, which is already working. |
@kulmann the Reva PR is already there since some weeks but the behaviour is still wrong. We'll give you more details today in the go-live meeting. |
I looked into this again after the meeting. The fix in reva is merged, but |
Thanks to the recent fixes from @C0rby this is fixed now. Tested with most recent reva master, works like a charm. Closing this issue. |
For the record, there is an unrelated issue owncloud/ocis#2011 when accepting an already declined share in ocis. |
For the record, there is an API issue in ocis when declining a previously accepted share owncloud/ocis#2128 |
Steps to reproduce
Expected behaviour
Status of clicked file changes to selected
Actual behaviour
Error "Cannot read property "length" of undefined" appears, file status is only updated on page reload. Sometimes error "unexpected end of JSON input" appears
Console output: vendor.js:77546 POST https://localhost:9200/ocs/v2.php/apps/files_sharing/api/v1/shares/pending/a327b315-e26f-4dd4-8325-4eb9e0fbd876?format=json 500 (Internal Server Error)
Web server: OCIS 1.4.0, also tested with OCIS 1.3.0-rc1
Updated from an older ownCloud or fresh install: Web: latest master commit (ddc72b5), commit from yesterday (33888cc), works in last release version (2.1.0)
The text was updated successfully, but these errors were encountered: