Skip to content

Conversation

@lanseg
Copy link
Contributor

@lanseg lanseg commented May 22, 2025

See JIRA issue: GSMFP-45.

Breaking changes

JRXML file format. Due to changes in the JasperReports itself, older jrxml files has become incompatible with the newer version of the library and all the examples had to be updated with the JasperReports studio. For details please see:

Explicit dependencies

// TODO: add note about the extra dependencies

lanseg and others added 4 commits May 19, 2025 17:00
JapserReport file format has changed and subreport now also has <parameter> tags,
instead of <subreportParameter> and that confuses the parser.

For example, see change for test/resources/examples/oereb/pdfextract.jrxml
From the artifact of the previous workflow run
@sbrunner sbrunner changed the title Gsmfp 45 2 Update JasperReports to version 7 May 22, 2025
@lanseg lanseg changed the title Update JasperReports to version 7 GSMFP-45: Update JasperReports to version 7 May 22, 2025
@lanseg lanseg requested review from sbrunner and sebr72 May 22, 2025 14:10
Copy link
Member

@sbrunner sbrunner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised that there are so many (7) new dependencies, otherwise that looks good :-)

@sbrunner sbrunner changed the title GSMFP-45: Update JasperReports to version 7 Update JasperReports to version 7 May 22, 2025
@lanseg
Copy link
Contributor Author

lanseg commented May 23, 2025

I'm surprised that there are so many (7) new dependencies, otherwise that looks good :-)

Many of those modules are not needed to compile the code, but some of them are loaded indirectly by Class.forName or other dependencies.

@lanseg lanseg requested a review from sbrunner May 26, 2025 13:40
@lanseg lanseg marked this pull request as ready for review May 26, 2025 13:40
@sebr72 sebr72 added dependencies Update the dependencies enhancement New feature labels May 26, 2025
@sebr72
Copy link
Contributor

sebr72 commented May 26, 2025

@sbrunner I label this PR as an enhancement, as the changes are not backward compatible. The reports will need to be migrated to be compatible with Jasper report 7. Agreed ?

Copy link
Contributor

@sebr72 sebr72 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work. Thanks

for (int i = 0; i < parameters.getLength(); i++) {
final Element param = (Element) parameters.item(i);
final String name = param.getAttribute("name");
if (!param.getParentNode().getNodeName().equals("jasperReport")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid unnecessary NPE, Please revert the .equals parameters

<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<conditionalStyle>
<conditionalStyle mode="Opaque" backcolor="#F2F2F2">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why opaque mode added ?

<band/>
</summary>
<pageFooter/>
<summary/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is band missing ?

'joda-time:joda-time:2.13.1',
'com.itextpdf:itextpdf:5.5.13.4',
'joda-time:joda-time:2.14.0',
'net.sf.jasperreports:jasperreports:7.0.2',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check and confirm all these jasper reports libs are opensource. Write in the description a brief explanation of the licensing changes between 6.21.x and 7.0.x (do not hesitate to add links to jasper report documentation)

renovate bot and others added 12 commits June 3, 2025 13:45
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Cancellation as soon as possible of a generation that will fail

* Cancellation as soon as possible of a generation that will fail
* Yaml reader is not thread safe

* Yaml reader is not thread safe
lanseg and others added 18 commits June 3, 2025 15:53
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This is done by the automated script named upgrade-ci-2025
From the artifact of the previous workflow run
…isplays the position of the pages (#3618)

* Feature : paging add an option to add an overview layer to the main map that displays the position of the pages on the main map
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…for all layers (#3623)

* Add forceFailOnError configuration parameter to set failOnError on all layers
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This is done by the automated script named upgrade-ci-2025
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
'joda-time:joda-time:2.14.0',
'org.jfree:jcommon:1.0.24',
'org.apache.groovy:groovy-all:4.0.26',
'xalan:serializer:2.7.3',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why get them out of the jasper section?
It's no more working?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It worked, but it would be better if it contains only jasper libraries

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I like to have all the dependency related to jasper in the same section @sebr72 what do you think?

@sebr72
Copy link
Contributor

sebr72 commented Aug 11, 2025

This PR was resolved by:
#3709

@sebr72 sebr72 closed this Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Update the dependencies enhancement New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants