Skip to content

Only save login credentials in database once there is an external storage that needs it - #21037

Merged
blizzz merged 4 commits into
masterfrom
login-credentails-save
Aug 7, 2020
Merged

Only save login credentials in database once there is an external storage that needs it#21037
blizzz merged 4 commits into
masterfrom
login-credentails-save

Conversation

@icewind1991

@icewind1991 icewind1991 commented May 18, 2020

Copy link
Copy Markdown
Member

Also fixes #6343

@icewind1991 icewind1991 added the 3. to review Waiting for reviews label May 18, 2020
@icewind1991 icewind1991 added this to the Nextcloud 20 milestone May 18, 2020
@kesselb

kesselb commented May 19, 2020

Copy link
Copy Markdown
Contributor

This patch also helps with #6343 as the data is not written anymore on login.

How do you detect changed credentials without listening to postLogin?

@icewind1991 icewind1991 added 2. developing Work in progress and removed 3. to review Waiting for reviews labels May 20, 2020
@icewind1991

Copy link
Copy Markdown
Member Author

How do you detect changed credentials without listening to postLogin?

Forgot about that 🙈 , will need to add something for that

@icewind1991

Copy link
Copy Markdown
Member Author

How do you detect changed credentials without listening to postLogin?

Forgot about that see_no_evil , will need to add something for that

done

@icewind1991 icewind1991 added 3. to review Waiting for reviews and removed 2. developing Work in progress labels May 20, 2020
@icewind1991
icewind1991 force-pushed the login-credentails-save branch from d2b31d6 to c89db6c Compare May 20, 2020 14:01
@kesselb

kesselb commented May 20, 2020

Copy link
Copy Markdown
Contributor

done

Nice 👍 Much cleaner than before and will still help with #6343 as the password is only updated on change 🚀

@icewind1991
icewind1991 force-pushed the login-credentails-save branch from c89db6c to 39c0e4b Compare May 20, 2020 14:32
Comment thread apps/files_external/lib/BackgroundJob/CredentialsCleanup.php Outdated
@icewind1991
icewind1991 force-pushed the login-credentails-save branch from 39c0e4b to 48909ff Compare May 26, 2020 14:47
@kesselb

kesselb commented Jul 25, 2020

Copy link
Copy Markdown
Contributor

@rullzer @MorrisJobke @juliushaertl 🏓

Comment thread apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php Outdated
Comment thread apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php Outdated
…rage that needs it

Signed-off-by: Robin Appelman <robin@icewind.nl>
…ured using them

Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
@MorrisJobke

Copy link
Copy Markdown
Member

Let me fix this :)

@MorrisJobke
MorrisJobke force-pushed the login-credentails-save branch from 48909ff to 91cfd49 Compare July 30, 2020 09:53
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@MorrisJobke
MorrisJobke force-pushed the login-credentails-save branch from 91cfd49 to 0b0cc48 Compare July 30, 2020 10:05

@MorrisJobke MorrisJobke 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.

Tested and works 👍

@faily-bot

faily-bot Bot commented Jul 30, 2020

Copy link
Copy Markdown

🤖 beep boop beep 🤖

Here are the logs for the failed build:

Status of 31206: failure

mysql8.0-php7.2

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) Test\Files\ObjectStore\ObjectStoreStorageTest::testCopyDirectory
Failed asserting that false is true.

/drone/src/tests/lib/Files/Storage/Storage.php:550

integration-external-storage

Could not fetch logs

@blizzz
blizzz merged commit a2c262b into master Aug 7, 2020
@blizzz
blizzz deleted the login-credentails-save branch August 7, 2020 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PostgreSQL : duplicate key value violates unique constraint error message

4 participants