Skip to content

Conversation

@ChristophWurst
Copy link
Member

If the user has no space and there are no versions, there won't be an
all index in the versions entry. Hence this triggers a warning and
becomes null, afterwards count, foreach and friends will happily
throw even more warnings and errors because they don't want to play with
null. Thus adding a fallback to an empty array.

@ChristophWurst
Copy link
Member Author

/backport to stable20

@ChristophWurst
Copy link
Member Author

/backport to stable19

@kesselb
Copy link
Contributor

kesselb commented Oct 8, 2020

Make sense. I also think there are some reports around for this.

@MorrisJobke
Copy link
Member

@ChristophWurst I added a commit that added the changes the @nickvergessen proposed, because I think that is the better approach to deal with this.

@nickvergessen
Copy link
Member

DB tests are not happy. Seems to be the "random fail" but it failed on all DBs here, so not sure its unrelated?

@ChristophWurst
Copy link
Member Author

DB tests are not happy. Seems to be the "random fail" but it failed on all DBs here, so not sure its unrelated?

Unfortunately also happening with other PRs right now

ChristophWurst and others added 2 commits October 12, 2020 22:17
If the user has no space and there are no versions, there won't be an
`all` index in the versions entry. Hence this triggers a warning and
becomes `null`, afterwards `count`, `foreach` and friends will happily
throw even more warnings and errors because they don't want to play with
`null`. Thus adding a fallback to an empty array.

Signed-off-by: Christoph Wurst <[email protected]>
@MorrisJobke MorrisJobke force-pushed the fix/versions-no-space-no-versions-undefined-index branch from 28cd924 to 6ce05bc Compare October 12, 2020 20:17
@MorrisJobke
Copy link
Member

DB tests are not happy. Seems to be the "random fail" but it failed on all DBs here, so not sure its unrelated?

Fixed with #23391

@MorrisJobke MorrisJobke added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Oct 12, 2020
@faily-bot
Copy link

faily-bot bot commented Oct 12, 2020

🤖 beep boop beep 🤖

Here are the logs for the failed build:

Status of 34039: failure

sqlite

Show full log
There were 2 warnings:

1) Test\Files\ViewTest::testRenameFailDeleteTargetKeepSource
Trying to configure method "writeStream" which cannot be configured because it does not exist, has not been specified, is final, or is static

2) Test\Files\ViewTest::testCopyFailDeleteTargetKeepSource
Trying to configure method "writeStream" which cannot be configured because it does not exist, has not been specified, is final, or is static

--

There was 1 failure:

1) OCA\Files_Versions\Tests\VersioningTest::testRestoreMovedShare
File content has not changed
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'version 2'
+'version 1'

/drone/src/apps/files_versions/tests/VersioningTest.php:729

mysql8.0-php7.4

@MorrisJobke MorrisJobke merged commit f8ed08c into master Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug feature: versions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants