Skip to content

IBX-6773: Fixed loading Bookmarks for non-accessible content items#476

Open
vidarl wants to merge 7 commits into4.6from
IBX-6773_Bookmarks_for_non-accessible_contents_cause_exception_4.6
Open

IBX-6773: Fixed loading Bookmarks for non-accessible content items#476
vidarl wants to merge 7 commits into4.6from
IBX-6773_Bookmarks_for_non-accessible_contents_cause_exception_4.6

Conversation

@vidarl
Copy link
Contributor

@vidarl vidarl commented Feb 11, 2025

Question Answer
JIRA issue IBX-6773
Type bug
Target Ibexa version v4.6
BC breaks yes

Related PRs:

Description:

If user bookmark some location which he later looses access too, then the bookmark list in admin-ui fails with an exception.
Simply fixing BookmarkService::loadBookmarks() would be easy. The problem is to implement countUserBookmarks() in persistence layer and having it taking into account user permissions so that BC would be kept.

Talked with Adam on how to solve this without breaking BC and he suggested implementing it using filtering

The Bookmark filter will only work with location filtering (LocationService::find()), not with content (ContentService::find())

This is a port of ezsystems/ezplatform-kernel#408 which was not approved and merge in time before 3.3 went EOL.

For QA:

Read ticket for info on how to reproduce

Documentation:

Documentation for the new filter needs to be made, indeed

@sonarqubecloud
Copy link

@vidarl vidarl requested a review from a team February 12, 2025 12:28
@vidarl vidarl added the Doc needed The changes require some documentation label Feb 12, 2025
@adamwojs adamwojs changed the title IBX:6773 bookmarks for non accessible contents cause exception IBX:6773: Bookmarks for non accessible contents cause exception Feb 23, 2025
@vidarl vidarl force-pushed the IBX-6773_Bookmarks_for_non-accessible_contents_cause_exception_4.6 branch from 9164daa to ec96060 Compare February 23, 2026 15:43
@konradoboza konradoboza requested a review from a team February 24, 2026 08:56
Copy link
Contributor

@konradoboza konradoboza left a comment

Choose a reason for hiding this comment

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

Did you make sure none of the deprecated classes are still in use?

@vidarl
Copy link
Contributor Author

vidarl commented Feb 24, 2026

@konradoboza : FYI : Had to add related PR : ibexa/admin-ui#1835

Comment on lines +1993 to +1994
$this->assertEquals($contactUsLocationId, $afterSwap->items[0]->id);
$this->assertEquals($beforeSwap->items[1]->id, $afterSwap->items[1]->id);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change? It's not clear at first glance.

@konradoboza
Copy link
Contributor

Please rebase the PR @vidarl.

@alongosz alongosz changed the title IBX:6773: Bookmarks for non accessible contents cause exception IBX-6773: Fixed loading Bookmarks for non-accessible content items Feb 27, 2026
@alongosz alongosz force-pushed the IBX-6773_Bookmarks_for_non-accessible_contents_cause_exception_4.6 branch from 78b2c3b to 648ac3e Compare February 27, 2026 20:09
@alongosz
Copy link
Member

PR rebased.

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Doc needed The changes require some documentation Ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants