Skip to content

[Stable8.1] Update parent when moving share into recieved share - #21102

Merged
PVince81 merged 1 commit into
stable8.1from
stable8.1_20989
Dec 10, 2015
Merged

PVince81 merged 1 commit into
stable8.1from
stable8.1_20989

Conversation

@rullzer

@rullzer rullzer commented Dec 10, 2015

Copy link
Copy Markdown
Contributor

Backport of #20989 for #20769

Approved in #20989 (comment)

CC: @PVince81 @schiesbn

@rullzer rullzer added this to the 8.1.5-current-maintenance milestone Dec 10, 2015
@mention-bot

Copy link
Copy Markdown

By analyzing the blame information on this pull request, we identified @schiesbn, @MorrisJobke and @PVince81 to be potential reviewers

@SergioBertolinSG

Copy link
Copy Markdown
Contributor

When moving test.txt into sub with user1, the spinner keeps spinning forever.

Besides this, which stops after refreshing, works fine.

@PVince81

Copy link
Copy Markdown
Contributor

The reason for the stuck spinner is that the MOVE operation returns a 500:

{"reqId":"uKURRhvszk3g3P5CQ92\/","remoteAddr":"127.0.0.1","app":"PHP","message":"Argument 3 passed to OC\\Hooks\\BasicEmitter::listen() must be callable, array given, called in \/srv\/www\/htdocs\/owncloud\/apps\/files\/ajax\/scan.php on line 50 and defined at \/srv\/www\/htdocs\/owncloud\/lib\/private\/hooks\/emittertrait.php#36","level":3,"time":"2015-12-10T10:13:59+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/scan.php?force=false&dir=&requesttoken=oFbl4cERFYyL4Eb6gwqAlvm01%2FJPtY"}
{"reqId":"w4s5qpzPLNcpLG5+1cUw","remoteAddr":"127.0.0.1","app":"PHP","message":"Call to undefined method OC\\Server::getMountManager() at \/srv\/www\/htdocs\/owncloud\/apps\/files_sharing\/lib\/updater.php#85","level":3,"time":"2015-12-10T10:14:02+00:00","method":"POST","url":"\/owncloud\/index.php\/apps\/files\/ajax\/move.php"}

@PVince81

Copy link
Copy Markdown
Contributor

@rullzer please have a look. Maybe we didn't have this mount manager method yet in 8.1 ? CC @icewind1991

@rullzer

rullzer commented Dec 10, 2015

Copy link
Copy Markdown
Contributor Author

Mmmm did I test the wrong branch, I could have sworn this was working...

@rullzer

rullzer commented Dec 10, 2015

Copy link
Copy Markdown
Contributor Author

mmm yes it seems I did. Since the querybuilder is also not yet available there...

@rullzer

rullzer commented Dec 10, 2015

Copy link
Copy Markdown
Contributor Author

Ok this looks better

Fixes #20769

When I receive a share and move a share of myself into that share (which
is allowed currently) I effectively hand over ownership of the files I
move. So we need to update the share I move to have as a parent the
share I move it into. Else our mounting system gets confused.
@PVince81

Copy link
Copy Markdown
Contributor

Tested, works 👍

@SergioBertolinSG

Copy link
Copy Markdown
Contributor

👍 Working fine now.

PVince81 pushed a commit that referenced this pull request Dec 10, 2015
[Stable8.1] Update parent when moving share into recieved share
@PVince81
PVince81 merged commit 29ae188 into stable8.1 Dec 10, 2015
@PVince81
PVince81 deleted the stable8.1_20989 branch December 10, 2015 12:44
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants