james.perry
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Downloads
Posts posted by james.perry
-
-
I'm trying to access the rest_v2 endpoint (mainly because it supports JSON) but I keep getting an error that states "Full authentication is required to access this resource".
For example:
$ curl -u superuser:superuser -H 'Accept: application/json' http://localhost:8080/jasperserver-pro/rest_v2/permissions/Full authentication is required to access this resourceWhat am I doing wrong here?This is a v5.2 instance of JRS.Thx -
Create a parameter called something like PROTOCOL and drop this expression in it.
$P{JASPER_REPORT}.getProperty("ireport.jasperserver.url" ).split( ":" )[0]
This will give you either HTTP or HTTPS depending on how the user is accessing the platform.
Then alter any hardcoded URLs to include $P{PROTOCOL}.
e.g. <![CDATA[$P{PROTOCOL}://localhost:8080/blah/blah/blah]]' -
I have a report that references a sub-report via URL. I need to be able to accomodate changes in how the report is hosted. (i.e. HTTP/HTTPS)
Is there a way to determine the protocol that's being used to request a report?
Perhaps a way to provide a relative path/URI?
Is it possible to generate a svg from the data and generate a report with Jasper
in Products
Posted
Take a look at the getInstance method. Looks like there are several ways to provide data. (InputStream, URL, etc)
http://jasperreports.sourceforge.net/api/net/sf/jasperreports/renderers/BatikRenderer.html