[JBoss JIRA] Created: (GTNPORTAL-1673) make UI validation regular expressions configurable by users
by Gary Hu (JIRA)
make UI validation regular expressions configurable by users
-------------------------------------------------------------
Key: GTNPORTAL-1673
URL: https://jira.jboss.org/browse/GTNPORTAL-1673
Project: GateIn Portal
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Reporter: Gary Hu
The current exoadmin portlet uses hard coded regular expressions to validate the UI component form in multiple java files under portlet/exoadmin/src/main/java/org/exoplatform/organization/webui/component.
For example, the org.exoplatform.organization.webui.component.UIGroupMembershipForm class has the following lines:
addUIFormInput(new UIFormStringInput(USER_NAME, USER_NAME, null).addValidator(MandatoryValidator.class)
.addValidator(ExpressionValidator.class, "^\\p{L}[\\p{L}\\d._\\-,]+$", "UIGroupMembershipForm.msg.Invalid-char"));
Can we make the validation expressions configurable by users? We can still keep the current validation expressions as the default but allow the user defined expressions to override the default.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months
[JBoss JIRA] Created: (GTNPORTAL-1093) Captcha verification after validation of existing username or e-mail
by Michal Vanco (JIRA)
Captcha verification after validation of existing username or e-mail
--------------------------------------------------------------------
Key: GTNPORTAL-1093
URL: https://jira.jboss.org/jira/browse/GTNPORTAL-1093
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: User Interface
Affects Versions: 3.0.0-GA
Reporter: Michal Vanco
Procedure:
- click Register
- fill username demo (or any existing), fill all other inputs with valid values
- Subscribe -> This user name already exists, please enter a different name.
- edit name -> Subsribe -> Text verification isn't correct
(you have to refresh and add new captcha to be able to register, it should refresh captcha image in this case or validate with current captcha image)
One more issue about captcha:
- if you register new account, all inputs are cleaned, but captcha remain the same
-> you are not able to register account twice in a row (without refreshing page)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 12 months
[JBoss JIRA] Created: (GTNPORTAL-1362) gatein-jcr and gatein-idm Independence issue - drpping gatein-jcr db brings NPE error when accessing admin portlets.
by Gary Hu (JIRA)
gatein-jcr and gatein-idm Independence issue - drpping gatein-jcr db brings NPE error when accessing admin portlets.
--------------------------------------------------------------------------------------------------------------------
Key: GTNPORTAL-1362
URL: https://jira.jboss.org/browse/GTNPORTAL-1362
Project: GateIn Portal
Issue Type: Task
Security Level: Public (Everyone can see)
Affects Versions: 3.0.0-GA
Reporter: Gary Hu
We are running into a situation where the Independence of gatein-jcr and gatein-idm dbs is concerned.
Here is how to reproduce the issue:
1) set up gatein-jcr and gatein-idm using mysql dbs.
2) start the server and create a new user via the UI.
3) stop the server and drop the gatein-jcr db.
4) delete the data/tmp/work folders and restart the server.
5) it's ok to login into the portal using the newly created user account. but if accessing the admin portlets, for example, the OrganizationPortlet, an NPE exception is thrown.
ERROR [org.exoplatform.webui.application.portlet.PortletApplicationController] (http-0.0.0.0-8080-2) Error while rendering the porlet
org.exoplatform.groovyscript.TemplateRuntimeException: Groovy template exception at DataText[pos=Position[col=1,line=24],data= boolean userCouldEditPage = uicomponent.hasEditPermissionOnPage();] for template app:/groovy/admintoolbar/webui/component/UIAdminToolbarPortlet.gtmpl
at org.exoplatform.groovyscript.GroovyScript.buildRuntimeException(GroovyScript.java:162)
...
Caused by: java.lang.NullPointerException
at org.exoplatform.toolbar.webui.component.UIAdminToolbarPortlet.hasEditPermissionOnPage(UIAdmi
...
Debugging the code shows that the call
UIPageBody pageBody = uiWorkingWS.findFirstComponentOfType(UIPageBody.class);
always returns null.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] Created: (GTNPORTAL-928) deadlock during dashboard editing
by Prabhat Jha (JIRA)
deadlock during dashboard editing
---------------------------------
Key: GTNPORTAL-928
URL: https://jira.jboss.org/jira/browse/GTNPORTAL-928
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 3.0.0-GA
Reporter: Prabhat Jha
During automated selenium testing for Dashboard editing test with EPP configured with Postgre, log says there is a deadlock. I will create a jira.
07:27:14,780 SEVERE [Renderer] HTTP Error 404 fetching service methods from endpoint http://localhost:8080/social/rpc
07:27:14,786 SEVERE [Renderer] HTTP Error 404 fetching service methods from endpoint http://localhost:8080/gadgets/api/rpc
07:27:29,708 ERROR [portal:UIPortalApplication] Error during the processAction phase
org.chromattic.api.UndeclaredRepositoryException: javax.jcr.RepositoryException: ERROR: deadlock detected
Detail: Process 8370 waits for AccessShareLock on relation 23019273 of database 22767079; blocked by process 10647.
Process 10647 waits for AccessExclusiveLock on relation 23019259 of database 22767079; blocked by process 8370.: ERROR: deadlock detected
Detail: Process 8370 waits for AccessShareLock on relation 23019273 of database 22767079; blocked by process 10647.
Process 10647 waits for AccessExclusiveLock on relation 23019259 of database 22767079; blocked by process 8370.
at org.chromattic.core.DomainSession.persist(DomainSession.java:365)
at org.chromattic.core.EntityContext.addChild(EntityContext.java:229)
at org.chromattic.core.mapper.onetomany.hierarchical.AnyChildMap.put(AnyChildMap.java:85)
at org.chromattic.core.mapper.onetomany.hierarchical.AnyChildMap.put(AnyChildMap.java:31)
at org.gatein.mop.core.api.AttributesImpl.set(AttributesImpl.java:95)
at org.gatein.mop.core.util.AbstractAttributes.setObject(AbstractAttributes.java:86)
at org.gatein.mop.core.util.AbstractAttributes.setValue(AbstractAttributes.java:169)
at org.exoplatform.portal.pom.data.Mapper.save(Mapper.java:580)
at org.exoplatform.portal.pom.data.Mapper.saveDashboard(Mapper.java:1110)
at org.exoplatform.portal.pom.config.tasks.DashboardTask$Save.run(DashboardTask.java:106)
at org.exoplatform.portal.pom.config.tasks.DashboardTask$Save.run(DashboardTask.java:68)
at org.exoplatform.portal.pom.config.POMSession.execute(POMSession.java:387)
at org.exoplatform.portal.pom.config.ExecutorDispatcher.execute(ExecutorDispatcher.java:41)
at org.exoplatform.portal.pom.config.TaskExecutionDecorator.execute(TaskExecutionDecorator.java:38)
at org.exoplatform.portal.pom.config.cache.DataCache.execute(DataCache.java:69)
at org.exoplatform.portal.pom.config.POMSessionManager.execute(POMSessionManager.java:160)
at org.exoplatform.portal.pom.config.POMDataStorage.saveDashboard(POMDataStorage.java:289)
at org.exoplatform.portal.config.DataStorageImpl.saveDashboard(DataStorageImpl.java:341)
at org.exoplatform.dashboard.webui.component.UIDashboardContainer.save(UIDashboardContainer.java:481)
at org.exoplatform.dashboard.webui.component.UIDashboardContainer$DeleteGadgetActionListener.execute(UIDashboardContainer.java:560)
at org.exoplatform.webui.event.Event.broadcast(Event.java:89)
at org.exoplatform.webui.core.lifecycle.Lifecycle.processAction(Lifecycle.java:56)
at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:137)
at org.exoplatform.webui.core.lifecycle.UIApplicationLifecycle.processAction(UIApplicationLifecycle.java:58)
at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:137)
at org.exoplatform.webui.core.UIApplication.processAction(UIApplication.java:115)
at org.exoplatform.webui.application.portlet.PortletApplication.processAction(PortletApplication.java:169)
at org.exoplatform.webui.application.portlet.PortletApplicationController.processAction(PortletApplicationController.java:80)
at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:558)
at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:109)
at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:72)
at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:506)
at org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)
at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:197)
at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119)
at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65)
at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at org.gatein.pc.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49)
at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123)
at org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:82)
at sun.reflect.GeneratedMethodAccessor416.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480)
at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84)
at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58)
at org.gatein.wci.tomcat.TC6ServletContainerContext.include(TC6ServletContainerContext.java:87)
at org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:198)
at org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69)
at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77)
at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75)
at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:117)
at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:231)
at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomizationInterceptor.java:76)
at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:229)
at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:152)
at org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:177)
at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:903)
at org.exoplatform.portal.webui.application.UIPortletActionListener$ProcessActionActionListener.execute(UIPortletActionListener.java:102)
at org.exoplatform.webui.event.Event.broadcast(Event.java:89)
at org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecycle.java:126)
at org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecycle.java:61)
at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:137)
at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPortalApplicationLifecycle.java:73)
at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPortalApplicationLifecycle.java:37)
at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:137)
at org.exoplatform.webui.core.UIApplication.processAction(UIApplication.java:115)
at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:105)
at org.exoplatform.web.WebAppController.service(WebAppController.java:143)
at org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)
at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:116)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:112)
at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:84)
at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:66)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.exoplatform.web.login.ClusteredSSOFilter.doFilter(ClusteredSSOFilter.java:73)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.jcr.RepositoryException: ERROR: deadlock detected
Detail: Process 8370 waits for AccessShareLock on relation 23019273 of database 22767079; blocked by process 10647.
Process 10647 waits for AccessExclusiveLock on relation 23019259 of database 22767079; blocked by process 8370.: ERROR: deadlock detected
Detail: Process 8370 waits for AccessShareLock on relation 23019273 of database 22767079; blocked by process 10647.
Process 10647 waits for AccessExclusiveLock on relation 23019259 of database 22767079; blocked by process 8370.
at org.exoplatform.services.jcr.impl.storage.jdbc.optimisation.CQJDBCStorageConnection.getReferencesData(CQJDBCStorageConnection.java:322)
at org.exoplatform.services.jcr.impl.dataflow.persistent.WorkspacePersistentDataManager.getReferencesData(WorkspacePersistentDataManager.java:442)
at org.exoplatform.services.jcr.impl.dataflow.persistent.CacheableWorkspaceDataManager.getReferencesData(CacheableWorkspaceDataManager.java:434)
at org.exoplatform.services.jcr.impl.dataflow.persistent.ACLInheritanceSupportedWorkspaceDataManager.getReferencesData(ACLInheritanceSupportedWorkspaceDataManager.java:205)
at org.exoplatform.services.jcr.impl.dataflow.persistent.LocalWorkspaceDataManagerStub.getReferencesData(LocalWorkspaceDataManagerStub.java:82)
at org.exoplatform.services.jcr.impl.dataflow.session.TransactionableDataManager.getReferencesData(TransactionableDataManager.java:266)
at org.exoplatform.services.jcr.impl.core.SessionDataManager.getReferences(SessionDataManager.java:592)
at org.exoplatform.services.jcr.impl.core.NodeImpl.getReferences(NodeImpl.java:1213)
at org.chromattic.core.jcr.SessionWrapperImpl.cleanReferencesForRemoval(SessionWrapperImpl.java:236)
at org.chromattic.core.jcr.SessionWrapperImpl.remove(SessionWrapperImpl.java:200)
at org.chromattic.core.DomainSessionImpl.remove(DomainSessionImpl.java:561)
at org.chromattic.core.DomainSessionImpl._persist(DomainSessionImpl.java:202)
at org.chromattic.core.DomainSessionImpl._persist(DomainSessionImpl.java:170)
at org.chromattic.core.DomainSession.persist(DomainSession.java:362)
... 127 more
Caused by: org.postgresql.util.PSQLException: ERROR: deadlock detected
Detail: Process 8370 waits for AccessShareLock on relation 23019273 of database 22767079; blocked by process 10647.
Process 10647 waits for AccessExclusiveLock on relation 23019259 of database 22767079; blocked by process 8370.
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1608)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1343)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:194)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:451)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:350)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:254)
at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:342)
at org.exoplatform.services.jcr.impl.storage.jdbc.optimisation.db.SingleDbJDBCConnection.findReferencePropertiesCQ(SingleDbJDBCConnection.java:686)
at org.exoplatform.services.jcr.impl.storage.jdbc.optimisation.CQJDBCStorageConnection.getReferencesData(CQJDBCStorageConnection.java:317)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years