[JBoss JIRA] (GTNPORTAL-2941) Improve the configurability of CookieTokenService
by Julien Viet (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-2941?page=com.atlassian.jira.pl... ]
Julien Viet updated GTNPORTAL-2941:
-----------------------------------
Description:
The current CookieTokenService needs to find the codeckey.txt file and for this reason it relies on gatein.conf.dir property value.
The consequence of this is the need for hacks in the testsuite in:
- AbstractTokenServiceTest
- TestSimpleGeneratorService
that needs to override beforeRunBare to setup the gatein.conf.dir
To solve this issue the CookieTokenService should have a property defined in XML configuration set to {{${gatein.conf.dir}/codec/codeckey.txt}} at runtime and to the appropriate value for unit tests in tokenservice-configuration.xml .
was:
The current CookieTokenService needs to find the codeckey.txt file and for this reason it relies on gatein.conf.dir property value.
The consequence of this is the need for hacks in the testsuite in:
- AbstractTokenServiceTest
- TestSimpleGeneratorService
that needs to override beforeRunBare to setup the gatein.conf.dir
To solve this issue the CookieTokenService should have a property defined in XML configuration set to \${gatein.conf.dir}/codec/codeckey.txt at runtime and to the appropriate value for unit tests in tokenservice-configuration.xml .
> Improve the configurability of CookieTokenService
> -------------------------------------------------
>
> Key: GTNPORTAL-2941
> URL: https://issues.jboss.org/browse/GTNPORTAL-2941
> Project: GateIn Portal
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: Julien Viet
> Assignee: Minh Hoang TO
>
> The current CookieTokenService needs to find the codeckey.txt file and for this reason it relies on gatein.conf.dir property value.
> The consequence of this is the need for hacks in the testsuite in:
> - AbstractTokenServiceTest
> - TestSimpleGeneratorService
> that needs to override beforeRunBare to setup the gatein.conf.dir
> To solve this issue the CookieTokenService should have a property defined in XML configuration set to {{${gatein.conf.dir}/codec/codeckey.txt}} at runtime and to the appropriate value for unit tests in tokenservice-configuration.xml .
--
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
12 years, 11 months
[JBoss JIRA] (GTNPORTAL-2941) Improve the configurability of CookieTokenService
by Julien Viet (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-2941?page=com.atlassian.jira.pl... ]
Julien Viet updated GTNPORTAL-2941:
-----------------------------------
Description:
The current CookieTokenService needs to find the codeckey.txt file and for this reason it relies on gatein.conf.dir property value.
The consequence of this is the need for hacks in the testsuite in:
- AbstractTokenServiceTest
- TestSimpleGeneratorService
that needs to override beforeRunBare to setup the gatein.conf.dir
To solve this issue the CookieTokenService should have a property defined in XML configuration set to \${gatein.conf.dir}/codec/codeckey.txt at runtime and to the appropriate value for unit tests in tokenservice-configuration.xml .
was:
The current CookieTokenService needs to find the codeckey.txt file and for this reason it relies on gatein.conf.dir property value.
The consequence of this is the need for hacks in the testsuite in:
- AbstractTokenServiceTest
- TestSimpleGeneratorService
that needs to override beforeRunBare to setup the gatein.conf.dir
To solve this issue the CookieTokenService should have a property defined in XML configuration set to ${gatein.conf.dir}/codec/codeckey.txt at runtime and to the appropriate value for unit tests in tokenservice-configuration.xml .
> Improve the configurability of CookieTokenService
> -------------------------------------------------
>
> Key: GTNPORTAL-2941
> URL: https://issues.jboss.org/browse/GTNPORTAL-2941
> Project: GateIn Portal
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: Julien Viet
> Assignee: Minh Hoang TO
>
> The current CookieTokenService needs to find the codeckey.txt file and for this reason it relies on gatein.conf.dir property value.
> The consequence of this is the need for hacks in the testsuite in:
> - AbstractTokenServiceTest
> - TestSimpleGeneratorService
> that needs to override beforeRunBare to setup the gatein.conf.dir
> To solve this issue the CookieTokenService should have a property defined in XML configuration set to \${gatein.conf.dir}/codec/codeckey.txt at runtime and to the appropriate value for unit tests in tokenservice-configuration.xml .
--
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
12 years, 11 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 updated GTNPORTAL-2944:
----------------------------------
Description:
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}
was:
The following are some of unit tests failed sometimes that we have got :
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}
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}
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)
> 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
12 years, 11 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 updated GTNPORTAL-2944:
----------------------------------
Description:
The following are some of unit tests failed sometimes that we have got :
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}
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}
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)
was:
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}
> 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 :
> 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}
> 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}
> 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)
--
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
12 years, 11 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 updated GTNPORTAL-2944:
----------------------------------
Labels: portal-s70 (was: )
> 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
12 years, 11 months
[JBoss JIRA] (GTNPORTAL-2944) Some of the token unit tests are randomly failed sometimes
by Trong Tran (JIRA)
Trong Tran created GTNPORTAL-2944:
-------------------------------------
Summary: 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
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
12 years, 11 months
[JBoss JIRA] (GTNPORTAL-2943) Hyphens not allowed in Javascript Modules
by Vu Viet Phuong (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-2943?page=com.atlassian.jira.pl... ]
Vu Viet Phuong reassigned GTNPORTAL-2943:
-----------------------------------------
Assignee: Vu Viet Phuong
> Hyphens not allowed in Javascript Modules
> -----------------------------------------
>
> Key: GTNPORTAL-2943
> URL: https://issues.jboss.org/browse/GTNPORTAL-2943
> Project: GateIn Portal
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Affects Versions: 3.4.0.Final
> Environment: Windows 8, Gatein-3.4.0.Final-jboss-as7
> Reporter: Jason Farmer
> Assignee: Vu Viet Phuong
>
> Javascript Modules do not allow hyphens in name. No error messages or failures present until execution.
> Here is the culprit gatein-resources.xml:
> <module>
> <name>jquery-ui</name>
> <script>
> <adapter>
> (function() {
> <include>/javascript/jquery-ui-1.10.2.custom.min.js</include>
> return jQuery.noConflict(true);
> })();
> </adapter>
> </script>
> <depends>
> <module>jquery</module>
> <as>jQuery</as>
> </depends>
> </module>
> And using it within another Javascript included on the portlet that looked like this:
> define(["$", "jquery-ui"], function($) {
> alert("got here");
> $('#userPortlet-dialog-form').css( "border","3px solid red" );
> $('#userPortlet-dialog-form').dialog();
> alert("got here2");
> });
> The jquery selector to change the border worked, however when it reaches the .dialog() it fails saying: [16:42:54.534] TypeError: $(...).dialog is not a function @ http://localhost:8080/portal/scripts/3.5.2.Final-redhat-4/PORTLET/trackr-...
> And fails execution. I tried many variations of fixing/changing remove, etc and I always saw the Javascript being included through Firefox developer tools, however it kept throwing this error. Finally after some trial and error, I found out that renaming my module to just "jqueryui" without the hyphen solved all of my issues.
> There was very little to work off of in the way of errors, everything loaded up correctly and even the regular Jquery executed without a problem.
--
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
12 years, 11 months
[JBoss JIRA] (GTNPORTAL-2941) Improve the configurability of CookieTokenService
by Minh Hoang TO (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-2941?page=com.atlassian.jira.pl... ]
Minh Hoang TO reassigned GTNPORTAL-2941:
----------------------------------------
Assignee: Minh Hoang TO
> Improve the configurability of CookieTokenService
> -------------------------------------------------
>
> Key: GTNPORTAL-2941
> URL: https://issues.jboss.org/browse/GTNPORTAL-2941
> Project: GateIn Portal
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: Julien Viet
> Assignee: Minh Hoang TO
>
> The current CookieTokenService needs to find the codeckey.txt file and for this reason it relies on gatein.conf.dir property value.
> The consequence of this is the need for hacks in the testsuite in:
> - AbstractTokenServiceTest
> - TestSimpleGeneratorService
> that needs to override beforeRunBare to setup the gatein.conf.dir
> To solve this issue the CookieTokenService should have a property defined in XML configuration set to ${gatein.conf.dir}/codec/codeckey.txt at runtime and to the appropriate value for unit tests in tokenservice-configuration.xml .
--
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
12 years, 11 months
[JBoss JIRA] (GTNPORTAL-2943) Hyphens not allowed in Javascript Modules
by Jason Farmer (JIRA)
Jason Farmer created GTNPORTAL-2943:
---------------------------------------
Summary: Hyphens not allowed in Javascript Modules
Key: GTNPORTAL-2943
URL: https://issues.jboss.org/browse/GTNPORTAL-2943
Project: GateIn Portal
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Affects Versions: 3.4.0.Final
Environment: Windows 8, Gatein-3.4.0.Final-jboss-as7
Reporter: Jason Farmer
Javascript Modules do not allow hyphens in name. No error messages or failures present until execution.
Here is the culprit gatein-resources.xml:
<module>
<name>jquery-ui</name>
<script>
<adapter>
(function() {
<include>/javascript/jquery-ui-1.10.2.custom.min.js</include>
return jQuery.noConflict(true);
})();
</adapter>
</script>
<depends>
<module>jquery</module>
<as>jQuery</as>
</depends>
</module>
And using it within another Javascript included on the portlet that looked like this:
define(["$", "jquery-ui"], function($) {
alert("got here");
$('#userPortlet-dialog-form').css( "border","3px solid red" );
$('#userPortlet-dialog-form').dialog();
alert("got here2");
});
The jquery selector to change the border worked, however when it reaches the .dialog() it fails saying: [16:42:54.534] TypeError: $(...).dialog is not a function @ http://localhost:8080/portal/scripts/3.5.2.Final-redhat-4/PORTLET/trackr-...
And fails execution. I tried many variations of fixing/changing remove, etc and I always saw the Javascript being included through Firefox developer tools, however it kept throwing this error. Finally after some trial and error, I found out that renaming my module to just "jqueryui" without the hyphen solved all of my issues.
There was very little to work off of in the way of errors, everything loaded up correctly and even the regular Jquery executed without a problem.
--
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
12 years, 11 months