Backends can't look at FINAL_CONTENT_TYPE to determine MIME type of job

Bug #1452193 reported by Karl Mikaelsson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

We have a custom cups backend ("thinlocal") that looks at FINAL_CONTENT_TYPE to find out whether the submitted job is application/pdf and if so, take special actions. The PPD for this backend accepts PDF:s directly through this line:

*cupsFilter: "application/pdf 0 -"

However, FINAL_CONTENT_TYPE is always set to printer/thinlocal, so the backend can't possibly determine the input format by looking at the FINAL_CONTENT_TYPE.

This is broken with (at least):
 - Ubuntu 14.04 (cups 1.7.2),
 - Ubuntu 14.10 (cups 1.7.5)
 - Ubuntu 15.04 (cups 2.0.2).

Related bug reports, upstream and elsewhere:
 - https://www.cups.org/str.php?L4494
 - https://bugzilla.redhat.com/show_bug.cgi?id=1010580
 - https://bugzilla.redhat.com/show_bug.cgi?id=1149244

Revision history for this message
Karl Mikaelsson (derfian) wrote :

Looks like the offending patch was imported from Red Hat, where it was later reverted since it never worked properly. Might want to take another look at this.

Revision history for this message
Karl Mikaelsson (derfian) wrote :

Sorry, I did not intend to change the "information type" field. Not sure what I did to have it changed to be honest.

information type: Public → Public Security
information type: Public Security → Public
Revision history for this message
gf (gf-interlinks-deactivatedaccount) wrote :

Hello Karl,
Thank you for submitting this bug and reporting a problem with cups. You made this bug report some time ago and Ubuntu and cups have been updated since then.

Could you confirm that this is no longer a problem and that we can close the ticket?
If it is still a problem, are you still interested in finding a solution to this bug?
If you are, could you let us know and, in the current version, could you run the following (only once):
apport-collect 1452193
and upload the updated logs and and any other logs that are relevant for this particular issue.

Thank you again for helping make Ubuntu and cups better.
G

---
Ubuntu Bug Squad volunteer triager
https://wiki.ubuntu.com/BugSquad

Changed in cups (Ubuntu):
status: New → Incomplete
Revision history for this message
Pierre Ossman (Cendio AB) (ossman) wrote :

I can confirm that this is fixed in (at least) 18.04.

Revision history for this message
gf (gf-interlinks-deactivatedaccount) wrote :

Thanks for the update, Pierre. I will close the report now.
Have a great day!
:)
G

Closed per reporter’s feedback.

Changed in cups (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.