Skip to content

Fix backup codes column length for Argon2 values - #10771

Merged
MorrisJobke merged 4 commits into
masterfrom
fix/10766/backup-codes-column-length-argon
Aug 21, 2018
Merged

Fix backup codes column length for Argon2 values#10771
MorrisJobke merged 4 commits into
masterfrom
fix/10766/backup-codes-column-length-argon

Conversation

@ChristophWurst

@ChristophWurstChristophWurst commented Aug 21, 2018

Copy link
Copy Markdown
Member

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.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurstChristophWurst added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Aug 21, 2018
@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

@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
Copy Markdown
Member

@ChristophWurst good question let me have a look

@rullzer

Copy link
Copy Markdown
Member

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 <christoph@winzerhof-wurst.at>

@rullzerrullzer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🙈

Signed-off-by: Morris Jobke <hey@morrisjobke.de>

@MorrisJobkeMorrisJobke left a comment

Copy link
Copy Markdown
Member

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 masterAug 21, 2018
@MorrisJobke
MorrisJobke deleted the fix/10766/backup-codes-column-length-argon branch August 21, 2018 09:08
@rullzerrullzer mentioned this pull request Aug 22, 2018
3 tasks
@MorrisJobkeMorrisJobke mentioned this pull request Aug 24, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@ChristophWurst@rullzer@MorrisJobke