jasperserver

Running jasperserver behind nginx: Potential CSRF attack

我只是一个虾纸丫 提交于 2019-12-10 02:06:15
问题 We are using nginx for https traffic offloading, proxying to a locally installed jasperserver (5.2) running on port 8080. internet ---(https/443)---> nginx ---(http/8080)---> tomcat/jasperserver When accessing the jasperserver directly on its port everything is fine. When accessing the service through nginx some functionalities are broken (e.g. editing a user in the jasperserver UI) and the jasperserver log has entries like this: CSRFGuard: potential cross-site request forgery (CSRF) attack

Running report on JasperServer from C#

只谈情不闲聊 提交于 2019-12-09 07:59:13
问题 Jasper Reports is a superb open source alternative to Crystal Reports. It's great for single page PDF pages such as letters & invoices to multi-page reports. However it's not very .NET friendly, and getting C#/Mono to play nice with JasperServer has not been fruitful. Has anyone got any code samples of how to run a report on JasperServer from C#, and attach an XML dataset with the SOAP request? It needs to work on Mono, so Microsoft.Web.Services2 is out of the question. I had a go at trying

How to give condition for null values of multi select parameter in Ireport?

倖福魔咒の 提交于 2019-12-09 03:56:16
问题 I am developing a report using iReport where I want to add a condition for null values. It's working with single select option as: (city=$P{p_city} or $P{p_city} is null) It means here if we do not pass any value for the city parameter, the report will work, but this is not working in case of a multiselect option. We have to choose a "Collection" value expression in iReport when we create a parameter: ($X{IN, country,p_country} or $P{p_country} is null) I have created two input controls in

Inject a datasource using jrs-rest-java-client to a report

戏子无情 提交于 2019-12-08 12:20:39
问题 I am using JasperReports Server with its jrs-rest-java-client API. When I access the remote server I want to inject the datasource (in my case it is a database) that the report should use. I do not know if it is possible to do it using this API. 回答1: Yes, it is possible. This is how I do it in JasperReports Server v6.2.1 with the jrs-rest-java-client v6.2.3: // build configuration object RestClientConfiguration configuration = new RestClientConfiguration("http://localhost:8080/jasperserver");

PHP JasperReports Server API Error

ぐ巨炮叔叔 提交于 2019-12-08 11:25:49
问题 I am trying to ultimately run and display reports from a remote Jasper Server in a PHP application. What I am trying to do this with is the jrs-rest-php-client project on github. The error: Fatal error: Uncaught exception 'Jaspersoft\Exception\RESTRequestException' with message 'An unexpected HTTP status code was returned by the server' in C:\xampp\htdocs\jrs\vendor\src\Jaspersoft\Tool\RESTRequest.php:409 Stack trace: #0 C:\xampp\htdocs\jrs\vendor\src\Jaspersoft\Tool\RESTRequest.php(479):

List as subreport parameter

只谈情不闲聊 提交于 2019-12-08 03:59:28
问题 I need to pass to my subreport a list of integers which will be used as parameter for a IN statement in my query like this: SELECT * FROM my_tables WHERE $X{IN, table.id || '', PARAMETER_LIST} I have tried various syntax to instance a list on my master report but none of them lead to a functional report ; eg : <subreportParameter name="PARAMETER_LIST"> <subreportParameterExpression><![CDATA[[1,2]]]></subreportParameterExpression> </subreportParameter> Is there a solution to my problem? 回答1: I

JasperReports dynamic input controls

隐身守侯 提交于 2019-12-07 22:57:07
问题 I'm currently trying to create a JasperReport report with some special input control behaviour. My needs are: four input controls, two of them are dateboxes, the other ones are radio buttons depending on radio button choice, one of the databoxes should be visible or not so if option 1 is chosen, show both dateboxes; if option 2 is chosen, show only one datebox I wonder if there's a "clean" solution - didn't find anything. Any pointers will be helpful. 回答1: The Print when expression is not

Exporting a report with multiple sheets from JasperServer to Excel

…衆ロ難τιáo~ 提交于 2019-12-07 18:59:10
问题 I created a report using iReport and set the 'One Page per Sheet' option to true in the Excel Export parameters, this generates a report in iReport with multiple sheets. I then loaded the report onto JasperServer, the report's output appears on multiple pages, exporting the report to Excel results in the data appearing on one sheet instead of multiple sheets. Is there a way or an option that can be set so that the data appears on multiple sheets when exported from JasperServer? Thank you. 回答1

HTTP Request POST.Upload JRXML file via JaspeReports Server

杀马特。学长 韩版系。学妹 提交于 2019-12-07 18:50:35
问题 I want upload/update report template JRXML file on JasperReports Server. The official documentation doesn't contain a minimal example for updating report template What is raw request which uploads/updates report template xml via JasperReports Server REST API? I tried to run JasperServer java tests(using maven): http://code.jaspersoft.com/svn/repos/jasperserver/ But I couldn't. There were many errors. Then I found this sample test for updating image in Jasper Server resources: http://community

Jasper server maven repository url?

不羁的心 提交于 2019-12-07 11:00:50
问题 I am trying to get below dependency from jasper server. <dependency> <groupId>com.jaspersoft.jasperserver</groupId> <artifactId>jasperserver-api</artifactId> <version>6.0.1</version> </dependency> But i am getting below error Missing artifact com.jaspersoft.jasperserver:jasperserver-api:jar:6.0.1 Here is my POM <project ...> <modelVersion>4.0.0</modelVersion> .... <name>jasperProject</name> <url>http://www.jaspersoft.com</url> <dependencies> <dependency> <groupId>com.jaspersoft.jasperserver<