[jira] [Resolved] (FOP-1722) [PATCH] Values in PDF Number Trees must be indirect references

2023-03-29 Thread Simon Steiner (Jira)


 [ 
https://issues.apache.org/jira/browse/FOP-1722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Steiner resolved FOP-1722.

Fix Version/s: main
 Assignee: Simon Steiner
   Resolution: Fixed

https://gitbox.apache.org/repos/asf?p=xmlgraphics-fop.git;a=commit;h=120b50fdf64cf9c2a52c86d9ca4e9340dbd2715f

> [PATCH] Values in PDF Number Trees must be indirect references
> --
>
> Key: FOP-1722
> URL: https://issues.apache.org/jira/browse/FOP-1722
> Project: FOP
>  Issue Type: Bug
>  Components: renderer/pdf
>Affects Versions: 2.5
> Environment: Operating System: All
> Platform: All
>Reporter: Vincent Hennebert
>Assignee: Simon Steiner
> Fix For: main
>
> Attachments: patch3.txt, text.fo, text.pdf
>
>
> See PDF Reference, Third Edition, Section 3.8.5, "Number Trees": the Nums 
> entry
> must be an array of key-value pairs where value is an indirect reference to 
> the
> object associated with the key.
> However, the o.a.f.pdf.PDFNumsArray class does nothing to ensure that elements
> added to the array are actually indirectly referenced. So generated PDFs are
> strictly speaking invalid.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


Build failed in Jenkins: XMLGraphics » xmlgraphics-fop #234

2023-03-29 Thread Apache Jenkins Server
See 


Changes:

[Simon Steiner] FOP-1722: Values in PDF Number Trees must be indirect 
references by Dave Roxburgh


--
[...truncated 96.95 KB...]
 [exec] [WARNING] 
:
 Recompile with -Xlint:unchecked for details.
 [exec] [INFO] 
 [exec] [INFO] --- maven-resources-plugin:2.6:testResources 
(default-testResources) @ fop-util ---
 [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [exec] [INFO] skip non existing resourceDirectory 

 [exec] [INFO] 
 [exec] [INFO] --- maven-compiler-plugin:3.1:testCompile 
(default-testCompile) @ fop-util ---
 [exec] [INFO] No sources to compile
 [exec] [INFO] 
 [exec] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ 
fop-util ---
 [exec] [INFO] Tests are skipped.
 [exec] [INFO] 
 [exec] [INFO] --- maven-jar-plugin:3.1.1:jar (default-jar) @ fop-util ---
 [exec] [INFO] Building jar: 

 [exec] [INFO] 
 [exec] [INFO] --- maven-install-plugin:2.4:install (default-install) @ 
fop-util ---
 [exec] [INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/xmlgraphics/fop-util/2.8.0-SNAPSHOT/fop-util-2.8.0-SNAPSHOT.jar
 [exec] [INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/xmlgraphics/fop-util/2.8.0-SNAPSHOT/fop-util-2.8.0-SNAPSHOT.pom
 [exec] [INFO]  
   
 [exec] [INFO] 

 [exec] [INFO] Building Apache FOP Events 2.8.0-SNAPSHOT
 [exec] [INFO] 

 [exec] [INFO] 
 [exec] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ 
fop-events ---
 [exec] [INFO] Deleting 

 [exec] [INFO] 
 [exec] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) 
@ fop-events ---
 [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [exec] [INFO] Copying 2 resources
 [exec] [INFO] Copying 2 resources to META-INF
 [exec] [INFO] 
 [exec] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ 
fop-events ---
 [exec] [INFO] Changes detected - recompiling the module!
 [exec] [INFO] Compiling 16 source files to 

 [exec] [WARNING] 
:
 Some input files use unchecked or unsafe operations.
 [exec] [WARNING] 
:
 Recompile with -Xlint:unchecked for details.
 [exec] [INFO] 
 [exec] [INFO] --- maven-resources-plugin:2.6:testResources 
(default-testResources) @ fop-events ---
 [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [exec] [INFO] skip non existing resourceDirectory 

 [exec] [INFO] 
 [exec] [INFO] --- maven-compiler-plugin:3.1:testCompile 
(default-testCompile) @ fop-events ---
 [exec] [INFO] Changes detected - recompiling the module!
 [exec] [INFO] Compiling 2 source files to 

 [exec] [INFO] 
 [exec] [INFO] --- maven-antrun-plugin:1.8:run (codegen-test-events) @ 
fop-events ---
 [exec] [INFO] Executing tasks
 [exec] 
 [exec] main:
 [exec] [collectEvents] Event model written to 

 [exec] [INFO] Executed tasks
 [exec] [INFO] 
 [exec] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ 
fop-events ---
 [exec] [INFO] Tests are skipped.
 [exec] [INFO] 
 [exec] [INFO] --- maven-jar-plugin:3.1.1:jar (default-jar) @ fop-events ---
 [exec] [INFO] Building jar: 


Jenkins build is back to normal : XMLGraphics » xmlgraphics-fop #235

2023-03-29 Thread Apache Jenkins Server
See 




[jira] [Updated] (FOP-3125) NPE when using broken link and PDF 1.5

2023-03-29 Thread Simon Steiner (Jira)


 [ 
https://issues.apache.org/jira/browse/FOP-3125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Steiner updated FOP-3125:
---
Attachment: fop.xconf
simple.fo

> NPE when using broken link and PDF 1.5
> --
>
> Key: FOP-3125
> URL: https://issues.apache.org/jira/browse/FOP-3125
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: fop.xconf, simple.fo
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (FOP-3125) NPE when using broken link and PDF 1.5

2023-03-29 Thread Simon Steiner (Jira)


 [ 
https://issues.apache.org/jira/browse/FOP-3125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Steiner updated FOP-3125:
---
Description: 
fop simple.fo -c fop.xconf -if application/pdf out.if
fop -c fop.xconf -ifin out.if out.pdf

java.lang.NullPointerException
at 
org.apache.fop.pdf.xref.CrossReferenceStream.output(CrossReferenceStream.java:91)


> NPE when using broken link and PDF 1.5
> --
>
> Key: FOP-3125
> URL: https://issues.apache.org/jira/browse/FOP-3125
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Attachments: fop.xconf, simple.fo
>
>
> fop simple.fo -c fop.xconf -if application/pdf out.if
> fop -c fop.xconf -ifin out.if out.pdf
> java.lang.NullPointerException
>   at 
> org.apache.fop.pdf.xref.CrossReferenceStream.output(CrossReferenceStream.java:91)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (FOP-3125) NPE when using broken link and PDF 1.5

2023-03-29 Thread Simon Steiner (Jira)
Simon Steiner created FOP-3125:
--

 Summary: NPE when using broken link and PDF 1.5
 Key: FOP-3125
 URL: https://issues.apache.org/jira/browse/FOP-3125
 Project: FOP
  Issue Type: Bug
Reporter: Simon Steiner
Assignee: Simon Steiner
 Attachments: fop.xconf, simple.fo





--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (FOP-3125) NPE when using broken link and PDF 1.5

2023-03-29 Thread Simon Steiner (Jira)


 [ 
https://issues.apache.org/jira/browse/FOP-3125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Steiner resolved FOP-3125.

Fix Version/s: main
   Resolution: Fixed

https://gitbox.apache.org/repos/asf?p=xmlgraphics-fop.git;a=commit;h=45f68e349e3f870fee5d4604fcc8115938484c52

> NPE when using broken link and PDF 1.5
> --
>
> Key: FOP-3125
> URL: https://issues.apache.org/jira/browse/FOP-3125
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: main
>
> Attachments: fop.xconf, simple.fo
>
>
> fop simple.fo -c fop.xconf -if application/pdf out.if
> fop -c fop.xconf -ifin out.if out.pdf
> java.lang.NullPointerException
>   at 
> org.apache.fop.pdf.xref.CrossReferenceStream.output(CrossReferenceStream.java:91)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)