-
Notifications
You must be signed in to change notification settings - Fork 598
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
GenericList.getItems() does not return any list item having null value. #2248
Comments
…t return any list item having null value.
…ving null value. (#2249) Co-authored-by: Sagar Mandal <sagarm@criticalmass.com>
Fixed in v4.5.2 |
Hi David, i'm still having the same issue with latest acs commons package- 4.11.2. I see a blank screen in UI and the below error in logs: org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension html, cannot render resource JcrNodeResource, type=acs-commons/components/utilities/genericlist, superType=null, |
Was this expected to be fixed in 4.11.2? |
I see it got fixed based of the release notes in 4.11.2 |
The shaded guava or the versioned clientlibs ? Those are the only 2 items
in 4.11.2, no?
…On Wed, Jan 13, 2021 at 9:10 PM prasanna9936 ***@***.***> wrote:
I see it got fixed based of the release notes in 4.11.2
https://raw.githubusercontent.com/Adobe-Consulting-Services/acs-aem-commons/master/CHANGELOG.md
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#2248 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALCOXFTG4NCTYSJP27LVXDSZZHAHANCNFSM4L3O2QJQ>
.
|
There is a full list in this link, https://raw.githubusercontent.com/Adobe-Consulting-Services/acs-aem-commons/master/CHANGELOG.md and search for #2248. |
Oh - that was (allegedly) fixed back in 4.5.2 (last April).. maybe something regressed that fix since then ..? |
Yeah looks like it. Because that link has more than 100+ defects which can't be addressed in one release . |
Correct. The change log is a running list of changer per release. Each release has a section in the chnagelog, newest at the top. Top of the chnagelog has a link to a web site that explains the format. But I guess the important thing is the bug still exists and we need to be fixed :) |
Yeah the bug exists, i'm more than happy to try any other ideas to isolate the problem to ACS. Let me know if you need some help in reproducing the issue. Also, i have created a new issue considering this is a closed one. Feel free to close this to avoid duplicates or link this to new one. |
Required Information
Expected Behavior
GenericList.getItems() should return any item having null value similar to .../_jcr_content.list.json.
This will make it consistent as well as useful, where user may want to add an item having null value.
e.g., Dropdown Option as "Select" or "None". This dropdown option can be used to remove the previously selected value, if required.
Actual Behavior
GenericList.getItems() does not return any item having null value.
Whereas .../_jcr_content.list.json on the list page returns all items including item having null value.
Steps to Reproduce
Create a Generic List
Add multiple items, including one or more item having null value but with title (e.g., "None")
Access the list page path suffixed with /_jcr_content.list.json. This will provide all items having non-null title.
Write Java code to use Generic List API. e..g,
PageManager pageManager = resourceResolver.adaptTo(PageManager.class);
Page listPage = pageManager.getPage("/etc/acs-commons/lists/targets"); // e.g., /etc/acs-commons/lists/targets is our list
GenericList list = listPage.adaptTo(GenericList.class);
///Check output of list.getItems();
Links
NA
The text was updated successfully, but these errors were encountered: