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

[Sharing] Not possible to share after having shared a folder #11433

Closed
rperezb opened this issue Oct 6, 2014 · 12 comments
Closed

[Sharing] Not possible to share after having shared a folder #11433

rperezb opened this issue Oct 6, 2014 · 12 comments

Comments

@rperezb
Copy link

rperezb commented Oct 6, 2014

Steps to reproduce

  1. Select to share a folder with a user
  2. On the same server, with another user select to share a file

Expected behaviour

I want to be able to share any data

Actual behaviour

An alert message is shown
screen shot 2014-10-06 at 15 16 45

Server configuration

rhel, apache, and oracle

ownCloud version: (see ownCloud admin page)
"installed":"true","version":"7.0.2.3","versionstring":"7 Beta2","edition":"enterprise"}

Are you using external storage, if yes which one: local/smb/sftp/... NO

Are you using encryption: yes/no NO

Client configuration

Browser: Chrome and FF

Operating system: MAC

ownCloud log (data/owncloud.log)

ror OCP\Share   Sharing test.txt failed, because resharing is not allowed   2014-10-06T13:13:25+00:00
Error   PHP Undefined index: permissions at /var/www/html/owncloud/lib/private/share/share.php#1813 2014-10-06T13:13:25+00:00
Error   PHP Undefined index: uid_owner at /var/www/html/owncloud/lib/private/share/share.php#1804   2014-10-06T13:13:25+00:00

Browser log

GET https://irc.owncloud.com:8098/owncloud/core/js/jquery-1.10.0.min.map 404 (Not Found) 
@rperezb
Copy link
Author

rperezb commented Oct 6, 2014

CC @jnfrmarks

@karlitschek
Copy link
Contributor

@schiesbn

@PVince81
Copy link
Contributor

PVince81 commented Oct 7, 2014

@rperezb please confirm that you didn't disable resharing on the admin page.

@PVince81
Copy link
Contributor

PVince81 commented Oct 7, 2014

Also the screenshot doesn't match the step. I see that "test.txt" is already shared in the screenshot, so step 2 should be "On the same server, login with the target user and reshare that same file"

@rperezb
Copy link
Author

rperezb commented Oct 7, 2014

Steps to reproduce

  1. login as admin, create a folder, "A" and share it with other user, Raquel
  2. Log out
  3. Login as Raquel
  4. Select to share a folder, "as" with raquel2, error resharing is not allowed.

screen shot 2014-10-07 at 11 30 52

@PVince81
Copy link
Contributor

PVince81 commented Oct 7, 2014

Confirmed on stable7 (3039837)

Steps:

  1. Create three users "root", "user1" and "user2"
  2. Login as "root"
  3. Create a folder "A"
  4. Share "A" with "user1"
  5. Login as "user1"
  6. Create a new folder "b"
  7. Share "b" with "user2"

Note that resharing "A" with "user2" DOES work but sharing the non-shared folder causes that weird error to appear.

@PVince81
Copy link
Contributor

PVince81 commented Oct 7, 2014

If you delete "A" as "user2", then step 7 works again.
It seems the existing shared folder is influencing the share dialog in a weird way.

@PVince81 PVince81 self-assigned this Oct 7, 2014
@PVince81
Copy link
Contributor

PVince81 commented Oct 7, 2014

@schiesbn seems to be related to the recent fix with shares grouping.
The issue happens in checkReshares

Can you have a look ?

@PVince81
Copy link
Contributor

PVince81 commented Oct 7, 2014

@karlitschek @MTRichards @craigpg regression, setting as showstopper

@schiessle
Copy link
Contributor

I will have a look at it. Thanks for the detailed steps to reproduce it!

@schiessle
Copy link
Contributor

Will be fixed with this PR: #11380

@schiessle
Copy link
Contributor

fix merged and backported, will be released with OC7.0.3

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

4 participants