-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
5.0
-
x86
-
linux_sun
Calling PrintService.getSupportedDocFlavors() returns an array of supported doc flavors where some of the doc flavor entries are duplicated. Typically, the following entries are duplicated on CUPS - linux:
text/html; charset="utf-8"; class="[B"
text/html; charset="utf-8"; class="java.io.InputStream"
text/html; charset="utf-8"; class="java.net.URL"
text/plain; charset="utf-8"; class="[B"
text/plain; charset="utf-8"; class="java.io.InputStream"
text/plain; charset="utf-8"; class="java.net.URL"
This is reproducible on all the Tiger builds, on Linux. Not reproducible on Solaris and Win32. I tested this with Linux AS 3.1, RH 9 and Cinnabar.
I have attached a sample test. Execute the sample test on linux. Make sure you have a default printer configured on your system. You will see a list of doc flavors that are duplicated.
A similar bug was filed before (4996318) and got fixed in the current mustang PIT build. This fix has removed one extra entry for 'text/html; charset="utf-8"; class="[B"' which used to appear thrice before. Now it is appearing twice on linux. But this fix has eliminated the duplicate entries on solaris.
text/html; charset="utf-8"; class="[B"
text/html; charset="utf-8"; class="java.io.InputStream"
text/html; charset="utf-8"; class="java.net.URL"
text/plain; charset="utf-8"; class="[B"
text/plain; charset="utf-8"; class="java.io.InputStream"
text/plain; charset="utf-8"; class="java.net.URL"
This is reproducible on all the Tiger builds, on Linux. Not reproducible on Solaris and Win32. I tested this with Linux AS 3.1, RH 9 and Cinnabar.
I have attached a sample test. Execute the sample test on linux. Make sure you have a default printer configured on your system. You will see a list of doc flavors that are duplicated.
A similar bug was filed before (4996318) and got fixed in the current mustang PIT build. This fix has removed one extra entry for 'text/html; charset="utf-8"; class="[B"' which used to appear thrice before. Now it is appearing twice on linux. But this fix has eliminated the duplicate entries on solaris.
- duplicates
-
JDK-6324122 test/javax/print/CheckDupFlavor is failing in SQE nightly test
-
- Resolved
-
- relates to
-
JDK-4996318 getSupportedDocFlavors return duplicate entries on CUPS systems
-
- Closed
-