[JBoss JIRA] Created: (GTNPORTAL-1348) Login page then username or password is incorrect shown as JSP source code.
by Andrey Parfonov (JIRA)
Login page then username or password is incorrect shown as JSP source code.
---------------------------------------------------------------------------
Key: GTNPORTAL-1348
URL: https://jira.jboss.org/browse/GTNPORTAL-1348
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Environment: Gatein under apache web server.
Reporter: Andrey Parfonov
When code in org.exoplatform.web.login.ErrorLoginServlet (line 69)
context.getRequestDispatcher("/login/jsp/login.jsp").include(req, resp);
replaced by
context.getRequestDispatcher("/login/jsp/login.jsp").forward(req, resp);
After that problem is gone. There is now more source code of JSP but HTML
with correct message about wrong password.
NOTE if tomcat used without apache front-end problem not appear (why is not clear)
Using include method looks as not quite correct because headers include
'Content-Type' (it is the core of problem) may not be copied from JSP.
The included servlet cannot change the response status code or headers.
Need complex testing to be sure changes include by forward does not break
anything.
As alternative solution (if forward method is not acceptable in some reason) is
possible to set Content-Type header directly in org.exoplatform.web.login.ErrorLoginServlet
but it looks much worse IMO
--
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
14 years
[JBoss JIRA] Created: (GTNPORTAL-599) Having ConcurrentModificationException exception when stopping web server
by Trong Tran (JIRA)
Having ConcurrentModificationException exception when stopping web server
-------------------------------------------------------------------------
Key: GTNPORTAL-599
URL: https://jira.jboss.org/jira/browse/GTNPORTAL-599
Project: GateIn Portal
Issue Type: Bug
Affects Versions: 3.0.0-Beta05
Environment: - Tomcat server
Reporter: Trong Tran
Fix For: 3.0.0-CR01
When i stop Tomcat i have got this :
java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at org.exoplatform.web.application.javascript.JavascriptConfigService.removeJavascript(JavascriptConfigService.java:192)
at org.exoplatform.web.application.javascript.JavascriptRemoval.removeJavascript(JavascriptRemoval.java:76)
at org.exoplatform.web.application.javascript.JavascriptRemoval.onEvent(JavascriptRemoval.java:59)
at org.gatein.wci.impl.DefaultServletContainer.safeFireEvent(DefaultServletContainer.java:147)
Also, I have got a similar problem when i try to undeploy the eXoResources.war which contains the Javascripts used in Portal.
the problem seems to be evident that we ismodifing a Collection while iterating over it.
--
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
14 years