Skip to content

Duplicate DB entries in filecache table when renaming folder in WebUI #2 - #3388

Merged
MTGap merged 2 commits into
owncloud:masterfrom
roha4000:master
May 25, 2013
Merged

MTGap merged 2 commits into
owncloud:masterfrom
roha4000:master

Conversation

@roha4000

Copy link
Copy Markdown

I previously sent a Pull Request concerning this Bug but screwed up the commit because I just copied the changes I made on the 5.0.5 TAG to the trunk. Well, that did not work out.

Now this one passes the unit tests. I also added some additional tests to ensure that another users cache entries are not Updated. Hope this one will do it :-)

To reproduce the Bug you need two users having the same folder structure. The folders must contain at least one file. Now rename one folder and all filecache entries with the same path will be updated with the new folder name ... regardless of the storage id.

@MTGap

MTGap commented May 16, 2013

Copy link
Copy Markdown
Contributor

Doesn't look like Jenkins failed specifically because of your commits. @DeepDiver1975 Can you investigate?

Looks good now @roha4000 and thanks for the tests. Could you take a look at http://owncloud.org/about/contributor-agreement/

@DeepDiver1975

Copy link
Copy Markdown
Contributor

Doesn't look like Jenkins failed specifically because of your commits

aaargh - yes phpunit is seg faulting
not related to this pr

@roha4000

Copy link
Copy Markdown
Author

I've just send the signed agreement to Frank.

@karlitschek

Copy link
Copy Markdown
Contributor

got it. Ready for merge if reviewed.

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@owncloud-bot retest this please

@roha4000

Copy link
Copy Markdown
Author

Seems that phpunit is still segfaulting.

@DeepDiver1975

Copy link
Copy Markdown
Contributor

Seems that phpunit is still segfaulting.

yeah - related to some issue within the clover report generation

@roha4000

Copy link
Copy Markdown
Author

Well, I'm not sure how to proceed. Can I just merge the pr or shall I wait for the test to be restartet and / or a review?

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@roha4000 our review process requires two people giving a +1 before you can merge any pr.

Maybe I'll have a look tonight.

@icewind1991 can you have a look as well

@butonic

butonic commented May 21, 2013

Copy link
Copy Markdown
Contributor

@roha4000 rebase please

@MTGap

MTGap commented May 22, 2013

Copy link
Copy Markdown
Contributor

Something went wrong with that rebase. What did you do?

Roland Hager added 2 commits May 22, 2013 08:18
… move(). Add storage id to the where clause to avoid updating entries of other users.
…ntries

Added a second storage and cache Object to simulate a second user.
@roha4000

Copy link
Copy Markdown
Author

Yeah, something went wrong :-). I've tried to get rid of the Merge Commit after rebasing to the upstream ... anyway it should be OK now.

@roha4000

Copy link
Copy Markdown
Author

I rebased as requested. Could someone invest some time to review this two lines of changed code and the adapted unit test please?

@icewind1991

Copy link
Copy Markdown
Contributor

👍 Looks good

@MTGap

MTGap commented May 25, 2013

Copy link
Copy Markdown
Contributor

Now we're good 👍

MTGap pushed a commit that referenced this pull request May 25, 2013
Duplicate DB entries in filecache table when renaming folder in WebUI #2
@MTGap
MTGap merged commit 0fdf3a7 into owncloud:master May 25, 2013
@MTGap

MTGap commented May 25, 2013

Copy link
Copy Markdown
Contributor

Backport: 07fb230

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants