[GH-ISSUE #970] Update causes account to be wiped - unable to import json file #629

Closed
opened 2026-02-25 22:37:40 +03:00 by kerem · 18 comments
Owner

Originally created by @dsiminiuk on GitHub (Sep 27, 2021).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/970

Describe the bug

Updating from 4.8.0 to 4.8.1 via developer console drag and drop of the CRX file wipes out the config.

To Reproduce

Open browser
Export account from floccus 4.8.0 to .json
CTRL+SHIFT+E to open plugins page
Enable Developer mode
Drag the new .crx package into the window
The account is removed.
Importing the .json file does not restore the settings.
Importing the .json file multiple times lists additional instances of the same account but none work.

Expected behavior

Existing account should remain
Importing previous config from .json should work if needed

Screenshots

image

Originally created by @dsiminiuk on GitHub (Sep 27, 2021). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/970 ### Describe the bug Updating from 4.8.0 to 4.8.1 via developer console drag and drop of the CRX file wipes out the config. ### To Reproduce Open browser Export account from floccus 4.8.0 to .json CTRL+SHIFT+E to open plugins page Enable Developer mode Drag the new .crx package into the window The account is removed. Importing the .json file does not restore the settings. Importing the .json file multiple times lists additional instances of the same account but none work. ### Expected behavior Existing account should remain Importing previous config from .json should work if needed ### Screenshots ![image](https://user-images.githubusercontent.com/5713547/134946474-6bea1cf7-16af-4bed-b0d5-b201641277dc.png)
kerem 2026-02-25 22:37:40 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@dsiminiuk commented on GitHub (Sep 27, 2021):

I had to remove the extension completely to get rid of the extra accounts, installed 4.8.0 and all is good again. Imported the .json as well without a hitch.

<!-- gh-comment-id:928045851 --> @dsiminiuk commented on GitHub (Sep 27, 2021): I had to remove the extension completely to get rid of the extra accounts, installed 4.8.0 and all is good again. Imported the .json as well without a hitch.
Author
Owner

@marcelklehr commented on GitHub (Sep 27, 2021):

Did you set a password for floccus?

<!-- gh-comment-id:928066756 --> @marcelklehr commented on GitHub (Sep 27, 2021): Did you set a password for floccus?
Author
Owner

@dsiminiuk commented on GitHub (Sep 27, 2021):

@marcelklehr I don't understand.

The username and password for user auth on the server is in the .json.
After importing the .json the details of the account shouldn't the account appear in the plugin when you left click on the icon?
The only thing that was displayed was "New Account" (none of the three listed above).
Am I missing something?

<!-- gh-comment-id:928073380 --> @dsiminiuk commented on GitHub (Sep 27, 2021): @marcelklehr I don't understand. The username and password for user auth on the server is in the .json. After importing the .json the details of the account shouldn't the account appear in the plugin when you left click on the icon? The only thing that was displayed was "New Account" (none of the three listed above). Am I missing something?
Author
Owner

@marcelklehr commented on GitHub (Sep 27, 2021):

I cannot reproduce this with Chromium 93.0.4577.82

  1. I installed v4.7.0 (also tried with v4.8.0)
  2. I created an account
  3. I exported the account
  4. I updated to v4.8.1
  5. Everything is still there

but none work

What does this mean? They don't sync? What are the (redacted) contents of the exported json file?

<!-- gh-comment-id:928073549 --> @marcelklehr commented on GitHub (Sep 27, 2021): I cannot reproduce this with Chromium 93.0.4577.82 1. I installed v4.7.0 (also tried with v4.8.0) 2. I created an account 3. I exported the account 4. I updated to v4.8.1 5. Everything is still there > but none work What does this mean? They don't sync? What are the (redacted) contents of the exported json file?
Author
Owner

@marcelklehr commented on GitHub (Sep 27, 2021):

I don't understand.

It's possible to secure your credentials by setting a password for the whole extension, but I'm guessing from your reaction that you didn't do that.

<!-- gh-comment-id:928074522 --> @marcelklehr commented on GitHub (Sep 27, 2021): > I don't understand. It's possible to secure your credentials by setting a password for the whole extension, but I'm guessing from your reaction that you didn't do that.
Author
Owner

@dsiminiuk commented on GitHub (Sep 27, 2021):

[
  {
    "localRoot": "1",
    "strategy": "default",
    "syncInterval": 15,
    "nestedSync": false,
    "failsafe": true,
    "type": "nextcloud-bookmarks",
    "url": "https://cloud.domain.com",
    "username": "myuser",
    "password": "myhashedpassword",
    "serverRoot": "/floccus",
    "includeCredentials": false,
    "allowRedirects": false,
    "enabled": true,
    "syncing": false,
    "error": null,
    "lastSync": 1632758823071
  }
]
<!-- gh-comment-id:928074557 --> @dsiminiuk commented on GitHub (Sep 27, 2021): ``` [ { "localRoot": "1", "strategy": "default", "syncInterval": 15, "nestedSync": false, "failsafe": true, "type": "nextcloud-bookmarks", "url": "https://cloud.domain.com", "username": "myuser", "password": "myhashedpassword", "serverRoot": "/floccus", "includeCredentials": false, "allowRedirects": false, "enabled": true, "syncing": false, "error": null, "lastSync": 1632758823071 } ] ```
Author
Owner

@dsiminiuk commented on GitHub (Sep 27, 2021):

I don't understand.

It's possible to secure your credentials by setting a password for the whole extension, but I'm guessing from your reaction that you didn't do that.

Oh, I see, the "Set a pass phrase for floccus" option. No, not using that.

<!-- gh-comment-id:928075559 --> @dsiminiuk commented on GitHub (Sep 27, 2021): > > I don't understand. > > It's possible to secure your credentials by setting a password for the whole extension, but I'm guessing from your reaction that you didn't do that. Oh, I see, the "Set a pass phrase for floccus" option. No, not using that.
Author
Owner

@marcelklehr commented on GitHub (Sep 27, 2021):

Importing the .json file multiple times lists additional instances of the same account but none work.

Can you clarify what you mean by not working here?

<!-- gh-comment-id:928076949 --> @marcelklehr commented on GitHub (Sep 27, 2021): > Importing the .json file multiple times lists additional instances of the same account but none work. Can you clarify what you mean by not working here?
Author
Owner

@dsiminiuk commented on GitHub (Sep 27, 2021):

In the image above you see 3 accounts that can be exported.
They are all the same account having imported the same .json three times, so it appears there is an account provisioned.
However, clicking on the plugin's icon exposes "New Account" like none are not there.

<!-- gh-comment-id:928079028 --> @dsiminiuk commented on GitHub (Sep 27, 2021): In the image above you see 3 accounts that can be exported. They are all the same account having imported the same .json three times, so it appears there is an account provisioned. However, clicking on the plugin's icon exposes "New Account" like none are not there.
Author
Owner

@marcelklehr commented on GitHub (Sep 27, 2021):

Mh, let's see if there are errors in the log:

Chrome

  • Go to chrome://extensions
  • enable Developer mode
  • click on dist/html/background.html button in floccus' entry next to "Inspect views: "
  • copy the logs
  • open the floccus settings
  • Right click in the popup and select "Inspect"
  • In the inspector switch to the Console tab and copy the logs
<!-- gh-comment-id:928082035 --> @marcelklehr commented on GitHub (Sep 27, 2021): Mh, let's see if there are errors in the log: #### Chrome * Go to `chrome://extensions` * enable `Developer mode` * click on `dist/html/background.html` button in floccus' entry next to "Inspect views: " * copy the logs * open the floccus settings * Right click in the popup and select "Inspect" * In the inspector switch to the Console tab and copy the logs
Author
Owner

@dsiminiuk commented on GitHub (Sep 27, 2021):

@marcelklehr Hahaha, you may as well ask me to give you a suitcase full of cash LOL

I got to the DevTools window but I have no idea where the logs are in that mess.

Let me try an update on a different machine (5 Windows, 1 Linux Mint using this plugin) and see if I can reproduce it. If not then I'll assume I had a problem in this particular browser.

I'll do it today.

<!-- gh-comment-id:928090597 --> @dsiminiuk commented on GitHub (Sep 27, 2021): @marcelklehr Hahaha, you may as well ask me to give you a suitcase full of cash LOL I got to the DevTools window but I have no idea where the logs are in that mess. Let me try an update on a different machine (5 Windows, 1 Linux Mint using this plugin) and see if I can reproduce it. If not then I'll assume I had a problem in this particular browser. I'll do it today.
Author
Owner

@dsiminiuk commented on GitHub (Sep 27, 2021):

@marcelklehr

I was able to reproduce this on the same version of Vivaldi (4.2.2406.48) on a different machine.

I will PM you a link to the video capture.

<!-- gh-comment-id:928105136 --> @dsiminiuk commented on GitHub (Sep 27, 2021): @marcelklehr I was able to reproduce this on the same version of Vivaldi (4.2.2406.48) on a different machine. I will PM you a link to the video capture.
Author
Owner

@dsiminiuk commented on GitHub (Sep 27, 2021):

The screen capture was so small I just attached it to an email at the address on your profile.

<!-- gh-comment-id:928106414 --> @dsiminiuk commented on GitHub (Sep 27, 2021): The screen capture was so small I just attached it to an email at the address on your profile.
Author
Owner

@dsiminiuk commented on GitHub (Sep 27, 2021):

I removed the 4.8.1 plugin (not allowed to downgrade) and installed 4.8.0 and imported the .json and all that works perfectly and as expected.

<!-- gh-comment-id:928107582 --> @dsiminiuk commented on GitHub (Sep 27, 2021): I removed the 4.8.1 plugin (not allowed to downgrade) and installed 4.8.0 and imported the .json and all that works perfectly and as expected.
Author
Owner

@marcelklehr commented on GitHub (Sep 27, 2021):

Can't reproduce with Vivaldi 4.1.2369.21

The screen capture indicates a bug in the overview panel, rather than the accounts being gone. Let me try to guide you through the process to get to the logs.

Peek 2021-09-27 20-01

<!-- gh-comment-id:928132454 --> @marcelklehr commented on GitHub (Sep 27, 2021): Can't reproduce with Vivaldi 4.1.2369.21 The screen capture indicates a bug in the overview panel, rather than the accounts being gone. Let me try to guide you through the process to get to the logs. ![Peek 2021-09-27 20-01](https://user-images.githubusercontent.com/986878/134961191-64913024-ab49-4daa-bf43-d0c92c4c3636.gif)
Author
Owner

@marcelklehr commented on GitHub (Sep 28, 2021):

Please try v4.8.2

<!-- gh-comment-id:929067953 --> @marcelklehr commented on GitHub (Sep 28, 2021): Please try v4.8.2
Author
Owner

@dsiminiuk commented on GitHub (Sep 28, 2021):

@marcelklehr Thank you for the tutorial, I'll keep that email for later.

Also, thank you for v4.8.2, Upgrading was perfect. No loss of config.

<!-- gh-comment-id:929260868 --> @dsiminiuk commented on GitHub (Sep 28, 2021): @marcelklehr Thank you for the tutorial, I'll keep that email for later. Also, thank you for v4.8.2, Upgrading was perfect. No loss of config.
Author
Owner

@github-actions[bot] commented on GitHub (Mar 20, 2023):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:1476411191 --> @github-actions[bot] commented on GitHub (Mar 20, 2023): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/floccus#629
No description provided.