#1 2020-01-16 13:30:53

leandroalmeida
Member
Registered: 2020-01-16

FileServerAccess URL not working by path

Hi everyone,

I'm using ReportServer Community 3.1.0-6010 running on docker/Openshift 3.11.
Everything works fine, reports access by url working normally.

But, in my report, i want to reference a png image by using URL referencing path, like:

https://reportserver-app-leandro-teste.dev.i.tj.pa.gov.br/reportserver/reportserver/fileServerAccess?path=resources/publico/tjpa.png

When i try to acess from browser using the ID format, it works:

https://reportserver-app-leandro-teste.dev.i.tj.pa.gov.br/reportserver/reportserver/fileServerAccess?id=358222

I have ticked the option "Share folder for web access" in both folders:
- resources
- publico

Also have tried differente url without the .png extension, didnt worked. The page is loaded in blank in browser. Any ideas?

WtnkMPh.png
ZJxXgc9.png

Last edited by leandroalmeida (2020-01-16 13:36:27)

Offline

#2 2020-01-21 09:30:16

eduardo
Administrator
Registered: 2016-11-01
Website

Re: FileServerAccess URL not working by path

Hi leandroalmeida,

do you get any error message in the reportserver tomcat logs ? please check and post the complete error stack.

What kind of report are you using? jasper? birt ?

Please try with the latest 3.1.0-6018. Does the problem still happen here?

Regards,
Eduardo

Offline

#3 2020-01-21 11:54:46

leandroalmeida
Member
Registered: 2020-01-16

Re: FileServerAccess URL not working by path

Hi, no error appeared in console. I'm using Jasper, but i'm not calling the report, only the image asset from the fileServerAccess url.
Anyway, i'll try version 3.1.0-6018.

09:47:33.591 INFO  n.d.r.s.s.search.SearchServiceImpl - Rebuilding search index...
09:47:48.204 INFO  n.d.r.c.s.i.RemoteMessageServiceImpl - Available locales: de, hi, lo, pt, lt, hr, lv, hu, zh-CN, hy, uk, id, mk, mn, af, uz, ms, el, mt, en, is, it, my, es, et, eu, vi, ja, ne, ro, nl, no, ru, be, fi, bg, keys, fr, bn, jw, bs, ka, si, sk, sl, ga, gd, ca, sq, sr, kk, km, sv, ko, zh-TW, ta, cs, th, lb, tl, pl, da, tr
09:47:51.513 INFO  n.d.g.s.lateinit.LateInitStartup - Startup completed
21-Jan-2020 09:47:54.108 INFORMAÇÕES [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/bitnami/tomcat/data/reportserver] has finished in [129.211] ms
21-Jan-2020 09:47:54.113 INFORMAÇÕES [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
21-Jan-2020 09:47:54.197 INFORMAÇÕES [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
21-Jan-2020 09:47:54.207 INFORMAÇÕES [main] org.apache.catalina.startup.Catalina.start Server startup in [143.216] milliseconds
09:49:14.602 INFO  n.d.r.p.s.BsiPasswordPolicyServiceImpl - Password policy not active: Could not find config for security/passwordpolicy.cf

Offline

#4 2020-01-21 13:39:08

eduardo
Administrator
Registered: 2016-11-01
Website

Re: FileServerAccess URL not working by path

I don't quite understand: you wrote:
"But, in my report, i want to reference a png image by using URL referencing path, like:" -> , now you say you are not calling a report ?

You also said:
"
When i try to acess from browser using the ID format, it works:
https://reportserver-app-leandro-teste. … ?id=358222
" -> now you say that this fileServerAccess URL does not work?

I don't quite understand what is working, and what not. Please check again and clarify.

Regards,
Eduardo

Offline

#5 2020-01-21 13:47:17

leandroalmeida
Member
Registered: 2020-01-16

Re: FileServerAccess URL not working by path

Hi Eduardo,

I want to reference the image in jasper reports by path, not by ID.
So, by ID is working in the report and in the browser window.

I was testing the URL acess by path on browser, because by ID worked. I suppose that it should be working by path in browser also.

But even in generated report doesnt work.

Offline

#6 2020-01-21 13:59:32

eduardo
Administrator
Registered: 2016-11-01
Website

Re: FileServerAccess URL not working by path

Hi leandroalmeida,

Ah, yes, now I see what you mean smile
I will take a look and let you know.

Regards,
Eduardo

Offline

#7 2020-02-10 08:26:17

eduardo
Administrator
Registered: 2016-11-01
Website

Re: FileServerAccess URL not working by path

Hi leandromeida,

we raised ticket RS-3899 for this. We will update here when we have more information on this. Until then, please use the ID.

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB