fix(files_versions): wait for version to be created before setting metadata#52369
fix(files_versions): wait for version to be created before setting metadata#52369
Conversation
…tadata Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
|
/backport to stable30 |
|
/backport to stable31 |
|
/backport to stable29 |
|
The backport to # Switch to the target branch and update it
git checkout stable29
git pull origin stable29
# Create the new backport branch
git checkout -b backport/52369/stable29
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 2020760f
# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/52369/stable29Error: Failed to check for changes with origin/stable29: No changes found in backport branch Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports. |
|
The backport to # Switch to the target branch and update it
git checkout stable31
git pull origin stable31
# Create the new backport branch
git checkout -b backport/52369/stable31
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 2020760f
# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/52369/stable31Error: Failed to check for changes with origin/stable31: No changes found in backport branch Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports. |
|
The backport to # Switch to the target branch and update it
git checkout stable30
git pull origin stable30
# Create the new backport branch
git checkout -b backport/52369/stable30
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 2020760f
# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/52369/stable30Error: Failed to check for changes with origin/stable30: No changes found in backport branch Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports. |
"SELECT * FROM *PREFIX*files_versions WHERE (file_id = :dcValue1) AND (timestamp = :dcValue2)";#41174Summary
If a new file is created then:
those two are done in separate event listeners with the same priority.
In some situations they are sorted in such a way that 2 is executed before 1 and causing an issue due to version not found for update.
As 2 always needs to be done after 1 we need to reduce the priority of the second event listener.
Checklist