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

[stable9.1] Group shares with same source and target #25534

Merged
merged 10 commits into from
Jul 26, 2016

Conversation

PVince81
Copy link
Contributor

Backport of #25113 to stable9.1

Please note that the version check has been adjusted for this branch.

Please review @owncloud/sharing @owncloud/qa

⚠️ don't merge before 9.1.0 is released.

@PVince81 PVince81 added this to the 9.1.1 milestone Jul 19, 2016
@mention-bot
Copy link

@PVince81, thanks for your PR! By analyzing the annotation information on this pull request, we identified @rullzer, @SergioBertolinSG and @icewind1991 to be potential reviewers

@DeepDiver1975
Copy link
Member

rebased

@PVince81
Copy link
Contributor Author

Oracle is not happy: -> ORA-01033: ORACLE initialization or shutdown in progress Check environment: ORACLE_HOME=/usr/lib/oracle/12.1/client64 ORACLE_SID= LD_LIBRARY_PATH= NLS_LANG= tnsnames.ora is not readable

Since we have tests related to DB, better make sure it works there too. (it did on master though)

@PVince81
Copy link
Contributor Author

PVince81 commented Jul 22, 2016

Let's hold this for now.

I'll try and fix these on master and then we can cherry-pick the changes into this PR.

@PVince81
Copy link
Contributor Author

cherry-picked #25567 and rebased

Vincent Petry added 2 commits July 22, 2016 16:19
In some situations, a group share is created before a user share, and
the recipient renamed the received share before the latter is created.
In this situation, the "file_target" was already modified and the second
created share must align to the already renamed share.

To achieve this, the MountProvider now groups only by "item_source"
value and sorts by share time. This makes it so that the least recent
share is selected as super-share and its "file_target" value is then
adjusted in all grouped shares.

This fixes the issue where this situation would have different
"file_target" values resulting in two shared folders appearing instead
of one.
@PVince81
Copy link
Contributor Author

Cherry-picked #25568 to fix the issue mentionned in the PR, which is the same as #25543 (comment)

This is now ready for review again, I hope we covered all cases now !

@PVince81
Copy link
Contributor Author

@rullzer please give this a quick review, should be the same code as the other PRs to master + this one: #25568

@DeepDiver1975 this PR here can be merged after #25568 is merged.

@SergioBertolinSG
Copy link
Contributor

👍 works fine.

@DeepDiver1975 DeepDiver1975 merged commit 56ee571 into stable9.1 Jul 26, 2016
@DeepDiver1975 DeepDiver1975 deleted the stable9.1-group_shares branch July 26, 2016 09:57
@lock
Copy link

lock bot commented Aug 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 5, 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.

6 participants