[MAGNOLIA-1723] Modified 'checkbox' lists dialog data of modified paragraph not appearing in the tree in servlet code of search by topics Created: 06/Sep/07  Updated: 04/Aug/15  Resolved: 04/Aug/15

Status: Closed
Project: Magnolia
Component/s: admininterface, core, gui, templating
Affects Version/s: 3.0.2
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Thomas Madej Assignee: Philipp Bärfuss
Resolution: Outdated Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Solaris 10/Base Magnolia Setup


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* 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:

 Description   

I have created a new 'checkbox' option list in the paragraph module for a type of 'category' based on business specs. However, the checkbox data does not appear to the servlet query in 'Search by Topics' up after deselecting and reselecting the options.

Steps to reproduce:

1) Create a new paragraph with a couple options in the 'checkbox' list checked. (data appears in JCR explorer)
2) Modify that paragraph and deselect all options.
3) Modify the same paragraph and reselect the options you deselected in step 2.
4) The sniplet below from Search by Topics (within the main loop) no longer picks up the options. More specifically, hm.isExist(node.getHandle()+"/resourceCategory") returns false, when the JCR explorer shows resourceCategory with the NodeData objects. The following sniplet is placed at the top of the main loop of Search by Topics. categoryMarsPicks is a custom attribute in the Search by Topic paragraph.

if (categoryMarsPicks.equals("true")) {

if (hm.isExist(node.getHandle()+"/resourceCategory")) {

catHasMarsPicks = false;

Content cat = hm.getContent(node.getHandle()+"/resourceCategory");
Iterator catIt = cat.getNodeDataCollection().iterator();

while (catIt.hasNext())

{ NodeData catNode = (NodeData) catIt.next(); if (catNode.getString().equals("MaRS Picks")) catHasMarsPicks = true; }

if (!catHasMarsPicks) continue;

} else

{ continue; }

}

I'm open to suggestions.



 Comments   
Comment by Thomas Madej [ 06/Sep/07 ]

Also, a reboot of magnolia resolves the issue. Possible data debry engine data corruption?

Comment by Michael Mühlebach [ 04/Aug/15 ]

We're closing this issue as outdated as it was reported for 4.4.x or earlier versions which are no longer supported. Don't hesitate to reopen or create a new ticket in case this is still relevant and you'll experience it on 4.5.x or later versions.

Generated at Mon Feb 12 03:29:42 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.