You are viewing a plain text version of this content. The canonical link for it is here.
Posted to odf-dev@incubator.apache.org by "Svante Schubert (JIRA)" <ji...@apache.org> on 2017/07/20 11:23:00 UTC

[jira] [Resolved] (ODFTOOLKIT-461) [PATCH] regression in validator command line handling

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

Svante Schubert resolved ODFTOOLKIT-461.
----------------------------------------
       Resolution: Fixed
         Assignee: Svante Schubert
    Fix Version/s: 0.6.2-incubating

I have added some regression test using the command line option based on the JAR (integration test).

Thanks again for the patch, Michael!
Svante

> [PATCH] regression in validator command line handling
> -----------------------------------------------------
>
>                 Key: ODFTOOLKIT-461
>                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-461
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: validator
>    Affects Versions: 0.7-incubating, 0.6.2-incubating
>            Reporter: Michael Stahl
>            Assignee: Svante Schubert
>              Labels: patch
>             Fix For: 0.6.2-incubating
>
>         Attachments: 0001-validator-fix-schema-file-command-line-flags.patch
>
>
> this simple invocation fails:
> java -jar .m2/repository/org/apache/odftoolkit/odfvalidator/1.2.0-incubating-SNAPSHOT/odfvalidator-1.2.0-incubating-SNAPSHOT-jar-with-dependencies.jar foo.odt
> Exception in thread "main" java.lang.NullPointerException
> 	at org.odftoolkit.odfvalidator.ODFValidator.getValidatorForSchema(ODFValidator.java:288)
> 	at org.odftoolkit.odfvalidator.ODFValidator.getManifestValidator(ODFValidator.java:186)
> 	at org.odftoolkit.odfvalidator.ODFRootPackageValidator.validateManifest(ODFRootPackageValidator.java:170)
> 	at org.odftoolkit.odfvalidator.ODFRootPackageValidator.validatePre(ODFRootPackageValidator.java:93)
> 	at org.odftoolkit.odfvalidator.ODFPackageValidator._validate(ODFPackageValidator.java:111)
> 	at org.odftoolkit.odfvalidator.ODFPackageValidator.validate(ODFPackageValidator.java:81)
> 	at org.odftoolkit.odfvalidator.ODFValidator.validateFile(ODFValidator.java:163)
> 	at org.odftoolkit.odfvalidator.ODFValidator.validate(ODFValidator.java:125)
> 	at org.odftoolkit.odfvalidator.Main.main(Main.java:294)
> because of commit https://svn-master.apache.org/repos/asf/incubator/odf/trunk@1759341
> #ODFTOOLKIT-437# ODFValidator: make schema files configurable from cmd line



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)