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

[Bug]: Uncaught exception when trying to import settings and backup file does not exist #1547

Open
andreaippo opened this issue Jan 17, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@andreaippo
Copy link

andreaippo commented Jan 17, 2025

Can you reproduce this bug in the PWA?

Not applicable

Describe the bug

Attempt to restore settings will fail with exception trace in popup window if no settings backup exists

What package are you using?

flatpak

Version

1.12.5

Reproduction steps

1.Open Teams
2.Right-click the tray icon, reach Settings and then click Restore, without having made a Settings backup first
3.A rather technical error popup is shown (see further down for screenshot)

Expected Behavior

1.No error, or a warning message informing the user that no settings could be restored because no settings backup file exists (maybe mentioning the full expected path on the filesystem would also be useful)

Debug

Additional context

Screenshot of the error popup:

Image

Content of that directory at the time this happened:

❯ ll   
total 100
drwx------. 1 andrea andrea   704 Jan 17 08:14  .
drwxr-xr-x. 1 andrea andrea    98 Jan  2 16:26  ..
drwx------. 1 andrea andrea    72 Jan 17 08:14  blob_storage
drwx------. 1 andrea andrea    20 Jan  2 14:59  Cache
drwx------. 1 andrea andrea    12 Jan  2 14:59 'Code Cache'
-rw-rw-rw-. 1 andrea andrea    69 Jan  2 15:46  config.json
-rw-------. 1 andrea andrea 20480 Jan  2 14:59  Cookies
-rw-------. 1 andrea andrea     0 Jan  2 14:59  Cookies-journal
drwx------. 1 andrea andrea    18 Jan  2 14:59  Crashpad
drwx------. 1 andrea andrea    30 Jan  2 14:59  Dictionaries
drwx------. 1 andrea andrea    14 Jan  2 14:59 'Local Storage'
-rw-------. 1 andrea andrea   629 Jan 14 12:19 'Network Persistent State'
-rw-------. 1 andrea andrea   573 Jan  2 15:26  .org.chromium.Chromium.JTPExG
-rw-------. 1 andrea andrea   573 Jan  2 15:27  .org.chromium.Chromium.MVkLmq
drwx------. 1 andrea andrea    26 Jan  2 14:59  Partitions
-rw-------. 1 andrea andrea    57 Jan  2 14:59  Preferences
drwx------. 1 andrea andrea    34 Jan  2 14:59 'Shared Dictionary'
-rw-------. 1 andrea andrea  4096 Jan  2 15:01  SharedStorage
-rw-------. 1 andrea andrea     0 Jan 15 11:22  SharedStorage-wal
lrwxrwxrwx. 1 andrea andrea    19 Jan 17 08:14  SingletonCookie -> 1214432390814470987
lrwxrwxrwx. 1 andrea andrea    11 Jan 17 08:14  SingletonLock -> andromeda-2
lrwxrwxrwx. 1 andrea andrea    93 Jan 17 08:14  SingletonSocket -> /run/user/1000/app/com.github.IsmaelMartinez.teams_for_linux/scoped_dir6vab7U/SingletonSocket
-rw-------. 1 andrea andrea   189 Jan 17 08:14  TransportSecurity
-rw-------. 1 andrea andrea 36864 Jan  2 15:12 'Trust Tokens'
-rw-------. 1 andrea andrea     0 Jan  2 15:12 'Trust Tokens-journal'
-rw-r--r--. 1 andrea andrea   137 Jan 17 08:14  window-state.json

grep:

❯ ll /home/andrea/.var/app/com.github.IsmaelMartinez.teams_for_linux/config/teams-for-linux | grep teams_
lrwxrwxrwx. 1 andrea andrea    93 Jan 17 08:14 SingletonSocket -> /run/user/1000/app/com.github.IsmaelMartinez.teams_for_linux/scoped_dir6vab7U/SingletonSocket
@andreaippo andreaippo added the bug Something isn't working label Jan 17, 2025
@IsmaelMartinez
Copy link
Owner

Thanks for reporting. I will see when I have time to have a look and/or leave it open to see if someone can have a look and provide a PR.

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Feb 17, 2025
@IsmaelMartinez
Copy link
Owner

not stale, I just haven't had time.

@github-actions github-actions bot removed the Stale label Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants