Skip to content

WebTop: Favorite folders not migrated #7718

@lucagasparini

Description

@lucagasparini

When migrating from NS7, only favorite folders that point to folders in the same account are migrated.
All favorites that pointed to shared folders disappear from the interface.

Steps to reproduce

  • user2 shares the entire account with user1
  • user1 configures two favorite folders: one linked to their inbox and the second linked to user2's inbox
    On the DB:
webtop5=# select value from core.user_settings where user_id ='user1' and key ='favorite.folders';

[{"accountId":"main","folderId":"Shared/user2@lg.nethserver.net/INBOX","description":"Inbox-user2"},{"accountId":"main","folderId":"INBOX","description":"Inbox-user1"}]
  • WebTop migration to NS8

Expected behavior

  • both favorite folders are migrated correctly and continue to work

Actual behavior

  • the favorite folders are initially migrated to the DB, but after the first login to the user interface by user1, the favorite linked to user2's inbox is deleted because it no longer works:
webtop5=# select value from core.user_settings where user_id ='user1' and key ='favorite.folders';

[{"accountId":"main","folderId":"INBOX","description":"Inbox-user1"}]

The connection must be changed from this:
{"accountId":"main","folderId":"Shared/user2@lg.nethserver.net/INBOX","description":"Inbox-user2"}
to this:
{"accountId":"main","folderId":"Shared/user2/INBOX","description":"Inbox-user2"}

Components

nethserver-ns8-migration-1.3.4-1.ns7.x86_64
ns8-webtop

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    ToDo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions