#1 2015-04-06 18:00:13

Al3tz
Member
Registered: 2015-04-04

Error on Httpauthexport

Hi, i configured  file for user anon.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <servlet>
   <httpauthexecute>
     <username>anon</username>
     <password>anon</password>
      <registered>
        <keys>sales_current_month_graph</keys>
      </registered>
      <executeuser>
        <id>5164</id>
      </executeuser>
   </httpauthexecute>
  </servlet>
</configuration>

then call report with url my.server:8080/reportserver/reportserver/httpauthexport?key=sales_current_month_graph&username=anon&password=anon&format=json

But Reportserver show me login screen, in log show next information in every attempt to exec report.

WARN StatefulPersistenceContext:722 - HHH000179: Narrowing proxy to class net.datenwerke.rs.base.service.reportengines.table.entities.TableReport - this operation breaks ==

User have read/execution permissions over this report

Last edited by Al3tz (2015-04-06 18:46:57)

Offline

#2 2015-04-06 18:51:02

Al3tz
Member
Registered: 2015-04-04

Re: Error on Httpauthexport

Hi,

Forget it, it's my mistake on paramer use username=anon  instaead user=anon

Offline

#3 2015-06-30 06:34:35

pipchan
Member
Registered: 2014-11-25

Re: Error on Httpauthexport

I did tried the following
http://localhost/reportserver/reportserver/httpauthexport?id=36&format=html&username=test&password=test
http://localhost/reportserver/reportserver/httpauthexport?id=36&format=html&user=test&password=test

[RS version]
RS2.2.2-5639
2015-03-08-21-51-58

[httpauthexecute.cf]
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <servlet>
    <httpauthexecute>
      <username>test</username>
      <password>test</password>
      <registered>
        <ids>36</ids>
      </registered>
      <executeuser>
        <id>10010</id>
      </executeuser>
    </httpauthexecute>
  </servlet>
</configuration>

but all got the following error

Error: An error occured during report execution.
'servlet.httpauthexecute.executeuser.id' doesn't map to a Long object
In case of an incomprehensible error, please contact an administrator.
Details:
org.apache.commons.configuration.ConversionException: 'servlet.httpauthexecute.executeuser.id' doesn't map to a Long object at org.apache.commons.configuration.AbstractConfiguration.getLong(AbstractConfiguration.java:887) at org.apache.commons.configuration.AbstractConfiguration.getLong(AbstractConfiguration.java:855) at net.datenwerke.rs.incubator.server.httpauthexecute.HttpAuthExecuteServlet.getUser(HttpAuthExecuteServlet.java:120) at net.datenwerke.rs.incubator.server.httpauthexecute.HttpAuthExecuteServlet.createParameterSet(HttpAuthExecuteServlet.java:114) at net.datenwerke.rs.core.server.reportexport.ReportExportServlet.doExportReport(ReportExportServlet.java:359) at net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exportReport(ReportExportServlet.java:333) at net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exportReportById(ReportExportServlet.java:270) at net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exportReportByIdViaRequest(ReportExportServlet.java:261) at net.datenwerke.rs.core.server.reportexport.ReportExportServlet.doGet(ReportExportServlet.java:162) at net.datenwerke.rs.incubator.server.httpauthexecute.HttpAuthExecuteServlet.doGet(HttpAuthExecuteServlet.java:106) at net.datenwerke.rs.incubator.server.httpauthexecute.HttpAuthExecuteServlet$$EnhancerByGuice$$b6ec02e9.CGLIB$doGet$0() at net.datenwerke.rs.incubator.server.httpauthexecute.HttpAuthExecuteServlet$$EnhancerByGuice$$b6ec02e9$$FastClassByGuice$$6df11791.invoke() at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:66) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:52) at net.datenwerke.rs.incubator.server.httpauthexecute.HttpAuthExecuteServlet$$EnhancerByGuice$$b6ec02e9.doGet() at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at net.datenwerke.rs.incubator.server.httpauthexecute.HttpAuthExecuteServlet$$EnhancerByGuice$$b6ec02e9.CGLIB$service$15() at net.datenwerke.rs.incubator.server.httpauthexecute.HttpAuthExecuteServlet$$EnhancerByGuice$$b6ec02e9$$FastClassByGuice$$6df11791.invoke() at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72) at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:52) at net.datenwerke.rs.incubator.server.httpauthexecute.HttpAuthExecuteServlet$$EnhancerByGuice$$b6ec02e9.service() at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263) at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178) at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62) at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:89) at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131) at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63) at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.commons.configuration.ConversionException: Could not convert to java.lang.Long at org.apache.commons.configuration.PropertyConverter.toNumber(PropertyConverter.java:426) at org.apache.commons.configuration.PropertyConverter.toLong(PropertyConverter.java:279) at org.apache.commons.configuration.AbstractConfiguration.getLong(AbstractConfiguration.java:883) ... 66 more Caused by: java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Long.parseLong(Long.java:453) at java.lang.Long.(Long.java:702) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.apache.commons.configuration.PropertyConverter.toNumber(PropertyConverter.java:422) ... 68 more

Last edited by pipchan (2015-06-30 06:35:57)

Offline

#4 2015-06-30 09:21:01

Thorsten J. Krause
Guest

Re: Error on Httpauthexport

Hi,

did you reload your configuration (or restart the server) after you changed the configuration?
The error messages states that the value of executuser.id is not a number - which is obviously false. So my guess is that the configuration you posted isn't active.

Cheers,
Thorsten

#5 2015-07-03 01:48:35

pipchan
Member
Registered: 2014-11-25

Re: Error on Httpauthexport

OK, got it.

Offline

Board footer

Powered by FluxBB