CUPS 1.6.1 run-stp-tests.sh fails at ipp-1.1.test, Get-Jobs Operation (requested-attributes) #4214

Closed
michaelrsweet opened this Issue Oct 17, 2012 · 5 comments

Comments

Projects
None yet
1 participant
Collaborator

michaelrsweet commented Oct 17, 2012

Version: 1.6.1
CUPS.org User: odyx

Hi,

while building CUPS 1.6.1 on Debian (current sid, roughly equivalent to Wheezy), I noticed that the run-stp-tests.sh launched by "make check" fails during the ipp-1.1.test, with that output:

RFC 2911 section 3.2.6: Get-Jobs Operation (requested-attributes) [FAIL]
RECEIVED: 72 bytes in response
status-code = successful-ok (successful-ok)
attributes-charset (charset) = utf-8
attributes-natural-language (naturalLanguage) = en
EXPECTED: job-id
EXPECTED: job-uri
EXPECTED: job-printer-uri
EXPECTED: job-name
EXPECTED: job-originating-user-name
EXPECTED: job-state
EXPECTED: job-state-reasons
EXPECTED: time-at-creation
EXPECTED: time-at-processing
EXPECTED: time-at-completed
EXPECTED: job-printer-up-time

Then other errors occur and the error_log has 5 superfluous error messages.

The configure is launched with the following arguments:

--mandir=/usr/share/man --with-docdir=/usr/share/cups/doc-root --localedir=/usr/share/cups/locale --enable-slp --enable-libpaper --enable-ssl --enable-gnutls --disable-openssl --enable-threads --enable-static --enable-debug --enable-dbus --with-dbusdir=/etc/dbus-1 --enable-gssapi --enable-avahi --with-pdftops=/usr/bin/gs --disable-launchd --with-cups-group=lp --with-system-groups=lpadmin --with-printcap=/var/run/cups/printcap --with-log-file-perm=0640 --with-local_protocols='CUPS dnssd' --with-remote_protocols='CUPS dnssd' --enable-libusb

And there are plenty of patches: http://anonscm.debian.org/loggerhead/pkg-cups/cups/debian-trunk/files/head:/debian/patches/

It is to be noted that the situation with regards to the tests is worse without the patches.

Cheers,

OdyX

Collaborator

michaelrsweet commented Oct 17, 2012

CUPS.org User: odyx

As a data point, I just tried without the hardening flags Debian is adding and it fails similarly.

Collaborator

michaelrsweet commented Oct 17, 2012

CUPS.org User: odyx

Ah� I now also tried with latest 1.6svn-r10486 (just in case), and it also fails.

Collaborator

michaelrsweet commented Oct 17, 2012

CUPS.org User: mike

r10486 isn't the latest, r10650 is the latest as of today.

Several issues were fixed in the "make check" stuff since 1.6.1 - as long as you have the cups-filters package installed this should now work with the latest code.

Collaborator

michaelrsweet commented Oct 17, 2012

CUPS.org User: odyx

Aye. Good point, sorry for that.

I have now tried with revision 10649 and it still fails, with the same error. What info would you need to help debug that?

Collaborator

michaelrsweet commented Oct 18, 2012

CUPS.org User: odyx

Damn. I really messed up my testing here.

I found the source of the issue; that was not in cups, but is caused by our pstops-based-workflow-only-for-printing-ps-on-a-ps-printer.patch :
Author: till.kamppeter@gmail.com

Index: cups-1.6.0/conf/mime.convs.in

--- cups-1.6.0.orig/conf/mime.convs.in 2011-08-27 11:23:01.000000000 +0200
+++ cups-1.6.0/conf/mime.convs.in 2012-07-27 18:26:48.762128316 +0200
@@ -38,7 +38,7 @@

PostScript filters

-application/postscript application/vnd.cups-postscript 66 pstops
+application/postscript application/vnd.cups-postscript 65 pstops

########################################################################

patch.

If I remove that patch, the testsuite passes. This still means that something is broken if the postscript-to-postscript filter chain is used, but it's another story I guess.

Sorry for the mess again; I'll try to avoid being as noisy for future issues.

Cheers, OdyX

@michaelrsweet michaelrsweet added this to the Stable milestone Mar 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment