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

Cookies: Use different DB for different accounts #5490

Merged
merged 1 commit into from
Jan 26, 2017
Merged

Conversation

guruz
Copy link
Contributor

@guruz guruz commented Jan 25, 2017

This is a follow up to #5469

@guruz guruz added this to the 2.3.0 milestone Jan 25, 2017
@guruz guruz requested review from ckamm and ogoffart January 25, 2017 18:38
@mention-bot
Copy link

@guruz, thanks for your PR! By analyzing the history of the files in this pull request, we identified @danimo, @ckamm and @ogoffart to be potential reviewers.

@@ -172,6 +172,7 @@ class OWNCLOUDSYNC_EXPORT Account : public QObject {

void clearCookieJar();
void lendCookieJarTo(QNetworkAccessManager *guest);
QString cookieJarPath();
Copy link
Contributor

Choose a reason for hiding this comment

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

Please make it private.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's accessed from 2 different files/classes which are not the account, can't do it without friending both.

@SamuAlfageme SamuAlfageme self-assigned this Jan 26, 2017
@SamuAlfageme
Copy link
Contributor

Minor detail: there's no migration strategy for cookies.db to be split into different cookiesN.db: the old cookies file is not removed nor its contents distributed.

@guruz guruz merged commit e859d22 into 2.3 Jan 26, 2017
@guruz guruz deleted the cookiesdb_multiaccount2 branch January 26, 2017 09:54
@guruz
Copy link
Contributor Author

guruz commented Jan 26, 2017

Minor detail: there's no migration strategy for cookies.db to be split into different cookiesN.db: the old cookies file is not removed nor its contents distributed.

Hm, I just assumed it's fine because the behaviour should be similar to as if the cookies had been forgotten/expired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants