[MGNLDAM-991] DAM chooser NPE for non JCR content item selection Created: 28/Sep/21  Updated: 24/Nov/21  Resolved: 16/Nov/21

Status: Closed
Project: Magnolia DAM Module
Component/s: None
Affects Version/s: 3.0.9
Fix Version/s: 3.0.12

Type: Bug Priority: Neutral
Reporter: Viet Nguyen Assignee: Jorge Franco
Resolution: Fixed Votes: 0
Labels: VN-Testing, maintenance
Remaining Estimate: Not Specified
Time Spent: 1h
Original Estimate: Not Specified

Issue Links:
causality
caused by MGNLDAM-860 DAM chooser browser does not expand f... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: Assets Maintenance 2
Story Points: 5

 Description   

Steps to reproduce

  1.  Use the s3 connector for non JCR content as an example
  2.  From asset chooser, search/filter for an item then select it

Expected results

  • Item selected

Actual results

  • NPE error thrown and crash the editor, see comment below:

    If we try and use any of the filters (name, title) another error is thrown (Internal error) and we lose all work for the page we are working on.

    If we simply click through the directory tree and select an image that way, it doesn't seem to throw and error.

Workaround

  • N/A

Development notes

  • Caused by MGNLDAM-860 DAM chooser browser does not expand folder structure to show preselected value upon opening
  • The expanding mechanism need to be updated to adapt to non JCR content, error in this line where "/" as root item is very JCR specific path.

Generated at Mon Feb 12 05:05:18 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.