anbu1485 Posted April 2, 2012 Share Posted April 2, 2012 Hi,I have installed the new Jasper Report Server (jasperreports-server-cp-4.5.0-windows-x86-installer.exe)After the successful installation, I tried to login the server but getting the following exception and not able to login the server.Can you please help me out to resolve the issue to proceed further.2012-05-02 15:09:53,203 WARN IntrusionDetector,http-9980-1:449 - [sECURITY FAILURE Anonymous:null@unknown -> /ExampleApplication/IntrusionDetector] Invalid input: context=userTimezone-Login_context, type(Timezone)=^[\p{L}\p{N}_\/\:\+]*$, input=GMT 05:30org.owasp.esapi.errors.ValidationException: userTimezone-Login_context: Invalid input. Please conform to regex ^[\p{L}\p{N}_\/\:\+]*$ with a maximum length of 100 at org.owasp.esapi.reference.validation.StringValidationRule.checkWhitelist(StringValidationRule.java:144) at org.owasp.esapi.reference.validation.StringValidationRule.checkWhitelist(StringValidationRule.java:160) at org.owasp.esapi.reference.validation.StringValidationRule.getValid(StringValidationRule.java:284) at org.owasp.esapi.reference.DefaultValidator.getValidInput(DefaultValidator.java:213) at com.jaspersoft.jasperserver.api.security.validators.ValidatorImpl.validate(ValidatorImpl.java:345) at com.jaspersoft.jasperserver.api.security.validators.ValidatorImpl.validate(ValidatorImpl.java:251) at com.jaspersoft.jasperserver.api.security.WebAppSecurityFilter.validate(WebAppSecurityFilter.java:175) at com.jaspersoft.jasperserver.api.security.WebAppSecurityFilter.doFilter(WebAppSecurityFilter.java:82) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:411) at com.jaspersoft.jasperserver.war.MultipartRequestWrapperFilter.doFilter(MultipartRequestWrapperFilter.java:90) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:411) at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:411) at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:188) at org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.jaspersoft.jasperserver.war.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:67) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) 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:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555) at java.lang.Thread.run(Thread.java:619)2012-05-02 15:09:53,234 WARN JSCommonController,http-9980-1:202 - There was a security error Thanks in advance. Link to comment Share on other sites More sharing options...
uzair_zaman Posted April 2, 2012 Share Posted April 2, 2012 what's the username and password are you using? Link to comment Share on other sites More sharing options...
anbu1485 Posted April 2, 2012 Author Share Posted April 2, 2012 I have used the following user credentials, as mentioned in the JasperReports-Server-CP-Install-Guide.pdf ( Section 3.4)User ID : jasperadminPassword : jasperadmin Link to comment Share on other sites More sharing options...
mikewoinoski Posted April 2, 2012 Share Posted April 2, 2012 Your timezone "GMT 05:30" contains a space, and the regular expression for the timezone validator does not permit spaces. Could be a bug. Try editing the file $JR_HOME/apache-tomcat/webapps/jasperserver/WEB-INF/classes/esapi/validation.properties and add a space inside the square brackets in the Timezone expression: Validator.Timezone=^[\p{L}\p{N}_\/\:\+ ]*$That should fix your current error. However, it may cause other problems later on.Post Edited by mwoinoskibt at 04/02/2012 18:11 Link to comment Share on other sites More sharing options...
anbu1485 Posted April 3, 2012 Author Share Posted April 3, 2012 Thanks a lot.Now i am able to login in to the Jasper Server. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now