Bug 1071386 - classpath bug: javax.print.attribute.standard.JobKOctetsSupported forbids lower bound of 0
Summary: classpath bug: javax.print.attribute.standard.JobKOctetsSupported forbids low...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Andrew Haley
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-28 16:05 UTC by Tim Waugh
Modified: 2015-06-29 19:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-29 19:10:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
JobKOctets.java (545 bytes, text/plain)
2014-02-28 16:05 UTC, Tim Waugh
no flags Details

Description Tim Waugh 2014-02-28 16:05:12 UTC
Description of problem:
The attached Java program terminates with an exception due to an incorrect minimum lower bound check for job-k-octets-supported.

Version-Release number of selected component (if applicable):
gcc-4.8.2-7.fc20

How reproducible:
100%

Steps to Reproduce:
1. gcj -o JobKOctets --main=JobKOctets JobKOctets.java
2. ./JobKOctets

Actual results:
Exception in thread "main" java.lang.IllegalArgumentException: lowerBound may not be less than 1
   at javax.print.attribute.standard.JobKOctetsSupported.<init>(libgcj.so.14)
   at gnu.javax.print.ipp.IppResponse$ResponseReader.parseAttributes(libgcj.so.14)
   at gnu.javax.print.ipp.IppResponse$ResponseReader.parseResponse(libgcj.so.14)
   at gnu.javax.print.ipp.IppResponse.setResponseData(libgcj.so.14)
   at gnu.javax.print.ipp.IppRequest.send(libgcj.so.14)
   at gnu.javax.print.ipp.IppPrintService.getPrinterAttributes(libgcj.so.14)
   at gnu.javax.print.ipp.IppPrintService.<init>(libgcj.so.14)
   at gnu.javax.print.ipp.IppMultiDocPrintService.<init>(libgcj.so.14)
   at gnu.javax.print.CupsPrintService.<init>(libgcj.so.14)
   at gnu.javax.print.CupsServer.getAllPrinters(libgcj.so.14)
   at gnu.javax.print.CupsPrintServiceLookup.getPrintServices(libgcj.so.14)
   at gnu.javax.print.CupsPrintServiceLookup.getPrintServices(libgcj.so.14)
   at javax.print.PrintServiceLookup.lookupPrintServices(libgcj.so.14)
   at JobKOctets.main(JobKOctets)

Expected results:
Print dialog shown.

Additional info:
https://tools.ietf.org/html/rfc2911#section-4.4.33:
"4.4.33 job-k-octets-supported (rangeOfInteger(0:MAX))"

Comment 1 Tim Waugh 2014-02-28 16:05:37 UTC
Created attachment 869107 [details]
JobKOctets.java

Comment 2 Fedora End Of Life 2015-05-29 11:05:53 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Fedora End Of Life 2015-06-29 19:10:11 UTC
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.