[MGNLWCS-115] WcsLoginLogoutFilter filter spams logs with ItemNotFoundException Created: 08/Aug/16  Updated: 15/Aug/16  Resolved: 11/Aug/16

Status: Closed
Project: Websphere Commerce Integration
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2

Type: Bug Priority: Neutral
Reporter: Milan Divilek Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
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
Sprint: Kromeriz 56
Story Points: 1

 Description   

WcsLoginLogoutFilter filter tries to get storeId from the page hierarchy, but if page is not WCS then this fails on "javax.jcr.ItemNotFoundException: Root node doesn't have a parent". And this spams log.

2016-08-08 13:27:00,071 WARN  gnolia.wcs.integration.filter.WcsLoginLogoutFilter: Unable to obtain store id for node node /
javax.jcr.ItemNotFoundException: Root node doesn't have a parent
	at org.apache.jackrabbit.core.NodeImpl$6.perform(NodeImpl.java:1754)
	at org.apache.jackrabbit.core.NodeImpl$6.perform(NodeImpl.java:1747)
	at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
	at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
	at org.apache.jackrabbit.core.NodeImpl.getParent(NodeImpl.java:1747)
	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getParent(DelegateNodeWrapper.java:494)
	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getParent(ContentDecoratorNodeWrapper.java:121)
	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getParent(DelegateNodeWrapper.java:494)
	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getParent(ContentDecoratorNodeWrapper.java:121)
	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getParent(DelegateNodeWrapper.java:494)
	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getParent(ContentDecoratorNodeWrapper.java:121)
	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getParent(DelegateNodeWrapper.java:494)
	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getParent(ContentDecoratorNodeWrapper.java:121)
	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getParent(DelegateNodeWrapper.java:494)
	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getParent(ContentDecoratorNodeWrapper.java:121)
	at info.magnolia.personalization.decoration.PersonalizationNodeWrapper.getParent(PersonalizationNodeWrapper.java:152)
	at info.magnolia.wcs.integration.filter.WcsLoginLogoutFilter.getStoreId(WcsLoginLogoutFilter.java:155)
	at info.magnolia.wcs.integration.filter.WcsLoginLogoutFilter.doFilter(WcsLoginLogoutFilter.java:110)

Generated at Mon Feb 12 11:13:25 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.