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

Fix backup codes column length for Argon2 values #10771

Merged
merged 4 commits into from
Aug 21, 2018

Conversation

ChristophWurst
Copy link
Member

@ChristophWurst ChristophWurst commented Aug 21, 2018

The new (php7.2) hasher's values are a bit longer than the ones of the old algorithm, hence we have to increase the column length.

  • Add a failing test that reproduces the issue
  • Fix the issue

Fixes #10766.

@ChristophWurst ChristophWurst added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Aug 21, 2018
@ChristophWurst
Copy link
Member Author

@rullzer I expected my first commit to trigger some CI errors, but it seems all okay. How's that possible? How can I find out if my tests are even executed?

@rullzer
Copy link
Member

rullzer commented Aug 21, 2018

@ChristophWurst good question let me have a look

@rullzer
Copy link
Member

rullzer commented Aug 21, 2018

Tests are not executed as per:

if (strpos($path, 'Integration')) {

so that is why they don't fail :P

Apparently the Nextcloud server ignores tests that have `Integration` in their
fully-qualified class name, hence the backup codes integration tests were removed.
This moves them up one directory (out of `Integration`) to fix that.
Real unit tests remain in the `Unit` directory.

Signed-off-by: Christoph Wurst <[email protected]>
Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a version bump to trigger the migration 👍

@MorrisJobke MorrisJobke merged commit eba4479 into master Aug 21, 2018
@MorrisJobke MorrisJobke deleted the fix/10766/backup-codes-column-length-argon branch August 21, 2018 09:08
@rullzer rullzer mentioned this pull request Aug 22, 2018
3 tasks
@MorrisJobke MorrisJobke mentioned this pull request Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants