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

The "Shared" item in Drawer (Shared Search Event) doesn't work ? #4845

Closed
Kilian-Perisset opened this issue Nov 18, 2019 · 19 comments · Fixed by #5300
Closed

The "Shared" item in Drawer (Shared Search Event) doesn't work ? #4845

Kilian-Perisset opened this issue Nov 18, 2019 · 19 comments · Fixed by #5300

Comments

@Kilian-Perisset
Copy link
Member

Kilian-Perisset commented Nov 18, 2019

Hi,

The Shared Search Event (accessible from Drawer) doesn't seem to work on a complete NextCloud package

App : NextCloud 3.9.0
Server : NextCloud 17.0.1 - 17.0.1.1

The error returned on server is :

Error | PHP | Undefined offset: 0 at [...]/drive/3rdparty/icewind/searchdav/src/XML/Operator.php#71 |  

(I didn't change server configuration, and used default files provided with NextCloud)

Could you try to reproduce ?

@AndyScherzinger
Copy link
Member

@tobiasKaminsky can you have a look at this? :)

@stale
Copy link

stale bot commented Dec 18, 2019

This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@stale stale bot added the stale label Dec 18, 2019
@szaimen
Copy link
Contributor

szaimen commented Dec 18, 2019

It isn't stale!

@stale stale bot removed the stale label Dec 18, 2019
@stale
Copy link

stale bot commented Jan 15, 2020

This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@stale stale bot added the stale label Jan 15, 2020
@Kilian-Perisset
Copy link
Member Author

up

@stale stale bot removed the stale label Jan 15, 2020
@tobiasKaminsky
Copy link
Member

@icewind1991 do you have an idea what the problem might be?

@icewind1991
Copy link
Member

what is the search request being sent?

@Kilian-Perisset
Copy link
Member Author

@icewind1991 It's visibly not due to the server, the app doesn't seem to send data back to the server (because the search type is no longer handled/routed), we're investigating with @tobiasKaminsky

@Kilian-Perisset
Copy link
Member Author

Due to unlink of SHARED_SEARCH in android-library

@tobiasKaminsky
Copy link
Member

Plan is to have all types shown in "shared" view:

  • incoming shares (other users shared with me)
  • outgoing shares (I shared files/folders with other users)
  • shared via link
  • remote shares

http://localhost/nc/ocs/v1.php/apps/files_sharing/api/v1/shares?format=json&shared_with_me=false&include_tags=true
http://localhost/nc/ocs/v1.php/apps/files_sharing/api/v1/remote_shares?format=json&include_tags=true
http://localhost/nc/ocs/v1.php/apps/files_sharing/api/v1/shares?format=json&shared_with_me=true&include_tags=true

I will combine this in library so that the result is a big list of shares, which then can be shown in Files app.

@Kilian-Perisset
Copy link
Member Author

@tobiasKaminsky Will the Activity contains removed shares like in web app (with a specific symbol/styling) ?

@tobiasKaminsky
Copy link
Member

@Shagequi this is still to be discussed.
As of NC18, a quick win was to show it in side bar.
But goal is to have it on top of file list, so that user can immediately react on this.
There will be a general issue on how to do this, which also targets mobile integration.
I will then link it here.

@Kilian-Perisset
Copy link
Member Author

@tobiasKaminsky Which point has to be discussed ?
The presence of "removed shares" ? Or all the shares and the way to display them to the user in Android app ?

@tobiasKaminsky
Copy link
Member

Ah, I was talking about "pending shares".

Removed shares should be shown in the regular "share" list, but with a restore button.

@Kilian-Perisset
Copy link
Member Author

Okay perfect :D
And do you have some news about the library issue ?

@tobiasKaminsky
Copy link
Member

Planned for this week, hopefully.

@tobiasKaminsky
Copy link
Member

Regarding "pending shares": nextcloud/server#2192

@tobiasKaminsky
Copy link
Member

So, plan is, according to @jancborchardt and me ;-) :
In "shared" pane:

  • "Pending": sort by incoming date, most recent first
  • "Shares": (all share, "my" shares, shares to me, shares via link, via mail, etc) sort by last modified, most recent first
  • "Deleted": sorted by deletion date, most recent first

--> I will create for each three of them an RemoteOperation in lib.

@tobiasKaminsky
Copy link
Member

As a quick win #5300, this will re-enable the old/current state, and shows only "shares".

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

Successfully merging a pull request may close this issue.

5 participants