[JBoss JIRA] (GTNPORTAL-2944) Some of the token unit tests are randomly failed sometimes
by Trong Tran (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-2944?page=com.atlassian.jira.pl... ]
Trong Tran resolved GTNPORTAL-2944.
-----------------------------------
Resolution: Partially Completed
> Some of the token unit tests are randomly failed sometimes
> ----------------------------------------------------------
>
> Key: GTNPORTAL-2944
> URL: https://issues.jboss.org/browse/GTNPORTAL-2944
> Project: GateIn Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 3.6.0.Beta01
> Reporter: Trong Tran
> Assignee: Trong Tran
> Labels: portal-s70
> Fix For: 3.6.0.Beta02
>
>
> The following are some of unit tests failed sometimes that we have got :
> {code}
> Running unit test:testDuplicatedTokenGeneration
> 14:07:46,024 ERROR TestSimpleGeneratorService:103 - Unit test testDuplicatedTokenGeneration did not complete
> java.lang.NullPointerException
> at org.exoplatform.web.security.TestSimpleGeneratorService.testDuplicatedTokenGeneration(TestSimpleGeneratorService.java:80)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at junit.framework.TestCase.runTest(TestCase.java:168)
> {code}
> {code}
> Running unit test:testCleanExpiredTokens
> 19:58:45,167 ERROR TestGadgetTokenInfoService:103 - Unit test testCleanExpiredTokens did not complete
> junit.framework.AssertionFailedError: expected:<0> but was:<1>
> at junit.framework.Assert.fail(Assert.java:50)
> at junit.framework.Assert.failNotEquals(Assert.java:287)
> at junit.framework.Assert.assertEquals(Assert.java:67)
> at junit.framework.Assert.assertEquals(Assert.java:134)
> at junit.framework.Assert.assertEquals(Assert.java:140)
> at org.exoplatform.portal.gadget.TestGadgetTokenInfoService.testCleanExpiredTokens(TestGadgetTokenInfoService.java:147)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> {code}
> {code}
> Running unit test:testCleanExpiredTokens
> 02:46:41,188 ERROR TestPlainCookieTokenService:103 - Unit test testCleanExpiredTokens did not complete
> junit.framework.AssertionFailedError: expected:<0> but was:<1>
> at junit.framework.Assert.fail(Assert.java:50)
> at junit.framework.Assert.failNotEquals(Assert.java:287)
> at junit.framework.Assert.assertEquals(Assert.java:67)
> at junit.framework.Assert.assertEquals(Assert.java:134)
> at junit.framework.Assert.assertEquals(Assert.java:140)
> at org.exoplatform.web.security.AbstractCookieTokenServiceTest.testCleanExpiredTokens(AbstractCookieTokenServiceTest.java:89)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 6 months
[JBoss JIRA] (GTNPORTAL-2944) Some of the token unit tests are randomly failed sometimes
by Trong Tran (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-2944?page=com.atlassian.jira.pl... ]
Trong Tran commented on GTNPORTAL-2944:
---------------------------------------
This would be fixed by GTNPORTAL-2961 which helps to deactivate the thread of cleaning up tokens running in background
> Some of the token unit tests are randomly failed sometimes
> ----------------------------------------------------------
>
> Key: GTNPORTAL-2944
> URL: https://issues.jboss.org/browse/GTNPORTAL-2944
> Project: GateIn Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 3.6.0.Beta01
> Reporter: Trong Tran
> Assignee: Trong Tran
> Labels: portal-s70
> Fix For: 3.6.0.Beta02
>
>
> The following are some of unit tests failed sometimes that we have got :
> {code}
> Running unit test:testDuplicatedTokenGeneration
> 14:07:46,024 ERROR TestSimpleGeneratorService:103 - Unit test testDuplicatedTokenGeneration did not complete
> java.lang.NullPointerException
> at org.exoplatform.web.security.TestSimpleGeneratorService.testDuplicatedTokenGeneration(TestSimpleGeneratorService.java:80)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at junit.framework.TestCase.runTest(TestCase.java:168)
> {code}
> {code}
> Running unit test:testCleanExpiredTokens
> 19:58:45,167 ERROR TestGadgetTokenInfoService:103 - Unit test testCleanExpiredTokens did not complete
> junit.framework.AssertionFailedError: expected:<0> but was:<1>
> at junit.framework.Assert.fail(Assert.java:50)
> at junit.framework.Assert.failNotEquals(Assert.java:287)
> at junit.framework.Assert.assertEquals(Assert.java:67)
> at junit.framework.Assert.assertEquals(Assert.java:134)
> at junit.framework.Assert.assertEquals(Assert.java:140)
> at org.exoplatform.portal.gadget.TestGadgetTokenInfoService.testCleanExpiredTokens(TestGadgetTokenInfoService.java:147)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> {code}
> {code}
> Running unit test:testCleanExpiredTokens
> 02:46:41,188 ERROR TestPlainCookieTokenService:103 - Unit test testCleanExpiredTokens did not complete
> junit.framework.AssertionFailedError: expected:<0> but was:<1>
> at junit.framework.Assert.fail(Assert.java:50)
> at junit.framework.Assert.failNotEquals(Assert.java:287)
> at junit.framework.Assert.assertEquals(Assert.java:67)
> at junit.framework.Assert.assertEquals(Assert.java:134)
> at junit.framework.Assert.assertEquals(Assert.java:140)
> at org.exoplatform.web.security.AbstractCookieTokenServiceTest.testCleanExpiredTokens(AbstractCookieTokenServiceTest.java:89)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 6 months
[JBoss JIRA] (GTNSSO-24) Authentication issue in Saml2IdpLoginModule when using special characters
by Marek Posolda (JIRA)
[ https://issues.jboss.org/browse/GTNSSO-24?page=com.atlassian.jira.plugin.... ]
Marek Posolda resolved GTNSSO-24.
---------------------------------
Resolution: Done
Saml2IdpLoginModule has been refactored to use RestCallbackCaller for authentication of users, so it's now using "java.net" instead of commons-httpclient. Encoding issues shouldn't happen anymore
> Authentication issue in Saml2IdpLoginModule when using special characters
> -------------------------------------------------------------------------
>
> Key: GTNSSO-24
> URL: https://issues.jboss.org/browse/GTNSSO-24
> Project: GateIn SSO
> Issue Type: Bug
> Affects Versions: 1.3.2.Final
> Reporter: Marek Posolda
> Assignee: Marek Posolda
> Fix For: 1.3.3.Final
>
>
> This happens with EPP 5.2.2 when using special characters in password:
> {code}
> 2013-05-02 18:01:32,828 WARN [org.gatein.sso.saml.plugin.SAML2IdpLoginModule] (ajp-10.130.142.35-8009-32) Error when sending request through HTTP client
> java.lang.IllegalArgumentException: Invalid uri 'http://www.server.com/portal/rest/sso/authcallback/auth/PCCD71C18H501G/pk...': escaped absolute path not valid
> at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:222)
> at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:89)
> at org.gatein.sso.saml.plugin.SAML2IdpLoginModule.executeRemoteCall(SAML2IdpLoginModule.java:261)
> at org.gatein.sso.saml.plugin.SAML2IdpLoginModule.validateUser(SAML2IdpLoginModule.java:199)
> at org.gatein.sso.saml.plugin.SAML2IdpLoginModule.login(SAML2IdpLoginModule.java:124)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 7 months
[JBoss JIRA] (GTNSSO-24) Authentication issue in Saml2IdpLoginModule when using special characters
by Marek Posolda (JIRA)
[ https://issues.jboss.org/browse/GTNSSO-24?page=com.atlassian.jira.plugin.... ]
Marek Posolda updated GTNSSO-24:
--------------------------------
Description:
This happens with EPP 5.2.2 when using special characters in password:
{code}
2013-05-02 18:01:32,828 WARN [org.gatein.sso.saml.plugin.SAML2IdpLoginModule] (ajp-10.130.142.35-8009-32) Error when sending request through HTTP client
java.lang.IllegalArgumentException: Invalid uri 'http://www.server.com/portal/rest/sso/authcallback/auth/PCCD71C18H501G/pk...': escaped absolute path not valid
at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:222)
at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:89)
at org.gatein.sso.saml.plugin.SAML2IdpLoginModule.executeRemoteCall(SAML2IdpLoginModule.java:261)
at org.gatein.sso.saml.plugin.SAML2IdpLoginModule.validateUser(SAML2IdpLoginModule.java:199)
at org.gatein.sso.saml.plugin.SAML2IdpLoginModule.login(SAML2IdpLoginModule.java:124)
{code}
was:
This happens with EPP 5.2.2 when using special characters in password:
{code}
2013-05-02 18:01:32,828 WARN [org.gatein.sso.saml.plugin.SAML2IdpLoginModule] (ajp-10.130.142.35-8009-32) Error when sending request through HTTP client
java.lang.IllegalArgumentException: Invalid uri 'http://servizi.pre.avcp.local/portal/rest/sso/authcallback/auth/PCCNDR71C...': escaped absolute path not valid
at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:222)
at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:89)
at org.gatein.sso.saml.plugin.SAML2IdpLoginModule.executeRemoteCall(SAML2IdpLoginModule.java:261)
at org.gatein.sso.saml.plugin.SAML2IdpLoginModule.validateUser(SAML2IdpLoginModule.java:199)
at org.gatein.sso.saml.plugin.SAML2IdpLoginModule.login(SAML2IdpLoginModule.java:124)
{code}
> Authentication issue in Saml2IdpLoginModule when using special characters
> -------------------------------------------------------------------------
>
> Key: GTNSSO-24
> URL: https://issues.jboss.org/browse/GTNSSO-24
> Project: GateIn SSO
> Issue Type: Bug
> Affects Versions: 1.3.2.Final
> Reporter: Marek Posolda
> Assignee: Marek Posolda
> Fix For: 1.3.3.Final
>
>
> This happens with EPP 5.2.2 when using special characters in password:
> {code}
> 2013-05-02 18:01:32,828 WARN [org.gatein.sso.saml.plugin.SAML2IdpLoginModule] (ajp-10.130.142.35-8009-32) Error when sending request through HTTP client
> java.lang.IllegalArgumentException: Invalid uri 'http://www.server.com/portal/rest/sso/authcallback/auth/PCCD71C18H501G/pk...': escaped absolute path not valid
> at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:222)
> at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:89)
> at org.gatein.sso.saml.plugin.SAML2IdpLoginModule.executeRemoteCall(SAML2IdpLoginModule.java:261)
> at org.gatein.sso.saml.plugin.SAML2IdpLoginModule.validateUser(SAML2IdpLoginModule.java:199)
> at org.gatein.sso.saml.plugin.SAML2IdpLoginModule.login(SAML2IdpLoginModule.java:124)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 7 months
[JBoss JIRA] (GTNSSO-24) Authentication issue in Saml2IdpLoginModule when using special characters
by Marek Posolda (JIRA)
Marek Posolda created GTNSSO-24:
-----------------------------------
Summary: Authentication issue in Saml2IdpLoginModule when using special characters
Key: GTNSSO-24
URL: https://issues.jboss.org/browse/GTNSSO-24
Project: GateIn SSO
Issue Type: Bug
Affects Versions: 1.3.2.Final
Reporter: Marek Posolda
Assignee: Marek Posolda
Fix For: 1.3.3.Final
This happens with EPP 5.2.2 when using special characters in password:
{code}
2013-05-02 18:01:32,828 WARN [org.gatein.sso.saml.plugin.SAML2IdpLoginModule] (ajp-10.130.142.35-8009-32) Error when sending request through HTTP client
java.lang.IllegalArgumentException: Invalid uri 'http://servizi.pre.avcp.local/portal/rest/sso/authcallback/auth/PCCNDR71C...': escaped absolute path not valid
at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:222)
at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:89)
at org.gatein.sso.saml.plugin.SAML2IdpLoginModule.executeRemoteCall(SAML2IdpLoginModule.java:261)
at org.gatein.sso.saml.plugin.SAML2IdpLoginModule.validateUser(SAML2IdpLoginModule.java:199)
at org.gatein.sso.saml.plugin.SAML2IdpLoginModule.login(SAML2IdpLoginModule.java:124)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 7 months