See <http://ci.chorem.org/jenkins/job/pollen-nightly/org.chorem.pollen$pollen-rest-api/17/changes> Changes: [Tony CHEMIT] security + sumplify exceptions + ... [Tony CHEMIT] optimize dependenceis + add license headers + use commons-collections4 [Tony CHEMIT] improve rest api [Tony CHEMIT] continue dev + begin of implements correct security ------------------------------------------ [...truncated 205 lines...] pollen.smtp.from = pollen.devMode = true logConfigurationFile = null 01:02:31 INFO (PollenRestApiApplicationContext.java:231) will use default logging configuration mai 05, 2014 1:02:32 AM org.apache.coyote.AbstractProtocol init Infos: Initializing ProtocolHandler ["http-bio-10000"] mai 05, 2014 1:02:32 AM org.apache.catalina.core.StandardService startInternal Infos: Starting service Tomcat mai 05, 2014 1:02:32 AM org.apache.catalina.core.StandardEngine startInternal Infos: Starting Servlet Engine: Apache Tomcat/7.0.47 mai 05, 2014 1:02:32 AM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment Infos: No global web.xml found 01:02:34 INFO (JCLLoggerAdapter.java:263) Parsed mapping <http://ci.chorem.org/jenkins/job/pollen-nightly/org.chorem.pollen$pollen-rest-api/ws/target/classes/mapping> 01:02:34 INFO (JCLLoggerAdapter.java:263) WebMotion is started 01:02:34 INFO (PollenTopiaTransactionFilter.java:63) Init Topia Filter mai 05, 2014 1:02:34 AM org.apache.coyote.AbstractProtocol start Infos: Starting ProtocolHandler ["http-bio-10000"] 01:02:34 INFO (FixturesService.java:75) will restore database with fixture set 01:02:34 INFO (SecurityService.java:237) All permissions: *:readPoll:org.chorem.pollen.persistence.entity.Poll_6d3a5e84-0ef1-407b-8ac4-dc4cf4f270cb *:readChoice:org.chorem.pollen.persistence.entity.Choice_b80bb655-1053-4844-8af9-91002d7b93f0 *:readChoice:org.chorem.pollen.persistence.entity.Choice_aee19e57-c59b-4fed-97f8-c5e4b6b5c23e *:readChoice:org.chorem.pollen.persistence.entity.Choice_97ad7b29-8bcd-4cfe-bf61-fd5cabbdfee6 01:02:34 INFO (SecurityService.java:213) Check permission: :readPoll:org.chorem.pollen.persistence.entity.Poll_6d3a5e84-0ef1-407b-8ac4-dc4cf4f270cb 01:02:34 INFO (AbstractPollenRestApiTest.java:137) test *getPoll* result { "beginDate": 1388530800000, "commentVisibility": "EVERYBODY", "creator": { "email": "poll_creator@pollen.chorem.org", "name": "poll creator", "token": { "creationDate": 1388530800000, "token": "dFH0Ro1SRS6cBF5UG7D9vg", "topiaCreateDate": 1399244554584, "topiaId": "org.chorem.pollen.persistence.entity.PollenToken_1e43e28a-3ab2-4b63-a63d-4f83c875ff91" }, "topiaCreateDate": 1399244554584, "topiaId": "org.chorem.pollen.persistence.entity.PollenPrincipal_01d6bd93-5599-4de9-a162-4c3b6e6423b7", "topiaVersion": 1 }, "description": "Sondage de type \u0027normal\u0027", "endDate": 1391209200000, "maxChoiceNumber": 2, "pollType": "FREE", "resultVisibility": "EVERYBODY", "title": "Sondage normal", "topiaCreateDate": 1399244554584, "topiaId": "org.chorem.pollen.persistence.entity.Poll_6d3a5e84-0ef1-407b-8ac4-dc4cf4f270cb", "voteCountingType": 1, "voteVisibility": "EVERYBODY" } mai 05, 2014 1:02:34 AM org.apache.coyote.AbstractProtocol pause Infos: Pausing ProtocolHandler ["http-bio-10000"] mai 05, 2014 1:02:35 AM org.apache.catalina.core.StandardService stopInternal Infos: Stopping service Tomcat mai 05, 2014 1:02:35 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads Grave: The web application [/] appears to have started a thread named [Thread-4] but has failed to stop it. This is very likely to create a memory leak. mai 05, 2014 1:02:35 AM org.apache.coyote.AbstractProtocol stop Infos: Stopping ProtocolHandler ["http-bio-10000"] mai 05, 2014 1:02:40 AM org.apache.tomcat.util.net.AbstractEndpoint shutdownExecutor Avertissement: The executor associated with thread pool [http-bio-10000] has not fully shutdown. Some application threads may still be running. mai 05, 2014 1:02:40 AM org.apache.coyote.AbstractProtocol destroy Infos: Destroying ProtocolHandler ["http-bio-10000"] 01:02:40 INFO (PollenServiceConfig.java:88) Pollen configuration: Filename: pollen-rest-api.properties pollen.data.directory = <http://ci.chorem.org/jenkins/job/pollen-nightly/org.chorem.pollen$pollen-rest-api/ws/target/surefire-workdir/org.chorem.pollen.rest.api.PollApiTest/postPoll_27814955111284417> pollen.default.pollType = FREE pollen.default.voteCountingType = 1 pollen.default.pollVoteVisibility = EVERYBODY pollen.default.pollCommentVisibility = EVERYBODY pollen.smtp.host = pollen.smtp.port = 25 pollen.smtp.from = pollen.devMode = true logConfigurationFile = null 01:02:40 INFO (PollenRestApiApplicationContext.java:231) will use default logging configuration mai 05, 2014 1:02:40 AM org.apache.coyote.AbstractProtocol init Infos: Initializing ProtocolHandler ["http-bio-10001"] mai 05, 2014 1:02:40 AM org.apache.catalina.core.StandardService startInternal Infos: Starting service Tomcat mai 05, 2014 1:02:40 AM org.apache.catalina.core.StandardEngine startInternal Infos: Starting Servlet Engine: Apache Tomcat/7.0.47 mai 05, 2014 1:02:40 AM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment Infos: No global web.xml found 01:02:42 INFO (JCLLoggerAdapter.java:263) Parsed mapping <http://ci.chorem.org/jenkins/job/pollen-nightly/org.chorem.pollen$pollen-rest-api/ws/target/classes/mapping> 01:02:42 INFO (JCLLoggerAdapter.java:263) WebMotion is started 01:02:42 INFO (PollenTopiaTransactionFilter.java:63) Init Topia Filter mai 05, 2014 1:02:42 AM org.apache.coyote.AbstractProtocol start Infos: Starting ProtocolHandler ["http-bio-10001"] 01:02:42 INFO (FixturesService.java:75) will restore database with fixture set 01:02:42 INFO (AbstractPollenRestApiTest.java:137) test *postPoll* result { "commentVisibility": "EVERYBODY", "creator": { "token": { "creationDate": 1388530800000, "token": "a58wIPxlRKWUsY3qwboCaA", "topiaCreateDate": 1399244562714, "topiaId": "org.chorem.pollen.persistence.entity.PollenToken_889ebaa6-5d25-481e-9e7b-bd79ee7760e9" }, "topiaCreateDate": 1399244562714, "topiaId": "org.chorem.pollen.persistence.entity.PollenPrincipal_e0d0b1f3-9627-4b3f-bfc6-60241a4d0f86" }, "pollType": "FREE", "title": "title", "topiaCreateDate": 1399244562714, "topiaId": "org.chorem.pollen.persistence.entity.Poll_e0ca21a0-de9a-4fca-9807-d1d5c753a798", "voteCountingType": 1, "voteVisibility": "EVERYBODY" } mai 05, 2014 1:02:42 AM org.apache.coyote.AbstractProtocol pause Infos: Pausing ProtocolHandler ["http-bio-10001"] mai 05, 2014 1:02:42 AM org.apache.catalina.core.StandardService stopInternal Infos: Stopping service Tomcat mai 05, 2014 1:02:42 AM org.apache.coyote.AbstractProtocol stop Infos: Stopping ProtocolHandler ["http-bio-10001"] mai 05, 2014 1:02:47 AM org.apache.tomcat.util.net.AbstractEndpoint shutdownExecutor Avertissement: The executor associated with thread pool [http-bio-10001] has not fully shutdown. Some application threads may still be running. mai 05, 2014 1:02:47 AM org.apache.coyote.AbstractProtocol destroy Infos: Destroying ProtocolHandler ["http-bio-10001"] 01:02:47 INFO (PollenServiceConfig.java:88) Pollen configuration: Filename: pollen-rest-api.properties pollen.data.directory = <http://ci.chorem.org/jenkins/job/pollen-nightly/org.chorem.pollen$pollen-rest-api/ws/target/surefire-workdir/org.chorem.pollen.rest.api.PollApiTest/deletePoll_27814955111284417> pollen.default.pollType = FREE pollen.default.voteCountingType = 1 pollen.default.pollVoteVisibility = EVERYBODY pollen.default.pollCommentVisibility = EVERYBODY pollen.smtp.host = pollen.smtp.port = 25 pollen.smtp.from = pollen.devMode = true logConfigurationFile = null 01:02:48 INFO (PollenRestApiApplicationContext.java:231) will use default logging configuration mai 05, 2014 1:02:48 AM org.apache.coyote.AbstractProtocol init Infos: Initializing ProtocolHandler ["http-bio-10002"] mai 05, 2014 1:02:48 AM org.apache.catalina.core.StandardService startInternal Infos: Starting service Tomcat mai 05, 2014 1:02:48 AM org.apache.catalina.core.StandardEngine startInternal Infos: Starting Servlet Engine: Apache Tomcat/7.0.47 mai 05, 2014 1:02:48 AM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment Infos: No global web.xml found 01:02:50 INFO (JCLLoggerAdapter.java:263) Parsed mapping <http://ci.chorem.org/jenkins/job/pollen-nightly/org.chorem.pollen$pollen-rest-api/ws/target/classes/mapping> 01:02:50 INFO (JCLLoggerAdapter.java:263) WebMotion is started 01:02:50 INFO (PollenTopiaTransactionFilter.java:63) Init Topia Filter mai 05, 2014 1:02:50 AM org.apache.coyote.AbstractProtocol start Infos: Starting ProtocolHandler ["http-bio-10002"] 01:02:50 INFO (FixturesService.java:75) will restore database with fixture set 01:02:50 INFO (SecurityService.java:237) All permissions: *:readChoice:org.chorem.pollen.persistence.entity.Choice_5b7ac6e5-4910-407e-ab25-0349b4b8fcbc *:readPoll:org.chorem.pollen.persistence.entity.Poll_eb68b92f-6817-4e87-9fce-52a525dfefa9 *:*:org.chorem.pollen.persistence.entity.Poll_eb68b92f-6817-4e87-9fce-52a525dfefa9 *:*:org.chorem.pollen.persistence.entity.Choice_3a1d4705-5d35-4e71-84d8-104335909543 *:*:org.chorem.pollen.persistence.entity.Choice_5b7ac6e5-4910-407e-ab25-0349b4b8fcbc *:readChoice:org.chorem.pollen.persistence.entity.Choice_694281b4-5f63-495c-8512-ac28bff773a3 *:*:org.chorem.pollen.persistence.entity.Choice_694281b4-5f63-495c-8512-ac28bff773a3 *:readChoice:org.chorem.pollen.persistence.entity.Choice_3a1d4705-5d35-4e71-84d8-104335909543 01:02:50 INFO (SecurityService.java:213) Check permission: :deletePoll:org.chorem.pollen.persistence.entity.Poll_eb68b92f-6817-4e87-9fce-52a525dfefa9 01:02:50 INFO (SecurityService.java:213) Check permission: :readPoll:org.chorem.pollen.persistence.entity.Poll_eb68b92f-6817-4e87-9fce-52a525dfefa9 01:02:50 INFO (AbstractPollenRestApiTest.java:137) test *deletePoll* result null mai 05, 2014 1:02:50 AM org.apache.coyote.AbstractProtocol pause Infos: Pausing ProtocolHandler ["http-bio-10002"] mai 05, 2014 1:02:50 AM org.apache.catalina.core.StandardService stopInternal Infos: Stopping service Tomcat mai 05, 2014 1:02:50 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads Grave: The web application [/] appears to have started a thread named [Thread-7] but has failed to stop it. This is very likely to create a memory leak. mai 05, 2014 1:02:50 AM org.apache.coyote.AbstractProtocol stop Infos: Stopping ProtocolHandler ["http-bio-10002"] mai 05, 2014 1:02:55 AM org.apache.tomcat.util.net.AbstractEndpoint shutdownExecutor Avertissement: The executor associated with thread pool [http-bio-10002] has not fully shutdown. Some application threads may still be running. mai 05, 2014 1:02:55 AM org.apache.coyote.AbstractProtocol destroy Infos: Destroying ProtocolHandler ["http-bio-10002"] Tests run: 12, Failures: 0, Errors: 0, Skipped: 8, Time elapsed: 36.312 sec - in org.chorem.pollen.rest.api.PollApiTest Results : Tests run: 13, Failures: 0, Errors: 0, Skipped: 9 [JENKINS] Recording test results [INFO] [INFO] --- maven-war-plugin:2.4:war (default-war) @ pollen-rest-api --- [INFO] Packaging webapp [INFO] Assembling webapp [pollen-rest-api] in [<http://ci.chorem.org/jenkins/job/pollen-nightly/org.chorem.pollen$pollen-rest-api/ws/target/pollen-rest-api-2.0-SNAPSHOT]> [INFO] Processing war project [INFO] Copying webapp webResources [<http://ci.chorem.org/jenkins/job/pollen-nightly/org.chorem.pollen$pollen-rest-api/ws/src/main/webapp/WEB-INF]> to [<http://ci.chorem.org/jenkins/job/pollen-nightly/org.chorem.pollen$pollen-rest-api/ws/target/pollen-rest-api-2.0-SNAPSHOT]> [INFO] Copying webapp resources [<http://ci.chorem.org/jenkins/job/pollen-nightly/org.chorem.pollen$pollen-rest-api/ws/src/main/webapp]> [INFO] Webapp assembled in [96 msecs] [INFO] Building war: <http://ci.chorem.org/jenkins/job/pollen-nightly/org.chorem.pollen$pollen-rest-api/ws/target/pollen-rest-api-2.0-SNAPSHOT.war> [INFO] [INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) @ pollen-rest-api >>> [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce (ensure-no-container-api) @ pollen-rest-api --- [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce (check-project-files) @ pollen-rest-api --- [INFO] [INFO] --- helper-maven-plugin:2.1:share-server-secret (get-redmine-login) @ pollen-rest-api --- [INFO] Skipping goal (runOnce flag is on and goal was already executed). [WARNING] Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo [INFO] [INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) @ pollen-rest-api <<< [INFO] [INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ pollen-rest-api --- [INFO] Building jar: <http://ci.chorem.org/jenkins/job/pollen-nightly/org.chorem.pollen$pollen-rest-api/ws/target/pollen-rest-api-2.0-SNAPSHOT-sources.jar> [INFO] [INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ pollen-rest-api --- [INFO] Building jar: <http://ci.chorem.org/jenkins/job/pollen-nightly/org.chorem.pollen$pollen-rest-api/ws/target/pollen-rest-api-2.0-SNAPSHOT-javadoc.jar> [INFO] [INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ pollen-rest-api --- [INFO] [INFO] --- helper-maven-plugin:2.1:share-server-secret (get-pgp-passphrase) @ pollen-rest-api --- [INFO] Exporting server [gpg-signer] username in ${gpg.keyname} [INFO] Exporting server [gpg-signer] password in ${gpg.passphrase} [INFO] [INFO] --- helper-maven-plugin:2.1:collect-files (collect-build-artifacts) @ pollen-rest-api --- [INFO] Loaded /var/local/forge/data/chorem.org/jenkins/workspace/pollen-nightly/trunk/target/collect-artifacts.txt [INFO] Copying pollen-rest-api-2.0-SNAPSHOT.war to /var/local/forge/data/chorem.org/jenkins/workspace/pollen-nightly/trunk/target/collect/org.chorem.pollen--pollen-rest-api/pollen-rest-api-2.0-SNAPSHOT.war [INFO] Copying THIRD-PARTY.properties to /var/local/forge/data/chorem.org/jenkins/workspace/pollen-nightly/trunk/target/collect/org.chorem.pollen--pollen-rest-api/THIRD-PARTY.properties [INFO] Copying pollen-rest-api-2.0-SNAPSHOT-sources.jar to /var/local/forge/data/chorem.org/jenkins/workspace/pollen-nightly/trunk/target/collect/org.chorem.pollen--pollen-rest-api/pollen-rest-api-2.0-SNAPSHOT-sources.jar [INFO] Copying pollen-rest-api-2.0-SNAPSHOT-javadoc.jar to /var/local/forge/data/chorem.org/jenkins/workspace/pollen-nightly/trunk/target/collect/org.chorem.pollen--pollen-rest-api/pollen-rest-api-2.0-SNAPSHOT-javadoc.jar [INFO] [INFO] --- helper-maven-plugin:2.1:collect-files (collect-build-attachements) @ pollen-rest-api --- [WARNING] Skipping goal (No file to collect). [INFO] [INFO] --- maven-gpg-plugin:1.5:sign (sign-artifacts) @ pollen-rest-api --- [INFO] [INFO] --- maven-dependency-plugin:2.8:analyze-only (analyze) @ pollen-rest-api --- [INFO] Used declared dependencies found: [INFO] org.chorem.pollen:pollen-persistence:jar:2.0-SNAPSHOT:compile [INFO] org.chorem.pollen:pollen-services:jar:2.0-SNAPSHOT:compile [INFO] org.nuiton.topia:topia-persistence:jar:3.0-SNAPSHOT:compile [INFO] org.debux.webmotion:webmotion:jar:2.4.1-SNAPSHOT:compile [INFO] org.debux.webmotion:webmotion-unittest:jar:2.4.1-SNAPSHOT:test [INFO] org.nuiton.web:nuiton-web:jar:1.16:compile [INFO] org.nuiton.i18n:nuiton-i18n:jar:3.0:compile [INFO] javax:javaee-api:jar:7.0:provided [INFO] commons-logging:commons-logging:jar:1.1.3:compile [INFO] commons-beanutils:commons-beanutils:jar:1.9.1:compile [INFO] commons-io:commons-io:jar:2.4:compile [INFO] org.apache.httpcomponents:fluent-hc:jar:4.2.3:compile [INFO] com.google.guava:guava:jar:16.0.1:compile [INFO] com.google.code.gson:gson:jar:2.2.4:compile [INFO] org.apache.tomcat.embed:tomcat-embed-core:jar:7.0.47:provided [INFO] junit:junit:jar:4.11:test [INFO] org.nuiton:nuiton-utils:jar:2.7.1:compile [INFO] log4j:log4j:jar:1.2.17:compile [WARNING] Used undeclared dependencies found: [WARNING] org.apache.shiro:shiro-core:jar:1.2.2:compile [JENKINS] Archiving disabled