-
Bug
-
Resolution: Fixed
-
Major
-
1.0.0
-
None
I choose to prefix the project title by "Projet " (see dialog box) but this prefix seems to be ignored for project creation ...
If no number is allowed, add a regexp to check user input
Caused by: org.ametys.plugins.repository.AmetysRepositoryException: An error occured executing the JCR query : //element(2597, ametys:project) at org.ametys.plugins.repository.AmetysObjectResolver.query(AmetysObjectResolver.java:646) at org.ametys.plugins.workspaces.project.ProjectManager.getProject(ProjectManager.java:196) at org.ametys.plugins.workspaces.project.ProjectManager.hasProject(ProjectManager.java:237) at org.ametys.plugins.workspaces.project.ProjectManager.createProject(ProjectManager.java:649) at org.ametys.plugins.workspaces.project.ProjectManager.createProject(ProjectManager.java:625) at org.ametys.plugins.workspaces.project.ProjectsCatalogueManager._createProject(ProjectsCatalogueManager.java:462) at org.ametys.plugins.workspaces.project.ProjectsCatalogueManager.createProject(ProjectsCatalogueManager.java:375) ... 125 more Caused by: javax.jcr.query.InvalidQueryException: Lexical error at line 1, column 21. Encountered: "2" (50), after : "" for statement: for $v in //element(2597, ametys:project) return $v at org.apache.jackrabbit.spi.commons.query.xpath.XPathQueryBuilder.<init>(XPathQueryBuilder.java:307) at org.apache.jackrabbit.spi.commons.query.xpath.XPathQueryBuilder.createQuery(XPathQueryBuilder.java:336) at org.apache.jackrabbit.spi.commons.query.xpath.QueryBuilder.createQueryTree(QueryBuilder.java:39) at org.apache.jackrabbit.spi.commons.query.QueryParser.parse(QueryParser.java:57) at org.apache.jackrabbit.core.query.lucene.QueryImpl.<init>(QueryImpl.java:92) at org.apache.jackrabbit.core.query.lucene.SearchIndex.createExecutableQuery(SearchIndex.java:731) at org.apache.jackrabbit.core.query.QueryImpl.init(QueryImpl.java:115) at org.apache.jackrabbit.core.SearchManager.createQuery(SearchManager.java:243) at org.apache.jackrabbit.core.query.QueryManagerImpl$QueryFactoryImpl$2.createQuery(QueryManagerImpl.java:222) at org.apache.jackrabbit.core.query.CompoundQueryFactory.createQuery(CompoundQueryFactory.java:67) at org.apache.jackrabbit.core.query.QueryManagerImpl$2.perform(QueryManagerImpl.java:95) at org.apache.jackrabbit.core.query.QueryManagerImpl$2.perform(QueryManagerImpl.java:91) at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216) at org.apache.jackrabbit.core.query.QueryManagerImpl.perform(QueryManagerImpl.java:197) at org.apache.jackrabbit.core.query.QueryManagerImpl.createQuery(QueryManagerImpl.java:91) at org.ametys.plugins.repository.AmetysObjectResolver.query(AmetysObjectResolver.java:670) at org.ametys.plugins.repository.AmetysObjectResolver.query(AmetysObjectResolver.java:637)