If a custom map already have a linked favorite, Link to map on a second favorite to that custom map will failed, unless manually edit .favorites_share.json to add the second link.
Steps to reproduce
Create custom map named CUSTOM MAP
On Default map, create a favorite point named 1 with category A
On Default map, create a favorite point named 2 with category B
On Default map, in My favorite menu A, click on 3-dot, then click Create share link
On Default map, in My favorite menu B, click on 3-dot, then click Create share link
On Default map, in My favorite menu A, click on 3-dot, then click Link to map, choose /Maps/CUSTOM MAP folder
Message: Favorite category linked to map CUSTOM MAP
On Default map, in My favorite menu B, click on 3-dot, then click Link to map, choose /Maps/CUSTOM MAP folder
Message: Failed to link Favorite category to map CUSTOM MAP
Expected behavior
Message: Favorite category linked to map CUSTOM MAP for favorite category B
Now the work around is manually editing the .favorites_share.json to add the favorites.
We cannot share Default map to others, we can only share one of the Default maps favorite to others (by link).
But we can share a CUSTOM MAP to others (by link/ by accounts, with view only permission), so when this bug is resolved, I can link the whole Default map to CUSTOM MAP and share it to other accounts.
Installation method
Other
Operating system
Other
PHP engine version
PHP 8.1
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install of the server?
None
Is this bug present after an update or on a fresh install of the app?
None
Are you using the Nextcloud Server Encryption module?
⚠️ This issue respects the following points: ⚠️
Bug description
If a custom map already have a linked favorite,
Link to map
on a second favorite to that custom map will failed, unless manually edit.favorites_share.json
to add the second link.Steps to reproduce
CUSTOM MAP
Default
map, create a favorite point named1
with categoryA
Default
map, create a favorite point named2
with categoryB
Default
map, inMy favorite
menuA
, click on 3-dot, then clickCreate share link
Default
map, inMy favorite
menuB
, click on 3-dot, then clickCreate share link
Default
map, inMy favorite
menuA
, click on 3-dot, then clickLink to map
, choose/Maps/CUSTOM MAP
folderFavorite category linked to map CUSTOM MAP
Default
map, inMy favorite
menuB
, click on 3-dot, then clickLink to map
, choose/Maps/CUSTOM MAP
folderFailed to link Favorite category to map CUSTOM MAP
Expected behavior
Message:
Favorite category linked to map CUSTOM MAP
for favorite categoryB
Now the work around is manually editing the
.favorites_share.json
to add the favorites.We cannot share
Default
map to others, we can only share one of theDefault
maps favorite to others (by link). But we can share aCUSTOM MAP
to others (by link/ by accounts, with view only permission), so when this bug is resolved, I can link the wholeDefault
map toCUSTOM MAP
and share it to other accounts.Installation method
Other
Operating system
Other
PHP engine version
PHP 8.1
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install of the server?
None
Is this bug present after an update or on a fresh install of the app?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Browser Console
No response
Additional info
No response