You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2012/05/17 01:33:00 UTC

[Bug 53248] New: [PATCH] fop test.fo -print throws exception

https://issues.apache.org/bugzilla/show_bug.cgi?id=53248

          Priority: P2
            Bug ID: 53248
          Assignee: fop-dev@xmlgraphics.apache.org
           Summary: [PATCH] fop test.fo -print throws exception
          Severity: minor
    Classification: Unclassified
                OS: All
          Reporter: lmpmbernardo@gmail.com
          Hardware: All
            Status: NEW
           Version: 1.1dev
         Component: general
           Product: Fop

Created attachment 28795
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28795&action=edit
patch file

The command "fop xslfo.fo -print" throws the exception:

C:\>fop xslfo.fo -print
May 16, 2012 10:32:37 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.ArrayIndexOutOfBoundsException: 2
        at
org.apache.fop.cli.CommandLineOptions.parsePrintOutputOption(CommandL
ineOptions.java:559)
        at
org.apache.fop.cli.CommandLineOptions.parseOptions(CommandLineOptions
.java:325)
        at
org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:1
62)
        at org.apache.fop.cli.Main.startFOP(Main.java:158)
        at org.apache.fop.cli.Main.main(Main.java:205)

Note that the command is valid according to "fop -print help".

This minor patch fixes the issue and includes a simple unit test.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 53248] [PATCH] fop test.fo -print throws exception

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53248

Glenn Adams <ga...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Glenn Adams <ga...@apache.org> ---
applied at http://svn.apache.org/viewvc?rev=1339441&view=rev

thanks luis! please close after verification

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 53248] [PATCH] fop test.fo -print throws exception

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53248

Luis Bernardo <lm...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

-- 
You are receiving this mail because:
You are the assignee for the bug.