Bug 1343371 - [PicketLink] XML processing in SAMLParserUtil fails on IBM JDK (SAMLAssertionParserTestCase#showParserIsFailingWithEmptyAttributeValue)
Summary: [PicketLink] XML processing in SAMLParserUtil fails on IBM JDK (SAMLAssertion...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: PicketLink
Version: 6.4.8
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: jboss-set
QA Contact: Ondrej Kotek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-07 08:37 UTC by Ondrej Kotek
Modified: 2019-03-01 12:28 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
IBM JDK
Last Closed: 2019-03-01 12:28:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEAP-4868 0 Major Pull Request Sent [PicketLink] XML processing in SAMLParserUtil fails on IBM JDK (SAMLAssertionParserTestCase#showParserIsFailingWithEmpty... 2018-02-07 06:49:15 UTC

Description Ondrej Kotek 2016-06-07 08:37:47 UTC
Description of problem:
There is an issue in processing XML in SAMLParserUtil on IBM JDK. org.picketlink.test.identity.federation.core.parser.saml.SAMLAssertionParserTestCase#showParserIsFailingWithEmptyAttributeValue from redhat-picketlink fails on IBM JDK.

Version-Release number of selected component (if applicable):
2.5.4.SP8

How reproducible:
Run the test.

Steps to Reproduce:
mvn -f modules/federation test -Dtest=SAMLAssertionParserTestCase#showParserIsFailingWithEmptyAttributeValue

Actual results:
java.lang.NullPointerException
	at org.picketlink.identity.federation.core.parsers.util.SAMLParserUtil.parseAttributeStatement(SAMLParserUtil.java:201)
	at org.picketlink.identity.federation.core.parsers.saml.SAMLAssertionParser.parse(SAMLAssertionParser.java:142)
	at org.picketlink.identity.federation.core.parsers.saml.SAMLParser.parse(SAMLParser.java:67)
	at org.picketlink.common.parsers.AbstractParser.parse(AbstractParser.java:108)
	at org.picketlink.test.identity.federation.core.parser.saml.SAMLAssertionParserTestCase.showParserIsFailingWithEmptyAttributeValue(SAMLAssertionParserTestCase.java:300)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
	at java.lang.reflect.Method.invoke(Method.java:507)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:254)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:149)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

Expected results:
Test passes.

Additional info:
It looks like SAMLParserUtil expects next XMLEvent (while on line 192, there should be <saml2:AttributeValue />), but peek returns null (line 192).


Note You need to log in before you can comment on or make changes to this bug.