PrintServ.getSupportedDocFlavors return duplicate entries on Linux, with CUPS

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 5.0
    • Component/s: client-libs
    • 2d
    • 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.

            Assignee:
            Jennifer Godinez (Inactive)
            Reporter:
            Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: