android icon indicating copy to clipboard operation
android copied to clipboard

As an user I want to be able to enable/disable "can share" option for FEDERATED shares if OC server is >=9.1

Open jabarros opened this issue 10 years ago • 11 comments

AC:

  • Only if OC server is >= 9.1
  • The checkbox "can share" will be visible and enabled for federated shares
  • By default the checkbox will be checked.
  • Whenever the user updates the value of the checkbox, a request to update the permission "can share" on the federated share will be triggered.

-Related https://github.com/owncloud/core/issues/22122#issuecomment-228028647


BUGS & IMPROVEMENTS

  • [X] "Can Share" disabled by default https://github.com/owncloud/android/issues/1725#issuecomment-236129243 [FIXED]
  • [X] "Can Share" disables "Can Edit" https://github.com/owncloud/android/issues/1725#issuecomment-236151088 [FIXED]

jabarros avatar Jun 29 '16 15:06 jabarros

@rperezb , this should be added to milestone 2.1.0 for synchrony with server release.

davivel avatar Jul 05 '16 14:07 davivel

Working in this right now.

davivel avatar Jul 26 '16 07:07 davivel

Done in https://github.com/owncloud/android/pull/1752 and https://github.com/owncloud/android-library/pull/127

davivel avatar Jul 26 '16 10:07 davivel

cc @jesmrec

davivel avatar Jul 26 '16 10:07 davivel

Bug

Steps

  1. Share a folder from a 9.1 server with a user in another server
  2. Open the privileges view

Actual behaviour

"Can Share" option is disabled.

Expected behaviour

"Can Share" is enabled by default. This is the behaviour in server side and in iOS app.

Server: {"installed":true,"maintenance":false,"version":"9.1.0.15","versionstring":"9.1.0","edition":"Enterprise"}

Tested with Nexus5 v5.0.1, Nexus9 v6

cc @davivel

jesmrec avatar Jul 29 '16 08:07 jesmrec

Checking bug.

davivel avatar Jul 29 '16 09:07 davivel

Fixed now in #1752

davivel avatar Jul 29 '16 10:07 davivel

Bug

Steps

  1. Share a folder from a 9.1 server with a user in another server
  2. Open the privileges view
  3. Disable "Can Share"

Actual behaviour

Both "Can Share" and "Can Edit" options are disabled.

Expected behaviour

Only "Can Share" is disabled.

Server: {"installed":true,"maintenance":false,"version":"9.1.0.15","versionstring":"9.1.0","edition":"Enterprise"}

Tested with Nexus5 v5.0.1, Nexus9 v6

cc @davivel

jesmrec avatar Jul 29 '16 10:07 jesmrec

@jesmrec , fixed now in #1752

davivel avatar Jul 29 '16 12:07 davivel

@davivel Approved 👍

Take in account the regression bug detected during the validation, added to the new version issue:

https://github.com/owncloud/android/issues/1750#issuecomment-236154125

jesmrec avatar Aug 01 '16 08:08 jesmrec

OK, I'll deal with it in the release branch.

Thanks!

davivel avatar Aug 01 '16 10:08 davivel