You are not logged in.
As per the tutorial, there is option to execute Reports via the URL : https://reportserver.net/en/guides/admi … a-the-URL/
When I try to access : https://localhost/reportserver/reportserver/security_accountinhibition
I get following error : HTTP Status 405 - HTTP method GET is not supported by this URL
Offline
Hi raikakesh,
what is "security_accountinhibition"? is this your report?
Please note that the URL in the guide is very different:
Your URL:
https://localhost/reportserver/reportserver/security_accountinhibition
The URL in the guide (adapted to your url. Report with ID=4):
http://localhost/reportserver/reportexport?id=4&format=pdf
depending on your installation you may try with: http://localhost/reportserver/reportserver/reportexport?id=4&format=pdf
Best regards,
Eduardo
Offline
Tried on local = http://localhost:8580/reportserver/ReportServer.html#inlinedashboard/type:user
That worked when User is logged in where as when user is not logged in it brought the login page.
Need help to find out how to SSO in Community edition.
Offline
As per post by you edulid on 2017-09-27 02:34:12, I know for sure this worked : http://localhost:8580/reportserver/ReportServer.html#tsexec/id:5845
However when I try : "http://localhost:8580/reportserver/reportexport?id=5845&format=pdf" as suggested by you, there is no response. Get following message : Failed to load resource: the server responded with a status of 404 (Not Found)
HTTP Status 404 - /reportserver/reportexport
type Status report
message /reportserver/reportexport
description The requested resource is not available.
Apache Tomcat/8.0.45
Last edited by rairakesh (2017-10-13 19:19:26)
Offline
Hi rairakesh,
the correct way to embed reports via url is as stated here, as I said: https://reportserver.net/en/guides/admi … a-the-URL/
could you please try with http://localhost:8580/reportserver/reportserver/reportexport?id=5845&format=pdf
Have you also checked 6.11.3. Embedding Reports Without Login ? You need an apikey so you can execute reports without the user having to be logged in.
Regards,
Eduardo
Offline
As per your previous post, please give more details about 6.11.3. Embedding Reports Without Login ?
Does that work with community Edition?
As mentioned earlier : http://localhost:8580/reportserver/ReportServer.html#tsexec/id:5845 works (User is logged in at this time)
Is there any scripting needed for the user to be logged in from our web application?
Also the URL mentioned by you gives error :
http://localhost:8580/reportserver/reportserver/reportexport?id=5845&format=pdf gives error as shown below.
Error: The provided report does not exist.
To get help please contact an administrator.
Details
net.datenwerke.rs.core.server.reportexport.ReportExportServlet$ReportNotExistsException at net.datenwerke.rs.core.server.reportexport.ReportExportServlet.validateRequest(ReportExportServlet.java:144) at net.datenwerke.rs.core.server.reportexport.ReportExportServlet.doExportReport(ReportExportServlet.java:360) at net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exportReport(ReportExportServlet.java:346) at net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exportReportById(ReportExportServlet.java:272) at net.datenwerke.rs.core.server.reportexport.ReportExportServlet.exportReportByIdViaRequest(ReportExportServlet.java:263) at net.datenwerke.rs.core.server.reportexport.ReportExportServlet.doGet(ReportExportServlet.java:166) at net.datenwerke.rs.core.server.reportexport.ReportExportServlet$$EnhancerByGuice$$16ddf567.CGLIB$doGet$1() at net.datenwerke.rs.core.server.reportexport.ReportExportServlet$$EnhancerByGuice$$16ddf567$$FastClassByGuice$$36e21716.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:109) 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.core.server.reportexport.ReportExportServlet$$EnhancerByGuice$$16ddf567.doGet() at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at net.datenwerke.rs.core.server.reportexport.ReportExportServlet$$EnhancerByGuice$$16ddf567.CGLIB$service$14() at net.datenwerke.rs.core.server.reportexport.ReportExportServlet$$EnhancerByGuice$$16ddf567$$FastClassByGuice$$36e21716.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:109) 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.core.server.reportexport.ReportExportServlet$$EnhancerByGuice$$16ddf567.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.FilterDefinition.doFilter(FilterDefinition.java:168) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) 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 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2521) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2510) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source)
Last edited by rairakesh (2017-10-29 21:11:22)
Offline
Also After finding out the report ID by right clicking on : Reports > Report Root > Jasper > CustomerCreditLine which happens to be : 4606
Tried : http://localhost:8580/reportserver/reportexport?id=4606&format=pdf
I get following error :
HTTP Status 404 - /reportserver/reportexport
type Status report
message /reportserver/reportexport
description The requested resource is not available.
Apache Tomcat/8.0.45
Offline
Hi rairakesh,
and with http://localhost:8580/reportserver/reportserver/reportexport?id=4606&format=pdf
? (note the double "reportserver" in the path).
Regards,
Eduardo
Offline
HI Eduardo,
Here is what I am trying to figure out
This works - http://localhost:8580/reportserver/ReportServer.html#tsexec/id:5845
This Does not work - http://localhost:8580/reportserver/reportexport?id=5845&format=pdf
I get error as HTTP Status 404 - /reportserver/reportexport
To resolve above 404 mentioned error - What ID Should I be putting in place of ID ?
Thanks
Rakesh
Offline
Hi rairakesh,
but have you tried http://localhost:8580/reportserver/reportserver/reportexport?id=4606&format=pdf (with two times "reportserver" in the path?? /reportserver/reportserver/ )
The ID you can find it, as you said, opening the report with a single click. The id is located near the name of the report.
Regards,
Eduardo
Offline
Finally this worked but only when User is logged in. How do I go about accessing the same without login in? Should I use API Key?
http://localhost:8580/reportserver/reportserver/reportexport?id=4606&format=pdf&download=false
http://localhost:8580/reportserver/reportserver/reportexport?id=4606&format=pdf > Downloaded the report
And to view as an embedded HTML
http://localhost:8580/reportserver/reportserver/reportexport?id=4606&format=HTML&download=false
All above URL's worked only when User is logged in.
Thanks
Rakesh
Offline
Hi Rakesh,
yes, for this, you need the API Key.
Regards,
Eduardo
Offline