From msweet at apple.com Mon Jun 1 08:20:14 2009 From: msweet at apple.com (Michael Sweet) Date: Mon, 01 Jun 2009 08:20:14 -0700 Subject: [cups.bugs] [LOW] STR #3213: Duplex Printing fills the printer buffer and then hangs the print job Message-ID: <7800-cups.bugs@news.easysw.com> [STR Closed w/o Resolution] Please contact your Linux distributor for this issue. This isn't a CUPS issue; most likely it is a driver issue (we don't include a driver for that printer in CUPS itself) Link: http://www.cups.org/str.php?L3213 Version: 1.3.9 Fix Version: None From msweet at apple.com Mon Jun 1 08:22:27 2009 From: msweet at apple.com (Michael Sweet) Date: Mon, 01 Jun 2009 08:22:27 -0700 Subject: [cups.bugs] [LOW] STR #3216: Wrong colors when printing on Canon ip6700D Message-ID: <7801-cups.bugs@news.easysw.com> [STR Closed w/o Resolution] Please contact your Linux distributor for this issue. We don't bundle a driver in CUPS for this printer; it is likely an issue with the drivers you have installed. Link: http://www.cups.org/str.php?L3216 Version: 1.3rc2 Fix Version: Third-party From msweet at apple.com Mon Jun 1 08:23:26 2009 From: msweet at apple.com (Michael Sweet) Date: Mon, 01 Jun 2009 08:23:26 -0700 Subject: [cups.bugs] [LOW] STR #3217: regression. print fails with cpdftocps filter Message-ID: <7802-cups.bugs@news.easysw.com> [STR Closed w/o Resolution] Please contact your Linux distributor for this issue. This is not something we include with CUPS, it is a third-party printer driver. Link: http://www.cups.org/str.php?L3217 Version: 1.3.10 Fix Version: Third-party From msweet at apple.com Mon Jun 1 08:25:15 2009 From: msweet at apple.com (Michael Sweet) Date: Mon, 01 Jun 2009 08:25:15 -0700 Subject: [cups.bugs] [MOD] STR #3215: cups cannot be built with gnutls 2.8.0 Message-ID: <7803-cups.bugs@news.easysw.com> [STR Closed w/Resolution] Dupe of STR #3178, fixed in 1.4b3, not to be fixed in 1.3.x. Link: http://www.cups.org/str.php?L3215 Version: 1.3.10 Fix Version: 1.4b3 From jacobluis069 at gmail.com Tue Jun 2 07:08:02 2009 From: jacobluis069 at gmail.com (Jacob Luis) Date: Tue, 02 Jun 2009 07:08:02 -0700 Subject: [LOW] STR #3218: Resolving “IO1_INITIALIZATION_FAILED” Error Message in Windows Server 2003 Service Pack 2 and 2000 Message-ID: <7805-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] A STOP error message at the startup of Windows operating system makes your operating system unbootable and data inaccessible. Few main reasons for the occurrence of the STOP error message can be file system damage, MBR (Master Boot Record) corruption, application or utility program errors, virus infection and more. After the occurrence of a STOP error message, you need to restore the data from an up-to-date backup to get back all your data files. However, in case of absence of an updated backup, you need to use advanced file recovery software to recover the data. Consider a practical scenario, where you encounter the below error message when you attempt to start a Windows 2000 Server based server system: ???STOP: 0x00000069 (0x00000000, 0x00000001, 0x00000002, 0x00000003) IO1_INITIALIZATION_FAILED??? The four parameters in the above error message differ with computer???s configuration. Data saved in the hard drive becomes inaccessible after you encounter the above error message. Cause: The root cause for the occurrence of the above STOP error message is removing the Computer Associates ARCserve 2000 Backup program from your system by using Add/Remove Programs (Start > Run > appwiz.cpl). Resolution: To resolve the above error and access the data, you will need to perform an in-place upgrade of Windows 2000 Server operating system. To do so, you need to follow these steps: ??? Insert the Windows 2000 Server CD in your system???s optical drive like a CD-ROM drive. Then start your system and press a key on the keyboard when you receive the prompt to boot from the CD. ??? In Windows 2000 Server Setup, press the ENTER key, when you get the following option: ??? To set up Windows 2000 now, Press ENTER ??? Next, Press F8 to Accept the License Agreement. ??? Windows Setup searches for the hard drive for any earlier installations of Windows 2000 Server. ??? Use the arrow keys to choose Windows 2000 Server installation that does not start, and then press R to select the repair option. ??? Follow the commands in Windows 2000 Server Setup for comprehensive repair of existing Windows 2000 installation. ??? When the Setup completes, remove the Windows 2000 Server CD from the optical drive. ??? Restart your system. However, if you encounter the same error message after restarting your system, the best option is to reinstall Windows 2000 Server operating system. A clean reinstall of Windows will erase all the critical server data from the selected hard drive partition. For complete recovery of lost the lost data from a formatted hard drive partition, you need to use powerful partition recovery software. Such Partition Recovery applications use advanced scanning mechanisms for complete recovery of the lost data. With highly graphical and interactive user interface and automated recovery procedure, these recovery applications work as user-friendly recovery tools. Stellar Phoenix Windows Data Recovery is a powerful and reliable File Recovery tool. The software recovers lost files from corrupted, deleted, formatted or lost hard drive partitions and volumes. It natively supports 185 diverse file types that can be further extended. The software is compatible with FAT16, FAT32, VFAT, NTFS and NTFS5 file systems. It supports Windows 7 (Currently in RC1), Vista, XP, 2003 and 2000. Link: http://www.cups.org/str.php?L3218 Version: Web Site From lukas.karas at centrum.cz Tue Jun 2 07:08:02 2009 From: lukas.karas at centrum.cz (Lukas Karas) Date: Tue, 02 Jun 2009 07:08:02 -0700 Subject: [cups.bugs] [HIGH] STR #3217: regression. print fails with cpdftocps filter Message-ID: <7804-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Hi All. I have installed network printer DeviceURI lpd://myUserName at tina.cvut.cz/OCE3165 (I use ppd file from /usr/share/ppd/openprinting/Oce/Oce-VarioPrint_2070PS/1/OCVP2070.ppd.gz for this printer) With cups version 1.3.8 (debian Lenny package) all works fine. When I print over command echo test | lp -d MyPrinterName cups use these filters: /usr/lib/cups/filter/texttops /usr/lib/cups/filter/pstops and everything is fine. But I have problems with version 1.3.10 (debian Sid package). I can't print any document on this printer. Cups use these filters on this case: /usr/lib/cups/filter/texttopdf /usr/lib/cups/filter/pdftopdf /usr/lib/cups/filter/cpdftocps and I can find these log messages (/var/log/cups/error_log) .... D [01/Jun/2009:16:33:46 +0200] [Job 303] pdftops - copying to temp print file "/var/spool/cups/tmp/4a23e6caead68" D [01/Jun/2009:16:33:47 +0200] [Job 303] Page = 595x842; 6,6 to 590,836 D [01/Jun/2009:16:33:47 +0200] [Job 303] slow_collate=0, slow_duplex=0, slow_order=0 W [01/Jun/2009:16:33:47 +0200] [Job 303] This document does not conform to the Adobe Document Structuring Conventions and may not print correctly! D [01/Jun/2009:16:33:47 +0200] Discarding unused job-progress event... D [01/Jun/2009:16:33:47 +0200] [Job 303] GPL Ghostscript 8.64: Unrecoverable error, exit code 1 E [01/Jun/2009:16:33:47 +0200] [Job 303] pdftops filter exited with status 1! .... Complete logs are in attachment. Link: http://www.cups.org/str.php?L3217 Version: 1.3.10 -------------- next part -------------- A non-text attachment was scrubbed... Name: cupslogs.tar.gz Type: application/octet-stream Size: 3839 bytes Desc: not available URL: From msweet at apple.com Tue Jun 2 07:11:45 2009 From: msweet at apple.com (Michael Sweet) Date: Tue, 02 Jun 2009 07:11:45 -0700 Subject: [LOW] STR #3218: Resolving “IO1_INITIALIZATION_FAILED” Error Message in Windows Server 2003 Service Pack 2 and 2000 Message-ID: <7806-cups.bugs@news.easysw.com> [STR Closed w/o Resolution] SPAM Link: http://www.cups.org/str.php?L3218 Version: Web Site Fix Version: None From jeje665 at gmail.com Fri Jun 5 08:21:37 2009 From: jeje665 at gmail.com (Justforfun) Date: Fri, 05 Jun 2009 08:21:37 -0700 Subject: [cups.bugs] [HIGH] STR #3219: Conflict between HPLIP 3.9.4b10 and CUPS 1.3.9-17ubuntu3.1 Message-ID: <7808-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Print raw under ubuntu 9.04 Link: http://www.cups.org/str.php?L3219 Version: 1.3.9 Attachment: http://www.cups.org/strfiles/3219/officejet j6410.jpeg From msweet at apple.com Fri Jun 5 08:23:59 2009 From: msweet at apple.com (Michael Sweet) Date: Fri, 05 Jun 2009 08:23:59 -0700 Subject: [cups.bugs] [LOW] STR #3219: Conflict between HPLIP 3.9.4b10 and CUPS 1.3.9-17ubuntu3.1 Message-ID: <7809-cups.bugs@news.easysw.com> [STR Closed w/o Resolution] Please contact your Linux distributor for this issue. Link: http://www.cups.org/str.php?L3219 Version: 1.3.9 Fix Version: Third-party From doekia at gmail.com Fri Jun 5 15:19:11 2009 From: doekia at gmail.com (doekia) Date: Fri, 05 Jun 2009 15:19:11 -0700 Subject: CUPS 1.3.9-17ubuntu + jaunty Message-ID: <7811-cups.bugs@news.easysw.com> since recent automatic jaunty 9.04 update (June the 1st for me) all print fail with: /usr/lib/cups/filter/pstopdf exit 1 Printing document or test page I did reinstall the entire cups system. I tried reinstalling the printer PDD (HP Photosmart 2570) to the latest, then from the HP proprietary version. I tried debugging with: export PPD=/etc/cups/ppd/hp2575.ppd /usr/lib/cups/filter/pstoraster 1 1 1 1 "" /usr/share/system-config-printer/testpage-letter.ps > tst.raster /usr/lib/cups/filter/rastertogutenprint.5.2 1 1 1 1 "" tst.out This fail with a different message: ERROR: Gutenprint found a corrupted NickName attribute in PPD file "/etc/cups/ppd/hp2575.ppd"! While activating debug mode, /var/log/cups/error_log exhibit (not all lines reproduced): D [05/Jun/2009:23:12:00 +0200] [Job 316] Unknown option job-uuid=urn:uuid:6b5e15b7-7a64-382e-5a3e-23cde6f63b85. D [05/Jun/2009:23:12:00 +0200] [Job 316] Unknown option orientation-requested=3. D [05/Jun/2009:23:12:00 +0200] cupsdCloseClient: 11 D [05/Jun/2009:23:12:00 +0200] [Job 316] Error: /invalidfont in /findfont D [05/Jun/2009:23:12:00 +0200] [Job 316] Operand stack: D [05/Jun/2009:23:12:00 +0200] [Job 316] Helvetica D [05/Jun/2009:23:12:00 +0200] [Job 316] Execution stack: D [05/Jun/2009:23:12:00 +0200] [Job 316] %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 1 3 %oparray_pop 1739 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- 1820 1 3 %oparray_pop D [05/Jun/2009:23:12:00 +0200] [Job 316] Dictionary stack: D [05/Jun/2009:23:12:00 +0200] [Job 316] --dict:1158/1684(ro)(G)-- --dict:0/20(G)-- --dict:69/200(L)-- D [05/Jun/2009:23:12:00 +0200] [Job 316] Current allocation mode is local D [05/Jun/2009:23:12:00 +0200] [Job 316] Last OS error: 2 D [05/Jun/2009:23:12:00 +0200] [Job 316] GPL Ghostscript 8.64: Unrecoverable error, exit code 1 D [05/Jun/2009:23:12:00 +0200] [Job 316] cat: write error: Broken pipe D [05/Jun/2009:23:12:00 +0200] [Job 316] cat: write error: Broken pipe E [05/Jun/2009:23:12:00 +0200] PID 28969 (/usr/lib/cups/filter/pstopdf) stopped with status 1! The printer prints a blank page!!! Any helps or clues will be greatly appreciated From h.blischke at acm.org Sat Jun 6 02:11:14 2009 From: h.blischke at acm.org (Helge Blischke) Date: Sat, 06 Jun 2009 02:11:14 -0700 Subject: CUPS 1.3.9-17ubuntu + jaunty References: <7811-cups.bugs@news.easysw.com> Message-ID: <7812-cups.bugs@news.easysw.com> doekia wrote: > since recent automatic jaunty 9.04 update (June the 1st for me) all print > fail with: /usr/lib/cups/filter/pstopdf exit 1 > Printing document or test page > > I did reinstall the entire cups system. > I tried reinstalling the printer PDD (HP Photosmart 2570) to the latest, > then from the HP proprietary version. > > I tried debugging with: > export PPD=/etc/cups/ppd/hp2575.ppd > /usr/lib/cups/filter/pstoraster 1 1 1 1 "" > /usr/share/system-config-printer/testpage-letter.ps > tst.raster > /usr/lib/cups/filter/rastertogutenprint.5.2 1 1 1 1 "" >tst.out > > This fail with a different message: > ERROR: Gutenprint found a corrupted NickName attribute in PPD file > "/etc/cups/ppd/hp2575.ppd"! > > While activating debug mode, /var/log/cups/error_log exhibit (not all > lines reproduced): D [05/Jun/2009:23:12:00 +0200] [Job 316] Unknown option > job-uuid=urn:uuid:6b5e15b7-7a64-382e-5a3e-23cde6f63b85. D > [05/Jun/2009:23:12:00 +0200] [Job 316] Unknown option > orientation-requested=3. D [05/Jun/2009:23:12:00 +0200] cupsdCloseClient: > 11 D [05/Jun/2009:23:12:00 +0200] [Job 316] Error: /invalidfont in > /findfont D [05/Jun/2009:23:12:00 +0200] [Job 316] Operand stack: D > [05/Jun/2009:23:12:00 +0200] [Job 316] Helvetica D [05/Jun/2009:23:12:00 > +0200] [Job 316] Execution stack: > D [05/Jun/2009:23:12:00 +0200] [Job 316] %interp_exit .runexec2 > --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push > --nostringval-- --nostringval-- --nostringval-- false 1 > %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop > 1845 1 3 %oparray_pop 1739 1 3 %oparray_pop > --nostringval-- %errorexec_pop .runexec2 --nostringval-- > --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- > 1820 1 3 %oparray_pop D [05/Jun/2009:23:12:00 +0200] [Job 316] > Dictionary stack: > D [05/Jun/2009:23:12:00 +0200] [Job 316] --dict:1158/1684(ro)(G)-- > --dict:0/20(G)-- --dict:69/200(L)-- D [05/Jun/2009:23:12:00 +0200] [Job > 316] Current allocation mode is local D [05/Jun/2009:23:12:00 +0200] [Job > 316] Last OS error: 2 D [05/Jun/2009:23:12:00 +0200] [Job 316] GPL > Ghostscript 8.64: Unrecoverable error, exit code 1 D [05/Jun/2009:23:12:00 > +0200] [Job 316] cat: write error: Broken pipe D [05/Jun/2009:23:12:00 > +0200] [Job 316] cat: write error: Broken pipe E [05/Jun/2009:23:12:00 > +0200] PID 28969 (/usr/lib/cups/filter/pstopdf) stopped with status 1! > > > The printer prints a blank page!!! > > Any helps or clues will be greatly appreciated Not only that the pstopdf filter cannot cope with some job attributes the pstops filter of "native CUPS" properly handles (like "orientation-requested"), it uses Ghostscript to convert PostScript to PDF, and it sems that the font configuration in your installation is broken ("/invalidfont in /findfont", and "Helvetica" on the operand stack). File a bug to your Linux distributor - this seems not to be a CUPS issue. If you like, you could send me a sample print job offline for further inspection. Helge From martin.pitt at ubuntu.com Sat Jun 6 02:14:55 2009 From: martin.pitt at ubuntu.com (Martin Pitt) Date: Sat, 06 Jun 2009 02:14:55 -0700 Subject: [cups.bugs] CUPS 1.3.9-17ubuntu + jaunty In-Reply-To: <7811-cups.bugs@news.easysw.com> References: <7811-cups.bugs@news.easysw.com> Message-ID: <7813-cups.bugs@news.easysw.com> Hello doekia, doekia [2009-06-05 15:19 -0700]: > since recent automatic jaunty 9.04 update (June the 1st for me) all print fail with: > /usr/lib/cups/filter/pstopdf exit 1 Sounds like https://launchpad.net/bugs/382379 . Please close this upstream bug, we'll fix it in an Ubuntu update. Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org) From martin.pitt at canonical.com Sun Jun 7 03:26:24 2009 From: martin.pitt at canonical.com (martin.pitt.canonical) Date: Sun, 07 Jun 2009 03:26:24 -0700 Subject: [cups.bugs] [MOD] STR #3220: libgnutls-config is deprecated Message-ID: <7814-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] >From http://bugs.debian.org/529903: The package's ./configure script is trying to invoke libgnutls-config and/or libgnutls-extra-config to search for the gnutls library. Newer versions of gnutls do not ship these scripts anymore. Please use another way to search for the gnutls library, e.g. pkg-config or AC_LIB_HAVE_LINKFLAGS or AC_CHECK_FUNCS. For packages that already use pkg-config to search for other libraries, pkg-config will probably be the simplest way. Please move to "pkg-config --libs gnutls" and "pkg-config --cflags gnutls". Thank you! Link: http://www.cups.org/str.php?L3220 Version: 1.3.10 From msweet at apple.com Sun Jun 7 15:50:41 2009 From: msweet at apple.com (Michael Sweet) Date: Sun, 07 Jun 2009 15:50:41 -0700 Subject: [cups.bugs] [MOD] STR #3220: libgnutls-config is deprecated Message-ID: <7815-cups.bugs@news.easysw.com> [STR Closed w/Resolution] DUPE of STR #3178, already fixed in CUPS 1.4b3, NOT TO BE FIXED in 1.3.x. Link: http://www.cups.org/str.php?L3220 Version: 1.3.10 Fix Version: 1.4b3 From msweet at apple.com Mon Jun 8 15:25:10 2009 From: msweet at apple.com (Michael Sweet) Date: Mon, 08 Jun 2009 15:25:10 -0700 Subject: [cups.bugs] [LOW] STR #3212: Localization information missing from PPD compiler documentation Message-ID: <7816-cups.bugs@news.easysw.com> [STR Closed w/Resolution] Fixed in Subversion repository. I copied over (and updated) the relevant parts to the Introduction to the PPD Compiler help file in 1.4... Link: http://www.cups.org/str.php?L3212 Version: 1.4-current Fix Version: 1.4-current (r8702) From till.kamppeter at gmail.com Tue Jun 9 10:37:33 2009 From: till.kamppeter at gmail.com (Till Kamppeter) Date: Tue, 09 Jun 2009 10:37:33 -0700 Subject: [cups.bugs] CUPS 1.3.9-17ubuntu + jaunty In-Reply-To: <7813-cups.bugs@news.easysw.com> References: <7811-cups.bugs@news.easysw.com> <7813-cups.bugs@news.easysw.com> Message-ID: <7817-cups.bugs@news.easysw.com> Martin Pitt wrote: > Hello doekia, > > doekia [2009-06-05 15:19 -0700]: >> since recent automatic jaunty 9.04 update (June the 1st for me) all print fail with: >> /usr/lib/cups/filter/pstopdf exit 1 > > Sounds like https://launchpad.net/bugs/382379 . Please close this > upstream bug, we'll fix it in an Ubuntu update. pitti, this CUPS bug report is about pstopdf, LP bug 382379 is about pdftops. But anyway, it is not an upstream bug of CUPS. Till From msweet at apple.com Tue Jun 9 18:45:56 2009 From: msweet at apple.com (Michael Sweet) Date: Tue, 09 Jun 2009 18:45:56 -0700 Subject: [cups.bugs] [HIGH] STR #3205: Compilation error (libpaper) and crash Message-ID: <7818-cups.bugs@news.easysw.com> [STR Closed w/Resolution] Link: http://www.cups.org/str.php?L3205 Version: 1.4-current Fix Version: 1.4-current (r8683) From msweet at apple.com Wed Jun 10 13:13:05 2009 From: msweet at apple.com (Michael Sweet) Date: Wed, 10 Jun 2009 13:13:05 -0700 Subject: [cups.bugs] [MOD] STR #3200: A misbehaving client can *crush* the scheduler Message-ID: <7819-cups.bugs@news.easysw.com> [STR Closed w/o Resolution] We are unable to resolve this problem with the information provided. If you discover new information, please file a new STR referencing this one. Link: http://www.cups.org/str.php?L3200 Version: 1.3.10 Fix Version: None From mattioli.pr at maxmara.it Thu Jun 11 02:08:02 2009 From: mattioli.pr at maxmara.it (Mattioli Pier Maria) Date: Thu, 11 Jun 2009 02:08:02 -0700 Subject: Reading control files in /var/spool/cups/c* Message-ID: <4634-cups.development@news.easysw.com> Hi, I need to know how to read information into the file c* located into /var/spool/cups/. I use python and at the moment I wrote this "test" code to read some job's information directly reading these file couse lpq and lpstat don'r report the job status and they are too slow (my cups server manage 10000 jobs per day on 200 printers). """ jobs = sys.argv[1:] cmd = "lpstat -l -P all" retcode, buf = commands.getstatusoutput(cmd) buf = [' '.join(b.split( )) for b in buf.split('\n') if b.strip()] job_list = [] for x in range(0, len(buf), 2): job_id = buf[x].split('-')[1].split(' ')[0] job_list.append(job_id) for jobid in jobs: cont = open('/var/spool/cups/c%s' % jobid, 'r').read() if not jobid in job_list\ and 'J' in cont.split('\x00\x11time-at-completed')[1].split('!')[0]\ and 'J' not in cont.split('\x00\x12time-at-processing')[1].split('\x00\x11time-at-completed')[0]: jobstatus = 'cacelled' elif not jobid in job_list: jobstatus = 'completed' elif 'J' in cont.split('\x00\x12time-at-processing')[1].split('\x00\x11time-at-completed')[0]: jobstatus = 'printing' elif '\x07no-hold\x03' in cont: jobstatus = 'waiting' else: jobstatus = 'stopped' """ As You can see I don't know how status information are written in these files. This code seems to work but doesn't show jobs in the status I called "printing". Is there any reference to the content of these control files? Can anyone tellme where is the parser for these files into the CUPS sources? Thankyou Pier From ophers at ladpc.co.il Thu Jun 11 08:11:13 2009 From: ophers at ladpc.co.il (Opher Shachar) Date: Thu, 11 Jun 2009 08:11:13 -0700 Subject: [cups.bugs] [MOD] STR #3221: POST'ing to a custom cgi fails Message-ID: <7820-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Hello, When posting to a custom cgi - i.e. /usr/share/cups/doc/foo.cgi - the scheduler does not complete the request and client hangs. The log file - loglevel debug2 - shows this: d [11/Jun/2009:16:58:41 +0300] POST /authorization.cgi d [11/Jun/2009:16:58:41 +0300] CONTENT_TYPE = application/x-www-form-urlencoded d [11/Jun/2009:16:58:41 +0300] get_file: 17 filename=/usr/share/doc/cups-1.3.7/he/authorization.cgi size=2862 d [11/Jun/2009:16:58:41 +0300] is_cgi(con=0x2b746e445270, filename="/usr/share/doc/cups-1.3.7/he/authorization.cgi", filestats=0x7fff5a006190, type=application/x-httpd-cgi) d [11/Jun/2009:16:58:41 +0300] is_cgi: Returning 1 with command="/usr/share/doc/cups-1.3.7/he/authorization.cgi" and options="(null)" d [11/Jun/2009:16:58:41 +0300] cupsdReadClient: 17 con->data_encoding=HTTP_ENCODE_LENGTH, con->data_remaining=2862, con->file=-1 notice that *con->data_remaining* has the size of the cgi file instead of Content-Length from the POST request. Looking in the code this happens in the call to get_file() at line 1595 in scheduler/client.c - function cupsdReadClient(). Regards, Opher. Link: http://www.cups.org/str.php?L3221 Version: 1.3-current From ophers at ladpc.co.il Thu Jun 11 08:19:14 2009 From: ophers at ladpc.co.il (Opher Shachar) Date: Thu, 11 Jun 2009 08:19:14 -0700 Subject: [cups.bugs] [MOD] STR #3221: POST'ing to a custom cgi fails Message-ID: <7821-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Attached file "post-to-cgi.patch"... Link: http://www.cups.org/str.php?L3221 Version: 1.3-current -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: post-to-cgi.patch URL: From ophers at ladpc.co.il Thu Jun 11 08:21:08 2009 From: ophers at ladpc.co.il (Opher Shachar) Date: Thu, 11 Jun 2009 08:21:08 -0700 Subject: [cups.bugs] [MOD] STR #3221: POST'ing to a custom cgi fails Message-ID: <7822-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Posted a patch. Granted it is yuk!! I'm not suggesting to use it ... just proof of concept. Link: http://www.cups.org/str.php?L3221 Version: 1.3-current From msweet at apple.com Thu Jun 11 09:27:02 2009 From: msweet at apple.com (Michael R Sweet) Date: Thu, 11 Jun 2009 09:27:02 -0700 Subject: [cups.development] Reading control files in /var/spool/cups/c* In-Reply-To: <4634-cups.development@news.easysw.com> References: <4634-cups.development@news.easysw.com> Message-ID: <4635-cups.development@news.easysw.com> Mattioli Pier Maria wrote: > Hi, > I need to know how to read information into the file c* located into /var/spool/cups/. The control files are IPP messages. The CUPS Python bindings (pycups) should make reading them trivial: http://cyberelk.net/tim/software/pycups/ -- ______________________________________________________________________ Michael R Sweet Senior Printing System Engineer From rojon at altern.org Thu Jun 11 14:53:44 2009 From: rojon at altern.org (Roland) Date: Thu, 11 Jun 2009 14:53:44 -0700 Subject: [cups.bugs] [LOW] STR #3222: Move Jobs moves processing jobs as stopped to destination Message-ID: <7823-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] When using jobs to another destination, the currently processed job will show up at the destination, but will not printed, due to it's state. The state of these jobs is in this case IPP_JOB_STOPPED; due to a missing restart-job the job is not easily printable after moving. Suggest the following patch for this: --- scheduler/job.c at 8704 Thu Apr 16 21:32:04 2009 +++ scheduler/job.c Fri Apr 17 13:16:14 2009 @@ -1351,6 +1351,9 @@ "Job #%d moved from %s to %s.", job->id, olddest, p->name); + if (job->state_value == IPP_JOB_STOPPED) + cupsdRestartJob(job); + cupsdSaveJob(job); } which will restart the job after moving to the new destination. Link: http://www.cups.org/str.php?L3222 Version: 1.3.10 From ophers at ladpc.co.il Sat Jun 13 05:52:20 2009 From: ophers at ladpc.co.il (Opher Shachar) Date: Sat, 13 Jun 2009 05:52:20 -0700 Subject: [cups.bugs] [MOD] STR #3221: POST'ing to a custom cgi fails Message-ID: <7824-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Attached file "post-to-cgi_v2.patch"... Link: http://www.cups.org/str.php?L3221 Version: 1.3-current -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: post-to-cgi_v2.patch URL: From ophers at ladpc.co.il Sat Jun 13 06:00:51 2009 From: ophers at ladpc.co.il (Opher Shachar) Date: Sat, 13 Jun 2009 06:00:51 -0700 Subject: [cups.bugs] [MOD] STR #3221: POST'ing to a custom cgi fails Message-ID: <7825-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] So ... researching the code it seems that it is not documented that get_file sets the value of con->http.data_remaining. It seems also that *only* the call to get_file() in `case HTTP_GET_SEND' *may* (I'm not convinced) depend on this behavior. An alternative patch attached. Link: http://www.cups.org/str.php?L3221 Version: 1.3-current From tom.km5vy at gmail.com Sat Jun 13 13:53:33 2009 From: tom.km5vy at gmail.com (Tom Russo) Date: Sat, 13 Jun 2009 13:53:33 -0700 Subject: [cups.development] [RFE] STR #3020: adminutil API option for disabling/restricting browse broadcasts Message-ID: <4636-cups.development@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] In addition to the sort of problem that was described above (user has ISP internet interface), there's another that is an issue for amateur radio operators using AX.25 networking on Linux. These ports are used to transmit information over radio, and it is pretty much always inappropriate to broadcast packets over those interfaces. Samba will do that unless you take care --- it has a mechanism where you can tell it to bind only to selected interfaces, and those of us who use AX.25 networking have learned the hard way to make sure to use it. I just learned the hard way that I must turn off CUPS's "Share published printers..." option on the machine where I have a radio attached. Adding to CUPS a "bind interfaces only" option similar to that in Samba would be a Very Good Thing. Link: http://www.cups.org/str.php?L3020 Version: -feature From ophers at ladpc.co.il Sun Jun 14 05:07:37 2009 From: ophers at ladpc.co.il (Opher Shachar) Date: Sun, 14 Jun 2009 05:07:37 -0700 Subject: [cups.bugs] [MOD] STR #3221: POST'ing to a custom cgi fails Message-ID: <7826-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Attached file "post-to-cgi_v3.patch"... Link: http://www.cups.org/str.php?L3221 Version: 1.3-current -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: post-to-cgi_v3.patch URL: From ophers at ladpc.co.il Sun Jun 14 05:14:15 2009 From: ophers at ladpc.co.il (Opher Shachar) Date: Sun, 14 Jun 2009 05:14:15 -0700 Subject: [cups.bugs] [MOD] STR #3221: POST'ing to a custom cgi fails Message-ID: <7827-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] I'm pretty sure, now, that no call to get_file() depends on it setting the value of con->http.data_remaining. (write_file() sets the value of this variable by itself) Plus, get_file() set this value erroneously since it casts to int. An alternate patch attached. Link: http://www.cups.org/str.php?L3221 Version: 1.3-current From riopedre13 at yahoo.es Sun Jun 14 12:38:21 2009 From: riopedre13 at yahoo.es (Juan Pablo González Riopedre) Date: Sun, 14 Jun 2009 12:38:21 -0700 Subject: [cups.bugs] [LOW] STR #3223: New Spanish message catalog revision Message-ID: <7828-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] New Spanish messages for rc1 version Link: http://www.cups.org/str.php?L3223 Version: 1.4-current -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: cups-r8710.patch URL: From xianyu.ge at gmail.com Sun Jun 14 22:25:47 2009 From: xianyu.ge at gmail.com (xianyu.ge) Date: Sun, 14 Jun 2009 22:25:47 -0700 Subject: How to install the virture print backend automaticly when installation Message-ID: <4637-cups.development@news.easysw.com> How to install the virture print backend automaticly when installation? I have a virture print backend that used with cups, I want it installed automaticly when installation, Anyone would hlep me will appriciate it! From keens312 at hotmail.com Mon Jun 15 02:21:18 2009 From: keens312 at hotmail.com (keens312) Date: Mon, 15 Jun 2009 02:21:18 -0700 Subject: How to install the virture print backend automaticly when installation Message-ID: <4638-cups.development@news.easysw.com> Just copy your backend to Linux OS: /usr/lib/cups/backend Macintosh: /usr/libexec/cups/backend Then you can start to use it. > How to install the virture print backend automaticly when installation? > I have a virture print backend that used with cups, I want it installed automaticly when installation, Anyone would hlep me will appriciate it! From info at productivix.com Mon Jun 15 07:04:41 2009 From: info at productivix.com (productivix) Date: Mon, 15 Jun 2009 07:04:41 -0700 Subject: Konica 2590MF and Bizhub130F driver Message-ID: <4639-cups.development@news.easysw.com> Is anyone in process to built a linux driver for one of these machines ? What would be the cost to have one for printng on 2590MF ? From msweet at apple.com Mon Jun 15 11:34:29 2009 From: msweet at apple.com (Michael Sweet) Date: Mon, 15 Jun 2009 11:34:29 -0700 Subject: [cups.bugs] [LOW] STR #3223: New Spanish message catalog revision Message-ID: <7829-cups.bugs@news.easysw.com> [STR Closed w/Resolution] Fixed in Subversion repository. Thanks! Link: http://www.cups.org/str.php?L3223 Version: 1.4-current Fix Version: 1.4-current (r8713) From msweet at apple.com Mon Jun 15 11:43:46 2009 From: msweet at apple.com (Michael Sweet) Date: Mon, 15 Jun 2009 11:43:46 -0700 Subject: [cups.bugs] [MOD] STR #3221: POST'ing to a custom cgi fails Message-ID: <7830-cups.bugs@news.easysw.com> [STR Closed w/Resolution] Fixed in Subversion repository. Link: http://www.cups.org/str.php?L3221 Version: 1.3-current Fix Version: 1.4-current (r8714) From twaugh at redhat.com Tue Jun 16 07:40:59 2009 From: twaugh at redhat.com (twaugh.redhat) Date: Tue, 16 Jun 2009 07:40:59 -0700 Subject: [cups.bugs] [MOD] STR #3226: Multi-file jobs gone after printer is disabled/enabled Message-ID: <7831-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] A job with multiple files disappears after its printer is disabled and then enabled. Original bug report here: https://bugzilla.redhat.com/show_bug.cgi?id=506257 /usr/sbin/lpadmin -p testprinter -E -v socket://127.0.0.1:9100 echo "test print 1" > print1.txt echo "test print 2" > print2.txt lp -d testprinter print1.txt print2.txt cupsdisable testprinter cupsenable testprinter lpstat -o The job is gone. A suggested patch is attached, based on a change for a similar problem that was fixed in 1.3.4. Link: http://www.cups.org/str.php?L3226 Version: 1.3.10 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 0001-Reprint-all-files-in-a-job-that-was-held-due-to-the.patch URL: From selimok at gmail.com Tue Jun 16 09:43:47 2009 From: selimok at gmail.com (selim ok) Date: Tue, 16 Jun 2009 09:43:47 -0700 Subject: [cups.bugs] [HIGH] STR #3224: AllowUser for LDAP Groups not works Message-ID: <7832-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Hi, We are using Cups 1.3.7 on RedHat Linux as print server and 1.3.10 on Fedora 9 as client. We tried to allow different (LDAP) groups to see some prin We have two ldap groups and each have to see only their own printers. So we modified printers.conf and add "AllowUser @STUD" line. But users from STUD group can not see this printer, even no one. AllowUser option works fine with usernames. The user may login on both server and client machines, also the ldap configuration is correct. And therefore i think, it is a bug in cups. There is a topic in forum with same complaint, but since ca. 4 years no body answers for this problem. If you want we can send you further details, configuration files or command outputs. Thanks. Link: http://www.cups.org/str.php?L3224 Version: 1.3.7 From selimok at gmail.com Tue Jun 16 09:43:59 2009 From: selimok at gmail.com (selim ok) Date: Tue, 16 Jun 2009 09:43:59 -0700 Subject: [cups.bugs] [HIGH] STR #3224: AllowUser for LDAP Groups not works Message-ID: <7833-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] I forget to sent the forum link about the problem: http://www.cups.org/newsgroups.php?s1+gcups.bugs+v1+T0+Qgroups Link: http://www.cups.org/str.php?L3224 Version: 1.3.7 From msweet at apple.com Tue Jun 16 15:26:49 2009 From: msweet at apple.com (Michael Sweet) Date: Tue, 16 Jun 2009 15:26:49 -0700 Subject: [cups.bugs] [LOW] STR #3227: Brother HL-5150D duplex option not working properly Message-ID: <7834-cups.bugs@news.easysw.com> [STR Closed w/o Resolution] Please contact your Linux distributor for this issue. This is not a CUPS issue, but a driver issue from your Linux distributor. Link: http://www.cups.org/str.php?L3227 Version: 1.3.9 Fix Version: Third-party From fozmeister at mac.com Wed Jun 17 01:03:58 2009 From: fozmeister at mac.com (Dave Foster) Date: Wed, 17 Jun 2009 01:03:58 -0700 Subject: 2up printing - incorrect page size? Message-ID: <4640-cups.development@news.easysw.com> Hello all, As part of an automated printing solution, I want to print a 2 page (A4 portrait) PDF/PS file onto A3 2up. However, if I say: lp -o media=A3 -o numberup=2 filename (or similar in an C Xcode project), the result is that the page size is half as big as it needs to be - i.e. the size it would be if it were printing 2up onto A4. The positioning of the pages is, however, correct. -o fit-to-page and -o scaling have no effect. Is there any way I can achieve the results I'm after? I'm trying to avoid using any other methods (printing from Acrobat etc) otherwise the automation is useless! I'm on Mac OSX 10.5.7. Many thanks, Dave From gbix73 at yahoo.com Wed Jun 17 03:13:20 2009 From: gbix73 at yahoo.com (Gabriel Bixade) Date: Wed, 17 Jun 2009 03:13:20 -0700 Subject: Custom Watermark Message-ID: <4641-cups.development@news.easysw.com> Hi everybody, How can I make CUPS to print a watermark showing the date and time of the printing job, on each document? Thanks in advance! From h.blischke at acm.org Wed Jun 17 03:19:55 2009 From: h.blischke at acm.org (Helge Blischke) Date: Wed, 17 Jun 2009 03:19:55 -0700 Subject: Custom Watermark References: <4641-cups.development@news.easysw.com> Message-ID: <4642-cups.development@news.easysw.com> Gabriel Bixade wrote: > Hi everybody, > > How can I make CUPS to print a watermark showing the date and time of the > printing job, on each document? > > Thanks in advance! You could try the altgernate pstops filter. Helge From twaugh at redhat.com Wed Jun 17 07:57:18 2009 From: twaugh at redhat.com (twaugh.redhat) Date: Wed, 17 Jun 2009 07:57:18 -0700 Subject: [cups.bugs] [HIGH] STR #3229: Templates contain HTML errors Message-ID: <7835-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] The add-printer and modify-printer templates contain an extra double-quote character in the definition of the PRINTER_IS_SHARED checkbox. This prevents the Continue button from being displayed in some browsers, notably Internet Explorer. Original report: https://bugzilla.redhat.com/show_bug.cgi?id=506461 Link: http://www.cups.org/str.php?L3229 Version: 1.4rc1 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 0001-Fixed-extra-double-quote-in-templates-RH-bug-50646.patch URL: From msweet at apple.com Wed Jun 17 08:15:02 2009 From: msweet at apple.com (Michael Sweet) Date: Wed, 17 Jun 2009 08:15:02 -0700 Subject: [cups.bugs] [MOD] STR #3228: '#' and '@' characters in printer passwords cause some errors Message-ID: <7836-cups.bugs@news.easysw.com> [STR Closed w/o Resolution] Per the URI spec (RFC 3986), # and @ in usernames and passwords MUST be percent escaped. Link: http://www.cups.org/str.php?L3228 Version: 1.3.10 Fix Version: None From msweet at apple.com Wed Jun 17 08:38:52 2009 From: msweet at apple.com (Michael Sweet) Date: Wed, 17 Jun 2009 08:38:52 -0700 Subject: [cups.development] 2up printing - incorrect page size? In-Reply-To: <4640-cups.development@news.easysw.com> References: <4640-cups.development@news.easysw.com> Message-ID: <4643-cups.development@news.easysw.com> On Jun 17, 2009, at 1:03 AM, Dave Foster wrote: > ... > Is there any way I can achieve the results I'm after? I'm trying to > avoid using any other methods (printing from Acrobat etc) otherwise > the automation is useless! I'm on Mac OSX 10.5.7. The "fit-to-page" option is not supported in CUPS 1.3.x. "fitplot" plus "number-up=2" *should* work as long as the input document includes a bounding box for us to map the input pages to the output size. ________________________________________ Michael R Sweet, Senior Printing System Engineer -------------- next part -------------- An HTML attachment was scrubbed... URL: From wh at novotechnica.com Wed Jun 17 08:41:15 2009 From: wh at novotechnica.com (Igor Godunoff) Date: Wed, 17 Jun 2009 08:41:15 -0700 Subject: [cups.bugs] [MOD] STR #3228: '#' and '@' characters in printer passwords cause some errors Message-ID: <7837-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] When using an SMB printer in CUPS, its username/password (stored in /etc/cups/printers.conf) can't contain the '#' character. If an SMB password contains the '#' character, it causes errors when trying to print to this printer (the printer URI is automatically truncated in printers.conf file and printing becomes impossible). Also the '@' character in SMB passwords are handled somewhat incorrectly (password string may be partially displayed in printer URI as plain text). Link: http://www.cups.org/str.php?L3228 Version: 1.3.10 From lovelove55b at gmail.com Wed Jun 17 08:41:17 2009 From: lovelove55b at gmail.com (Mr. Charles C. Blair) Date: Wed, 17 Jun 2009 08:41:17 -0700 Subject: [cups.bugs] [HIGH] STR #3227: Brother HL-5150D duplex option not working properly Message-ID: <7838-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Brother printer HL-5150D was installed under Ubuntu Linux 8.10 32 bit stand alone computer with no server and USB conncection, using CUPS 1.3.9. Motherboard os XFX 750aSLI nforce Several drivers and PPD file were tried using the foomatic database, but the duplex feature always prints two sided, with flip required to view the second side. This occurs whether the duplex is set to off or either of the two duplex options. Installation Notes: This motherboard required the BIOS setting of USB 1.1 using legacy support The Brother procedures and driver were tried, but the performance was very slow - several minutes per page. Link: http://www.cups.org/str.php?L3227 Version: 1.3.9 From lovelove55b at gmail.com Wed Jun 17 12:39:40 2009 From: lovelove55b at gmail.com (C. Blair) Date: Wed, 17 Jun 2009 12:39:40 -0700 Subject: [cups.bugs] [LOW] STR #3227: Brother HL-5150D duplex option not working properly In-Reply-To: <20090616222646.F19C83C684D5@dns.easysw.com> References: <20090616222646.F19C83C684D5@dns.easysw.com> Message-ID: <7839-cups.bugs@news.easysw.com> Dear Michael, i'm sure you know much more about CUPS than i do. However, i tried 4 drivers for my printer and the CUPS "Set Printer Options" was not able to affect the duplex printing on any of them. Upon reconsideration, are you sure this could not be a CUPS issue? Peace & Happiness, Charles Michael Sweet wrote: > [STR Closed w/o Resolution] > > Please contact your Linux distributor for this issue. > > This is not a CUPS issue, but a driver issue from your Linux distributor. > > Link: http://www.cups.org/str.php?L3227 > Version: 1.3.9 > Fix Version: Third-party > From msweet at apple.com Wed Jun 17 14:22:54 2009 From: msweet at apple.com (Michael R Sweet) Date: Wed, 17 Jun 2009 14:22:54 -0700 Subject: [cups.bugs] [LOW] STR #3227: Brother HL-5150D duplex option not working properly In-Reply-To: <4A394671.6020107@gmail.com> References: <20090616222646.F19C83C684D5@dns.easysw.com> <4A394671.6020107@gmail.com> Message-ID: <7840-cups.bugs@news.easysw.com> On Jun 17, 2009, at 12:39 PM, C. Blair wrote: > Dear Michael, > > i'm sure you know much more about CUPS than i do. However, i tried > 4 drivers > for my printer and the CUPS "Set Printer Options" was not able to > affect the > duplex printing on any of them. Upon reconsideration, are you sure > this could > not be a CUPS issue? Yes, quite sure, since otherwise duplex printing would be broken for all printers and that has not been reported (and I'm quite sure I'd catch that since I use duplex all the time...) The Brother printer in question supports PostScript (BRScript3), so there is no reason you can't use the vendor's Windows or Mac OS X PPD to print instead of a Foomatic PPD which adds an unnecessary layer that in my experience causes more problems than it solves... Also, recent versions of Ubuntu have adopted alternate print filters which might be (accidentally) clearing the duplex option, leading to the issues you are seeing. ____________________________________ Michael R Sweet, Senior Printing System Engineer From till.kamppeter at gmail.com Wed Jun 17 15:02:30 2009 From: till.kamppeter at gmail.com (Till Kamppeter) Date: Wed, 17 Jun 2009 15:02:30 -0700 Subject: [cups.bugs] [LOW] STR #3227: Brother HL-5150D duplex option notworking properly In-Reply-To: <7840-cups.bugs@news.easysw.com> References: <20090616222646.F19C83C684D5@dns.easysw.com> <4A394671.6020107@gmail.com> <7840-cups.bugs@news.easysw.com> Message-ID: <7841-cups.bugs@news.easysw.com> Michael R Sweet wrote: > Yes, quite sure, since otherwise duplex printing would be broken for all > printers and that has not been reported (and I'm quite sure I'd catch > that since I use duplex all the time...) > For me Duplex works very well on my HP printers on all Ubuntu versions, using HP's PostScript PPDs for PostScript printers and HPLIP for non-PostScript printers. > The Brother printer in question supports PostScript (BRScript3), so > there is no reason you can't use the vendor's Windows or Mac OS X PPD to > print instead of a Foomatic PPD which adds an unnecessary layer that in > my experience causes more problems than it solves... > For many Brother printers Ubuntu ships manufacturer-supplied PPDs which will get auto-selected if a matching printer is set up, but Brother did not update this PPD collection for longer time. So on newer printers a fallnback to a generic PostScript PPD due to the fact that the printer is marked as PostScript printer in the device ID can happen. A Generic PostScript PPD is not guaranteed to work on all PostScript printers. You can find newer Brother PPDs on http://solutions.brother.com/linux/en_us/ > Also, recent versions of Ubuntu have adopted alternate print filters > which might be (accidentally) clearing the duplex option, leading to the > issues you are seeing. From which applications or client systems are you printing? Till From keens312 at hotmail.com Wed Jun 17 19:41:43 2009 From: keens312 at hotmail.com (keens312) Date: Wed, 17 Jun 2009 19:41:43 -0700 Subject: Sticky on UI Message-ID: <4644-cups.development@news.easysw.com> Hi Michael, On Mac OSX 10.5, I expect that all the selections on the printer dialog can be memorized. So it can be used again in next print. How can the driver support like this? Currently everything is go back to default as DRV file defined. Any suggestion? From Chad.Hulbert at xerox.com Thu Jun 18 07:09:22 2009 From: Chad.Hulbert at xerox.com (Chad Hulbert) Date: Thu, 18 Jun 2009 07:09:22 -0700 Subject: [cups.development] Sticky on UI In-Reply-To: <4644-cups.development@news.easysw.com> Message-ID: <4645-cups.development@news.easysw.com> Whether or not print settings are retained between consecutive prints depends on the application's implementation. Some applications supply a clean PMPrintSettings object for each print, while others reuse the old settings. You cannot depend on either behavior. If the user wants to preserve print settings they can use Presets, which require no additional work on your part. -Chad On 6/17/09 10:41 PM, "keens312" thusly spake: > Hi Michael, > > On Mac OSX 10.5, > > I expect that all the selections on the printer dialog can be memorized. > > So it can be used again in next print. > > How can the driver support like this? Currently everything is go back to > default as DRV file defined. > > Any suggestion? > _______________________________________________ > cups-dev mailing list > cups-dev at easysw.com > http://lists.easysw.com/mailman/listinfo/cups-dev Chad Hulbert Software Engineer Xerox Corporation 1350 Jefferson Rd Rochester, NY 14623 p 585.427.329 5 (8*227.3295) From msweet at apple.com Thu Jun 18 08:18:34 2009 From: msweet at apple.com (Michael Sweet) Date: Thu, 18 Jun 2009 08:18:34 -0700 Subject: [cups.development] Sticky on UI In-Reply-To: <4644-cups.development@news.easysw.com> References: <4644-cups.development@news.easysw.com> Message-ID: <4646-cups.development@news.easysw.com> On Jun 17, 2009, at 7:41 PM, keens312 wrote: > Hi Michael, > > On Mac OSX 10.5, > > I expect that all the selections on the printer dialog can be > memorized. For printer options that is generally the case (it depends on the driver's PDE supporting this), but we don't remember page ranges, copies, etc. > So it can be used again in next print. > > How can the driver support like this? Currently everything is go > back to default as DRV file defined. For the CUPS driver, you mark the defaults in the PPD and then the options that are provided on the command-line, then check the marked PPD options. For the PDE, you need to respond to all of the required methods shown in the sample code and update your UI based on the options that are set. ________________________________________ Michael R Sweet, Senior Printing System Engineer -------------- next part -------------- An HTML attachment was scrubbed... URL: From msweet at apple.com Thu Jun 18 10:23:46 2009 From: msweet at apple.com (Michael Sweet) Date: Thu, 18 Jun 2009 10:23:46 -0700 Subject: [cups.bugs] [HIGH] STR #3229: Templates contain HTML errors Message-ID: <7842-cups.bugs@news.easysw.com> [STR Closed w/Resolution] Fixed in Subversion repository. Link: http://www.cups.org/str.php?L3229 Version: 1.4rc1 Fix Version: 1.4-current (r8717) -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: str3229.patch URL: From msweet at apple.com Thu Jun 18 10:41:20 2009 From: msweet at apple.com (Michael Sweet) Date: Thu, 18 Jun 2009 10:41:20 -0700 Subject: [cups.bugs] [LOW] STR #3225: Add Mac OS X guidelines for STATE, ATTR, and INFO/WARNING/ERROR messages Message-ID: <7843-cups.bugs@news.easysw.com> [STR Closed w/Resolution] Fixed in Subversion repository. Link: http://www.cups.org/str.php?L3225 Version: 1.4-current Fix Version: 1.4-current (r8718) From msweet at apple.com Thu Jun 18 14:23:21 2009 From: msweet at apple.com (Michael Sweet) Date: Thu, 18 Jun 2009 14:23:21 -0700 Subject: [cups.bugs] [MOD] STR #3226: Multi-file jobs gone after printer is disabled/enabled Message-ID: <7844-cups.bugs@news.easysw.com> [STR Closed w/Resolution] Fixed in Subversion repository. (Already fixed in trunk for 1.4...) Link: http://www.cups.org/str.php?L3226 Version: 1.3.10 Fix Version: 1.3-current (r8719) From msweet at apple.com Thu Jun 18 14:28:35 2009 From: msweet at apple.com (Michael Sweet) Date: Thu, 18 Jun 2009 14:28:35 -0700 Subject: [cups.bugs] [LOW] STR #3222: Move Jobs moves processing jobs as stopped to destination Message-ID: <7845-cups.bugs@news.easysw.com> [STR Closed w/Resolution] Fixed in Subversion repository. (already fixed in trunk for 1.4...) Link: http://www.cups.org/str.php?L3222 Version: 1.3.10 Fix Version: 1.3-current (r8720) -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: str3222.patch URL: From msweet at apple.com Thu Jun 18 14:30:56 2009 From: msweet at apple.com (Michael Sweet) Date: Thu, 18 Jun 2009 14:30:56 -0700 Subject: [cups.bugs] [LOW] STR #3224: AllowUser for LDAP Groups not works Message-ID: <7846-cups.bugs@news.easysw.com> [STR Closed w/o Resolution] OK, then I have no clue why this isn't working for you. We use getgrnam to lookup the group name, and if that isn't working (vs. getgrgid which is what ls and id use) then it will never work with CUPS. Please file a bug with glibc about this; maybe they can track down the cause. Link: http://www.cups.org/str.php?L3224 Version: 1.3.7 Fix Version: Third-party From msweet at apple.com Thu Jun 18 14:43:28 2009 From: msweet at apple.com (Michael Sweet) Date: Thu, 18 Jun 2009 14:43:28 -0700 Subject: [cups.bugs] [LOW] STR #3211: Scheduler does not prevent classes containing local classes. Message-ID: <7847-cups.bugs@news.easysw.com> [STR Closed w/Resolution] Fixed in Subversion repository. Link: http://www.cups.org/str.php?L3211 Version: 1.3-current Fix Version: 1.4-current (r8721) -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: str3211.patch URL: From keens312 at hotmail.com Thu Jun 18 18:59:05 2009 From: keens312 at hotmail.com (keens312) Date: Thu, 18 Jun 2009 18:59:05 -0700 Subject: Sticky on UI Message-ID: <4647-cups.development@news.easysw.com> Its a CUPS driver without PDE plugin or bundles. >From the document I learned that dynamic PPD can be used for this purpuse, but it only available for Snow Leopard or later. But for Tiger and Leopard, no easy way to make it sticky, am I correct? From msweet at apple.com Thu Jun 18 20:07:00 2009 From: msweet at apple.com (Michael R Sweet) Date: Thu, 18 Jun 2009 20:07:00 -0700 Subject: [cups.development] Sticky on UI In-Reply-To: <4647-cups.development@news.easysw.com> References: <4647-cups.development@news.easysw.com> Message-ID: <4648-cups.development@news.easysw.com> Correct. On Jun 18, 2009, at 18:59, keens312 wrote: > Its a CUPS driver without PDE plugin or bundles. > >> From the document I learned that dynamic PPD can be used for this >> purpuse, but it only available for Snow Leopard or later. > > But for Tiger and Leopard, no easy way to make it sticky, am I > correct? > _______________________________________________ > cups-dev mailing list > cups-dev at easysw.com > http://lists.easysw.com/mailman/listinfo/cups-dev From paul.grenning at gmail.com Fri Jun 19 08:12:16 2009 From: paul.grenning at gmail.com (Paul Grenning) Date: Fri, 19 Jun 2009 08:12:16 -0700 Subject: Text box within the GUI for the printer driver Message-ID: <4649-cups.development@news.easysw.com> Is it possible to create a text box instead of a drop down box within the printer options. It seems there is only a check box and a drop down box. I have a printer option that has values of 3 to 1023 and having to scroll all the way through 1020 values takes to long. So, I need a text box or something similar. From msweet at apple.com Fri Jun 19 08:48:21 2009 From: msweet at apple.com (Michael Sweet) Date: Fri, 19 Jun 2009 08:48:21 -0700 Subject: [cups.development] Text box within the GUI for the printer driver In-Reply-To: <4649-cups.development@news.easysw.com> References: <4649-cups.development@news.easysw.com> Message-ID: <4650-cups.development@news.easysw.com> On Jun 19, 2009, at 8:12 AM, Paul Grenning wrote: > Is it possible to create a text box instead of a drop down box > within the printer options. It seems there is only a check box and a > drop down box. I have a printer option that has values of 3 to 1023 > and having to scroll all the way through 1020 values takes to long. > So, I need a text box or something similar. Normal options are just "pick from a list" or boolean. Custom options can be used to allow user-entered values, but you'll still need a few choices for apps that don't support custom options. See the custom option information here: http://www.cups.org/documentation.php/spec-ppd.html ________________________________________ Michael R Sweet, Senior Printing System Engineer -------------- next part -------------- An HTML attachment was scrubbed... URL: From twaugh at redhat.com Fri Jun 19 09:30:21 2009 From: twaugh at redhat.com (twaugh.redhat) Date: Fri, 19 Jun 2009 09:30:21 -0700 Subject: [cups.bugs] [MOD] STR #3231: lpadmin from 1.4rc1 fails to admin 1.3.10 remotely Message-ID: <7848-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] I have a Fedora 10 machine (cups-1.3.10) which other Fedora 10 machines can administer remotely, i.e. this sort of thing works: lpadmin -U root -h f10-server -p foo -v /dev/null It asks for the root password and then a queue 'foo' is added. However, when trying this same command from a Fedora 11 machine (cups-1.4rc1), it fails: Password for root on f10-server? lpadmin: Service Unavailable This appears in the error_log on f10-server: D [19/Jun/2009:17:25:53 +0100] cupsdReadClient: 19 OPTIONS * HTTP/1.1 d [19/Jun/2009:17:25:53 +0100] cupsdFindBest: uri = "*"... d [19/Jun/2009:17:25:53 +0100] cupsdFindBest: Location CUPS_INTERNAL_BROWSE_ACL Limit 0 d [19/Jun/2009:17:25:53 +0100] cupsdFindBest: Location /admin/conf Limit 7f d [19/Jun/2009:17:25:53 +0100] cupsdFindBest: Location /admin Limit 7f d [19/Jun/2009:17:25:53 +0100] cupsdFindBest: Location / Limit 7f d [19/Jun/2009:17:25:53 +0100] cupsdFindBest: best = NONE d [19/Jun/2009:17:25:53 +0100] cupsdAuthorize: con->uri="*", con->best=(nil)() d [19/Jun/2009:17:25:53 +0100] cupsdAuthorize: Authorization="" D [19/Jun/2009:17:25:53 +0100] cupsdAuthorize: No authentication data provided. E [19/Jun/2009:17:26:03 +0100] encrypt_client: Unable to encrypt connection from 192.168.1.11! E [19/Jun/2009:17:26:03 +0100] encrypt_client: A TLS packet with unexpected length was received. D [19/Jun/2009:17:26:03 +0100] cupsdCloseClient: 19 The gnutls library is used for CUPS in both Fedora 10 and Fedora 11. I am still trying to investigate the cause, but wondered if you had seen any similar reports of SSL problems between 1.4rc1 and 1.3.10. Link: http://www.cups.org/str.php?L3231 Version: 1.4rc1 From franz.pfoertsch at brose.com Fri Jun 19 10:28:32 2009 From: franz.pfoertsch at brose.com (franz.pfoertsch.brose) Date: Fri, 19 Jun 2009 10:28:32 -0700 Subject: Text box within the GUI for the printerdriver Message-ID: <4651-cups.development@news.easysw.com> > > Normal options are just "pick from a list" or boolean. Custom options > can be used to allow user-entered values, but you'll still need a few > choices for apps that don't support custom options. > > See the custom option information here: > > http://www.cups.org/documentation.php/spec-ppd.html > Please give a small example to build up a ppd with custom option textfield. Which application a able to use this ppd? regards franz From msweet at apple.com Fri Jun 19 10:36:33 2009 From: msweet at apple.com (Michael R Sweet) Date: Fri, 19 Jun 2009 10:36:33 -0700 Subject: [cups.development] Text box within the GUI for the printerdriver In-Reply-To: <4651-cups.development@news.easysw.com> References: <4651-cups.development@news.easysw.com> Message-ID: <4652-cups.development@news.easysw.com> On Jun 19, 2009, at 10:28 AM, franz.pfoertsch.brose wrote: >> >> Normal options are just "pick from a list" or boolean. Custom >> options >> can be used to allow user-entered values, but you'll still need a few >> choices for apps that don't support custom options. >> >> See the custom option information here: >> >> http://www.cups.org/documentation.php/spec-ppd.html >> > Please give a small example to build up a ppd with custom option > textfield. The documentation has this already: *% Base PostScript watermark option *OpenUI WatermarkText/Watermark Text: PickOne *OrderDependency: 10 AnySetup *WatermarkText *DefaultWatermarkText: None *WatermarkText None: "" *WatermarkText Draft: "<>setpagedevice" *CloseUI: *WatermarkText *% Custom PostScript watermark option *CustomWatermarkText True: "<>setpagedevice" *ParamCustomWatermarkText Text: 1 string 0 32 > Which application a able to use this ppd? Custom options are supported in Mac OS X 10.6, the CUPS 1.4 web interface, and (IIRC) recent versions of GNOME and KDE. There is NO custom option support in the CUPS Windows driver aside from custom page sizes. > > regards > franz > _______________________________________________ > cups-dev mailing list > cups-dev at easysw.com > http://lists.easysw.com/mailman/listinfo/cups-dev ____________________________________ Michael R Sweet, Senior Printing System Engineer From paul.grenning at gmail.com Fri Jun 19 12:42:44 2009 From: paul.grenning at gmail.com (Paul Grenning) Date: Fri, 19 Jun 2009 12:42:44 -0700 Subject: Text box within the GUI for the printerdriver Message-ID: <4653-cups.development@news.easysw.com> > On Jun 19, 2009, at 10:28 AM, franz.pfoertsch.brose wrote: > >> > >> Normal options are just "pick from a list" or boolean. Custom > >> options > >> can be used to allow user-entered values, but you'll still need a few > >> choices for apps that don't support custom options. > >> > >> See the custom option information here: > >> > >> http://www.cups.org/documentation.php/spec-ppd.html > >> > > Please give a small example to build up a ppd with custom option > > textfield. > > The documentation has this already: > > *% Base PostScript watermark option > *OpenUI WatermarkText/Watermark Text: PickOne > *OrderDependency: 10 AnySetup *WatermarkText > *DefaultWatermarkText: None > *WatermarkText None: "" > *WatermarkText Draft: "<>setpagedevice" > *CloseUI: *WatermarkText > > *% Custom PostScript watermark option > *CustomWatermarkText True: "< roll>>setpagedevice" > *ParamCustomWatermarkText Text: 1 string 0 32 > > > Which application a able to use this ppd? > > Custom options are supported in Mac OS X 10.6, the CUPS 1.4 web > interface, and (IIRC) recent versions of GNOME and KDE. There is NO > custom option support in the CUPS Windows driver aside from custom > page sizes. > > > > > regards > > franz > > _______________________________________________ > > cups-dev mailing list > > cups-dev at easysw.com > > http://lists.easysw.com/mailman/listinfo/cups-dev > > ____________________________________ > Michael R Sweet, Senior Printing System Engineer > > > Will this work with cups version 1.3.10 on fedora 10 within the non web GUI? Or does it have to be 1.4? From msweet at apple.com Fri Jun 19 13:18:35 2009 From: msweet at apple.com (Michael R Sweet) Date: Fri, 19 Jun 2009 13:18:35 -0700 Subject: [cups.development] Text box within the GUI for the printerdriver In-Reply-To: <4653-cups.development@news.easysw.com> References: <4653-cups.development@news.easysw.com> Message-ID: <4654-cups.development@news.easysw.com> On Jun 19, 2009, at 12:42 PM, Paul Grenning wrote: > ... > Will this work with cups version 1.3.10 on fedora 10 within the non > web GUI? Or does it have to be 1.4? Custom options were added in CUPS 1.2.0, so as long as you have support in your desktop of choice you should be OK. Just remember that some applications (OpenOffice and any Adobe product, for example) don't use the system-supplied print UI and don't support custom options, so make sure you provide the common choices in your list of "canned" values. ____________________________________ Michael R Sweet, Senior Printing System Engineer From franz.pfoertsch at brose.com Sat Jun 20 02:10:49 2009 From: franz.pfoertsch at brose.com (franz.pfoertsch.brose) Date: Sat, 20 Jun 2009 02:10:49 -0700 Subject: Text box within the GUI for the printerdriver Message-ID: <4655-cups.development@news.easysw.com> > > The documentation has this already: > > *% Base PostScript watermark option > *OpenUI WatermarkText/Watermark Text: PickOne > *OrderDependency: 10 AnySetup *WatermarkText > *DefaultWatermarkText: None > *WatermarkText None: "" > *WatermarkText Draft: "<>setpagedevice" > *CloseUI: *WatermarkText > > *% Custom PostScript watermark option > *CustomWatermarkText True: "< roll>>setpagedevice" > *ParamCustomWatermarkText Text: 1 string 0 32 > > > Which application a able to use this ppd? > > Custom options are supported in Mac OS X 10.6, the CUPS 1.4 web > interface, and (IIRC) recent versions of GNOME and KDE. There is NO > custom option support in the CUPS Windows driver aside from custom > page sizes. > > > thanks for the information! what must be done, to get it into the CUPS Windows driver? Does it make sence to work on the windows driver kit, because the Driver DDK from Microsoft is out of date. regards Franz From fozmeister at mac.com Sat Jun 20 10:34:03 2009 From: fozmeister at mac.com (Dave Foster) Date: Sat, 20 Jun 2009 10:34:03 -0700 Subject: 2up printing - incorrect page size? Message-ID: <4656-cups.development@news.easysw.com> That's sorted it! Many thanks. Dave > On Jun 17, 2009, at 1:03 AM, Dave Foster wrote: > > ... > > Is there any way I can achieve the results I'm after? I'm trying to > > avoid using any other methods (printing from Acrobat etc) otherwise > > the automation is useless! I'm on Mac OSX 10.5.7. > > > The "fit-to-page" option is not supported in CUPS 1.3.x. "fitplot" > plus "number-up=2" *should* work as long as the input document > includes a bounding box for us to map the input pages to the output > size. > > ________________________________________ > Michael R Sweet, Senior Printing System Engineer > > > --Apple-Mail-1-657944045 > Content-Transfer-Encoding: quoted-printable > Content-Type: text/html; > charset=us-ascii > > -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; = > ">
On Jun 17, 2009, at 1:03 AM, Dave Foster = > wrote:
type=3D"cite">
...
Is= > there any way I can achieve the results I'm after? I'm trying to avoid = > using any other methods (printing from Acrobat etc) otherwise the = > automation is useless! I'm on Mac OSX = > 10.5.7.

The "fit-to-page"&= > nbsp;option is not supported in CUPS 1.3.x.&= > nbsp; "fitplot" plus "number-up=3D2" *should* work as long as the = > input document includes a bounding box for us to map the input pages to = > the output size.

> color: rgb(0, 0, 0); font-family: Monaco; font-size: 12px; font-style: = > normal; font-variant: normal; font-weight: normal; letter-spacing: = > normal; line-height: normal; orphans: 2; text-align: auto; text-indent: = > 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: = > 0px; -webkit-border-horizontal-spacing: 0px; = > -webkit-border-vertical-spacing: 0px; = > -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = > auto; -webkit-text-stroke-width: 0px; "> style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: = > Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = > font-weight: normal; letter-spacing: normal; line-height: normal; = > orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; = > widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = > -webkit-border-vertical-spacing: 0px; = > -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = > auto; -webkit-text-stroke-width: 0px; ">
break-word; -webkit-nbsp-mode: space; -webkit-line-break: = > after-white-space; = > ">
________________________________________
Michael R = > Sweet, Senior Printing System Engineer
>
>
= > > --Apple-Mail-1-657944045-- > From kaguga at gmx.de Sat Jun 20 11:22:43 2009 From: kaguga at gmx.de (Karl Gabel) Date: Sat, 20 Jun 2009 11:22:43 -0700 Subject: where/when does a notifier be called (executed) Message-ID: <4657-cups.development@news.easysw.com> Hi everybody, in 'printers.c' the 'cupsdCreateCommonData()'-function autodectets the availabale notifiers, is that right? But where (source file) executes cups the notifiers or even when, have I configure it first by myself? Thanks in advance, Karl From alex.wauck+cups at gmail.com Sat Jun 20 20:41:11 2009 From: alex.wauck+cups at gmail.com (Alexander Wauck) Date: Sat, 20 Jun 2009 20:41:11 -0700 Subject: [cups.bugs] [LOW] STR #3230: ppdClose does not clean up temporary files Message-ID: <7850-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] I now see that it is cupsGetPPD() that produces the temporary files. That should be documented. Link: http://www.cups.org/str.php?L3230 Version: 1.3.10 From alex.wauck+cups at gmail.com Sat Jun 20 20:41:10 2009 From: alex.wauck+cups at gmail.com (Alexander Wauck) Date: Sat, 20 Jun 2009 20:41:10 -0700 Subject: [cups.bugs] [LOW] STR #3230: ppdClose does not clean up temporary files Message-ID: <7849-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] ppdOpenFile makes a copy of the PPD in /tmp. ppdClose does not delete it. The attached program will leave files in /tmp after running. Link: http://www.cups.org/str.php?L3230 Version: 1.3.10 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: leaves-tmp-files.c URL: From msweet at apple.com Sat Jun 20 20:49:45 2009 From: msweet at apple.com (Michael R Sweet) Date: Sat, 20 Jun 2009 20:49:45 -0700 Subject: [cups.development] Text box within the GUI for the printerdriver In-Reply-To: <4655-cups.development@news.easysw.com> References: <4655-cups.development@news.easysw.com> Message-ID: <4658-cups.development@news.easysw.com> franz.pfoertsch.brose wrote: > ... > thanks for the information! > > what must be done, to get it into the CUPS Windows driver? I think the only way to do it would be to replace the Windows PostScript driver entirely. > Does it make sence to work on the windows driver kit, because the Driver DDK from Microsoft is out of date. That is the only way to develop a Windows printer driver, so yes we have to continue working with the Windows DDK. -- ______________________________________________________________________ Michael R Sweet Senior Printing System Engineer From msweet at apple.com Sat Jun 20 20:51:05 2009 From: msweet at apple.com (Michael R Sweet) Date: Sat, 20 Jun 2009 20:51:05 -0700 Subject: [cups.development] where/when does a notifier be called (executed) In-Reply-To: <4657-cups.development@news.easysw.com> References: <4657-cups.development@news.easysw.com> Message-ID: <4659-cups.development@news.easysw.com> Karl Gabel wrote: > Hi everybody, > > in 'printers.c' the 'cupsdCreateCommonData()'-function autodectets the > availabale notifiers, is that right? > But where (source file) executes cups the notifiers or even when, have I configure it first by myself? scheduler/subscriptions.c handles running the notifier when there are events to be sent. -- ______________________________________________________________________ Michael R Sweet Senior Printing System Engineer From franz.pfoertsch at brose.com Sun Jun 21 05:26:21 2009 From: franz.pfoertsch at brose.com (franz.pfoertsch.brose) Date: Sun, 21 Jun 2009 05:26:21 -0700 Subject: Text box within the GUI for the printerdriver Message-ID: <4660-cups.development@news.easysw.com> > franz.pfoertsch.brose wrote: > > ... > > thanks for the information! > > > > what must be done, to get it into the CUPS Windows driver? > > I think the only way to do it would be to replace the Windows > PostScript driver entirely. who can do something like this? If we exchange the well known, well tested and robust MS Postscript driver, we could run into new problems. In my opinion only a companie like apple could do something like this! > > > Does it make sence to work on the windows driver kit, because the Driver DDK from Microsoft is out of date. > > That is the only way to develop a Windows printer driver, so yes we > have to continue working with the Windows DDK. but what's going on with vista, windows 7 and so on? Are vista and windows 7 using the classic windows postscript driver? does this work sence? From franz.pfoertsch at brose.com Sun Jun 21 06:49:55 2009 From: franz.pfoertsch at brose.com (franz.pfoertsch.brose) Date: Sun, 21 Jun 2009 06:49:55 -0700 Subject: Text box within the GUI for the printerdriver Message-ID: <4661-cups.development@news.easysw.com> > > franz.pfoertsch.brose wrote: > > > ... > > > thanks for the information! > > > > > > what must be done, to get it into the CUPS Windows driver? > > > > I think the only way to do it would be to replace the Windows > > PostScript driver entirely. which part did you ment? ps5ui.dll pscript.hlp pscript.ntf pscript5.dll or the hole? > who can do something like this? > If we exchange the well known, well tested and robust MS Postscript driver, we could run into new problems. > > In my opinion only a companie like apple could do something like this! > > > > > Does it make sence to work on the windows driver kit, because the Driver DDK from Microsoft is out of date. > > > > That is the only way to develop a Windows printer driver, so yes we > > have to continue working with the Windows DDK. > but what's going on with vista, windows 7 and so on? > Are vista and windows 7 using the classic windows postscript driver? > does this work sence? > From bayvista at internode.on.net Sun Jun 21 10:46:28 2009 From: bayvista at internode.on.net (david Liell) Date: Sun, 21 Jun 2009 10:46:28 -0700 Subject: [cups.bugs] [HIGH] STR #3232: Canon LBP3100 will not print Message-ID: <7851-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] After installing the official Canon Drivers, printer still will not print. Link: http://www.cups.org/str.php?L3232 Version: 1.3.9 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: printerdetect.txt URL: From opus9743 at gmail.com Sun Jun 21 10:46:29 2009 From: opus9743 at gmail.com (david Liell) Date: Sun, 21 Jun 2009 10:46:29 -0700 Subject: [cups.bugs] [HIGH] STR #3233: Canon LBP3100 will not print Message-ID: <7852-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] After installing Canon drivers, printer refuses to print Link: http://www.cups.org/str.php?L3233 Version: 1.3.9 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: printerdetect.txt URL: From msweet at apple.com Sun Jun 21 10:47:48 2009 From: msweet at apple.com (Michael Sweet) Date: Sun, 21 Jun 2009 10:47:48 -0700 Subject: [cups.bugs] [LOW] STR #3233: Canon LBP3100 will not print Message-ID: <7853-cups.bugs@news.easysw.com> [STR Closed w/o Resolution] Dupe of STR #3232 Link: http://www.cups.org/str.php?L3233 Version: 1.3.9 Fix Version: None From msweet at apple.com Sun Jun 21 10:48:47 2009 From: msweet at apple.com (Michael Sweet) Date: Sun, 21 Jun 2009 10:48:47 -0700 Subject: [cups.bugs] [LOW] STR #3232: Canon LBP3100 will not print Message-ID: <7854-cups.bugs@news.easysw.com> [STR Closed w/o Resolution] Please contact Canon for this issue. Link: http://www.cups.org/str.php?L3232 Version: 1.3.9 Fix Version: Third-party From msweet at apple.com Sun Jun 21 11:26:24 2009 From: msweet at apple.com (Michael R Sweet) Date: Sun, 21 Jun 2009 11:26:24 -0700 Subject: [cups.development] Text box within the GUI for the printerdriver In-Reply-To: <4660-cups.development@news.easysw.com> References: <4660-cups.development@news.easysw.com> Message-ID: <4662-cups.development@news.easysw.com> On Jun 21, 2009, at 5:26, "franz.pfoertsch.brose" wrote: >> franz.pfoertsch.brose wrote: >>> ... >>> thanks for the information! >>> >>> what must be done, to get it into the CUPS Windows driver? >> >> I think the only way to do it would be to replace the Windows >> PostScript driver entirely. > who can do something like this? > If we exchange the well known, well tested and robust MS Postscript > driver, we could run into new problems. > > In my opinion only a companie like apple could do something like this! Most companies contract this out... >> >>> Does it make sence to work on the windows driver kit, because the >>> Driver DDK from Microsoft is out of date. >> >> That is the only way to develop a Windows printer driver, so yes we >> have to continue working with the Windows DDK. > but what's going on with vista, windows 7 and so on? > Are vista and windows 7 using the classic windows postscript driver? > does this work sence? The same driver is used since 2000. > From msweet at apple.com Sun Jun 21 11:28:24 2009 From: msweet at apple.com (Michael R Sweet) Date: Sun, 21 Jun 2009 11:28:24 -0700 Subject: [cups.development] Text box within the GUI for the printerdriver In-Reply-To: <4661-cups.development@news.easysw.com> References: <4661-cups.development@news.easysw.com> Message-ID: <4663-cups.development@news.easysw.com> On Jun 21, 2009, at 6:49, "franz.pfoertsch.brose" wrote: >>> franz.pfoertsch.brose wrote: >>>> ... >>>> thanks for the information! >>>> >>>> what must be done, to get it into the CUPS Windows driver? >>> >>> I think the only way to do it would be to replace the Windows >>> PostScript driver entirely. > which part did you ment? > ps5ui.dll > pscript.hlp > pscript.ntf > pscript5.dll > > or the hole? The whole thing. From msweet at apple.com Mon Jun 22 13:45:00 2009 From: msweet at apple.com (Michael Sweet) Date: Mon, 22 Jun 2009 13:45:00 -0700 Subject: [cups.bugs] [LOW] STR #3230: Document temporary file behavior of cupsGetPPD Message-ID: <7855-cups.bugs@news.easysw.com> [STR Closed w/Resolution] Fixed in Subversion repository. Link: http://www.cups.org/str.php?L3230 Version: 1.4-current Fix Version: 1.4-current (r8725) From msweet at apple.com Mon Jun 22 13:45:44 2009 From: msweet at apple.com (Michael Sweet) Date: Mon, 22 Jun 2009 13:45:44 -0700 Subject: [cups.bugs] [LOW] STR #3156: Oki 9-pin series resolution issue Message-ID: <7856-cups.bugs@news.easysw.com> [STR Closed w/o Resolution] This STR has not been updated by the submitter for two or more weeks and has been closed as required by the CUPS Configuration Management Plan. If the issue still requires resolution, please re-submit a new STR. Link: http://www.cups.org/str.php?L3156 Version: 1.4-current From paul.grenning at gmail.com Mon Jun 22 14:19:25 2009 From: paul.grenning at gmail.com (Paul Grenning) Date: Mon, 22 Jun 2009 14:19:25 -0700 Subject: Text box within the GUI for the printerdriver Message-ID: <4664-cups.development@news.easysw.com> > > > > The documentation has this already: > > > > *% Base PostScript watermark option > > *OpenUI WatermarkText/Watermark Text: PickOne > > *OrderDependency: 10 AnySetup *WatermarkText > > *DefaultWatermarkText: None > > *WatermarkText None: "" > > *WatermarkText Draft: "<>setpagedevice" > > *CloseUI: *WatermarkText > > > > *% Custom PostScript watermark option > > *CustomWatermarkText True: "< > roll>>setpagedevice" > > *ParamCustomWatermarkText Text: 1 string 0 32 > > > > > Which application a able to use this ppd? > > > > Custom options are supported in Mac OS X 10.6, the CUPS 1.4 web > > interface, and (IIRC) recent versions of GNOME and KDE. There is NO > > custom option support in the CUPS Windows driver aside from custom > > page sizes. > > > > > > thanks for the information! > > what must be done, to get it into the CUPS Windows driver? > Does it make sence to work on the windows driver kit, because the Driver DDK from Microsoft is out of date. > > regards > Franz To make these custom options work where would I use ppdFindCustomOption if at all? I have tried copying your example into my ppd file and nothing appeared so I assume I need to change more than just the ppd file to allow custom options. From msweet at apple.com Mon Jun 22 14:23:48 2009 From: msweet at apple.com (Michael R Sweet) Date: Mon, 22 Jun 2009 14:23:48 -0700 Subject: [cups.development] Text box within the GUI for the printerdriver In-Reply-To: <4664-cups.development@news.easysw.com> References: <4664-cups.development@news.easysw.com> Message-ID: <4665-cups.development@news.easysw.com> On Jun 22, 2009, at 2:19 PM, Paul Grenning wrote: > ... > To make these custom options work where would I use > ppdFindCustomOption if at all? I have tried copying your example > into my ppd file and nothing appeared so I assume I need to change > more than just the ppd file to allow custom options. Where are you trying to use them? What version of CUPS do you have? What operating system/Linux distribution are you using? If Linux, what desktop and version? ____________________________________ Michael R Sweet, Senior Printing System Engineer From paul.grenning at gmail.com Mon Jun 22 14:38:52 2009 From: paul.grenning at gmail.com (Paul Grenning) Date: Mon, 22 Jun 2009 14:38:52 -0700 Subject: Text box within the GUI for the printerdriver Message-ID: <4666-cups.development@news.easysw.com> > On Jun 22, 2009, at 2:19 PM, Paul Grenning wrote: > > ... > > To make these custom options work where would I use > > ppdFindCustomOption if at all? I have tried copying your example > > into my ppd file and nothing appeared so I assume I need to change > > more than just the ppd file to allow custom options. > > > Where are you trying to use them? > > What version of CUPS do you have? > > What operating system/Linux distribution are you using? > > If Linux, what desktop and version? > > ____________________________________ > Michael R Sweet, Senior Printing System Engineer > > > I am using cups version 1.3.10 and Fedora 10. I tried modifying the "zebra.ppd" file. I was able to add normal options and groups, but not custom options. -Paul From msweet at apple.com Mon Jun 22 16:00:03 2009 From: msweet at apple.com (Michael R Sweet) Date: Mon, 22 Jun 2009 16:00:03 -0700 Subject: [cups.development] Text box within the GUI for the printerdriver In-Reply-To: <4666-cups.development@news.easysw.com> References: <4666-cups.development@news.easysw.com> Message-ID: <4667-cups.development@news.easysw.com> On Jun 22, 2009, at 2:38 PM, Paul Grenning wrote: > ... > I am using cups version 1.3.10 and Fedora 10. I tried modifying the > "zebra.ppd" file. I was able to add normal options and groups, but > not custom options. I'm not sure that any of the GUIs in Fedora 10 support custom options, nor will the CUPS web interface. From the command-line you should be able to do: lp -d printer -o Option=Custom.1234 filename to print using a custom value. ____________________________________ Michael R Sweet, Senior Printing System Engineer From jsmeix at suse.de Tue Jun 23 05:20:58 2009 From: jsmeix at suse.de (Johannes Meixner) Date: Tue, 23 Jun 2009 05:20:58 -0700 Subject: [cups.development] How to install the virture print backend automaticly when installation In-Reply-To: <4638-cups.development@news.easysw.com> References: <4638-cups.development@news.easysw.com> Message-ID: <4668-cups.development@news.easysw.com> Hello, On Jun 15 02:21 keens312 wrote (shortened): > Just copy your backend to > Linux OS: /usr/lib/cups/backend > Macintosh: /usr/libexec/cups/backend > > Then you can start to use it. To be on the safe side for Linux install to $(cups-config --serverbin)/backend which evaluates depending on the architecture and on the particular Linux distribution to /usr/lib/cups/backend /usr/lib64/cups/backend /usr/lib32/cups/backend Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany AG Nuernberg, HRB 16746, GF: Markus Rex From consultsuman at yahoo.com Tue Jun 23 07:12:36 2009 From: consultsuman at yahoo.com (sumanth) Date: Tue, 23 Jun 2009 07:12:36 -0700 Subject: [cups.bugs] [HIGH] STR #3234: "Browsing off", he can preset paper orientation via CUPS queues does not work with "Brwosing on" Message-ID: <7857-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] printer is an HP LaserJet 2420dn OS Redhat 5.3 Why does landscape mode work via CUPS queues with "browsing off", but not with "browsing on"? Is this just coincidence, that it works this way at all? configuration as described here: http://en.opensuse.org/SDB:Print_Settings_with_CUPS So, at least with "Browsing off", he can preset paper orientation via CUPS queues. Any idea, why it does not work with "Brwosing on"? Link: http://www.cups.org/str.php?L3234 Version: 1.3.7 From msweet at apple.com Tue Jun 23 07:18:22 2009 From: msweet at apple.com (Michael Sweet) Date: Tue, 23 Jun 2009 07:18:22 -0700 Subject: [cups.bugs] [LOW] STR #3234: "Browsing off", he can preset paper orientation via CUPS queues does not work with "Brwosing on" Message-ID: <7858-cups.bugs@news.easysw.com> [STR Closed w/o Resolution] General support is not available via the STR form. Please post to the CUPS forums and/or mailing lists for general support. Link: http://www.cups.org/str.php?L3234 Version: 1.3.7 Fix Version: None From xianyu.ge at gmail.com Tue Jun 23 19:57:20 2009 From: xianyu.ge at gmail.com (xianyu.ge) Date: Tue, 23 Jun 2009 19:57:20 -0700 Subject: How to install the virture print backend automaticly when installation Message-ID: <4669-cups.development@news.easysw.com> > Just copy your backend to > Linux OS: /usr/lib/cups/backend > Macintosh: /usr/libexec/cups/backend > > Then you can start to use it. > > > How to install the virture print backend automaticly when installation? > > I have a virture print backend that used with cups, I want it installed automaticly when installation, Anyone would hlep me will appriciate it! > Sorry for my ambiguous sentence, I just to want to know how to add print such as use "System Preferences", and click the "add print "button, I would like to implement it use codes or script, please point me, any advance is appreciate. From j.paul.landers at gmail.com Wed Jun 24 08:47:03 2009 From: j.paul.landers at gmail.com (Paul Landers) Date: Wed, 24 Jun 2009 08:47:03 -0700 Subject: [cups.development] [RFE] STR #3236: Clarify web interface Message-ID: <4670-cups.development@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Propose replacing "Allow printing from the Internet" to more specific "Allow printing from other networks" or similar Link: http://www.cups.org/str.php?L3236 Version: -feature From j.paul.landers at gmail.com Wed Jun 24 08:47:29 2009 From: j.paul.landers at gmail.com (Paul Landers) Date: Wed, 24 Jun 2009 08:47:29 -0700 Subject: [cups.bugs] [HIGH] STR #3235: Option "Allow Printing from the Internet" cannot be cleared from web interface Message-ID: <7859-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Debian Lenny 5.0 CUPS 1.3.8 Start with the default cupsd.conf Select "Share Published Printers connected to this system" Select "Allow printing from the Internet" Click "change settings" Deselect "Share Published Printers connected to this system" Deselect "Allow printing from the Internet" Click "Change Settings." Bug: the box "Allow printing from the Internet" remains selected, and "All all" remains in in cupsd.conf Link: http://www.cups.org/str.php?L3235 Version: 1.3.8 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: cupsd.conf.txt URL: From msweet at apple.com Wed Jun 24 10:50:48 2009 From: msweet at apple.com (Michael Sweet) Date: Wed, 24 Jun 2009 10:50:48 -0700 Subject: [cups.bugs] [MOD] STR #3237: Source file in download section has wrong md5sum and is broken Message-ID: <7860-cups.bugs@news.easysw.com> [STR Closed w/Resolution] OK, I've regenerated the file and updated things with the correct MD5 sum. Link: http://www.cups.org/str.php?L3237 Version: Web Site Fix Version: Web Site From justin.huang at liteon.com Thu Jun 25 01:49:38 2009 From: justin.huang at liteon.com (Justin Huang) Date: Thu, 25 Jun 2009 01:49:38 -0700 Subject: How to avoid multiple access to USB Message-ID: <4671-cups.development@news.easysw.com> Hi Experts, We plan to develop a Mac application to do something that requires communicating with printer via printer bulk. I think it is necessary to do some protection to prevent the application from accessing the printer while there are print jobs. Are there any methods I can do for this purpose? Thanks~ From msweet at apple.com Thu Jun 25 07:12:19 2009 From: msweet at apple.com (Michael Sweet) Date: Thu, 25 Jun 2009 07:12:19 -0700 Subject: [cups.development] How to avoid multiple access to USB In-Reply-To: <4671-cups.development@news.easysw.com> References: <4671-cups.development@news.easysw.com> Message-ID: <4672-cups.development@news.easysw.com> The proper way to do this is to write a CUPS filter that communicates with the printer (via the backend) and then your app can just sent control commands as print jobs that are interpreted by your filter. This method also has the advantage of allowing your normal print filters to provide status back to your user app. If you *must* communicate directly, IOKit will only allow 1 program to claim an interface at any given time, so you don't need to add any additional protections. On Jun 25, 2009, at 1:49 AM, Justin Huang wrote: > Hi Experts, > We plan to develop a Mac application to do something that requires > communicating with printer via printer bulk. I think it is necessary > to do some protection to prevent the application from accessing the > printer while there are print jobs. > > Are there any methods I can do for this purpose? > > Thanks~ > _______________________________________________ > cups-dev mailing list > cups-dev at easysw.com > http://lists.easysw.com/mailman/listinfo/cups-dev ________________________________________ Michael R Sweet, Senior Printing System Engineer -------------- next part -------------- An HTML attachment was scrubbed... URL: From maciej.blizinski at gmail.com Thu Jun 25 07:17:10 2009 From: maciej.blizinski at gmail.com (Maciej Bliziński) Date: Thu, 25 Jun 2009 07:17:10 -0700 Subject: [cups.bugs] [MOD] STR #3237: Source file in download section has wrong md5sum and is broken Message-ID: <7861-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] The download page claims the md5sum for cups-1.3.9-source.tar.bz2 is cf63f451c356e6cabb08972d4d11c365. I've tried verifying that and: $ wget http://ftp.easysw.com/pub/cups/1.3.9/cups-1.3.9-source.tar.bz2 --18:04:48-- http://ftp.easysw.com/pub/cups/1.3.9/cups-1.3.9-source.tar.bz2 => `cups-1.3.9-source.tar.bz2' Resolving ftp.easysw.com... 208.96.52.102 Connecting to ftp.easysw.com|208.96.52.102|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3,993,875 (3.8M) [application/x-bzip2] 100%[================================================================================================================================================================================================>] 3,993,875 227.21K/s ETA 00:00 18:05:17 (139.57 KB/s) - `cups-1.3.9-source.tar.bz2' saved [3993875/3993875] $ md5sum cups-1.3.9-source.tar.bz2 eb16843844131b3d9f5c223a564ad81e cups-1.3.9-source.tar.bz2 $ file cups-1.3.9-source.tar.bz2 cups-1.3.9-source.tar.bz2: bzip2 compressed data, block size = 900k $ bzip2 -t cups-1.3.9-source.tar.bz2 bzip2: cups-1.3.9-source.tar.bz2: data integrity (CRC) error in data You can use the `bzip2recover' program to attempt to recover data from undamaged sections of corrupted files. It seems to me that the mirror sites contain the broken file as well. Link: http://www.cups.org/str.php?L3237 Version: 1.3.9 From ozan at pardus.org.tr Thu Jun 25 14:34:37 2009 From: ozan at pardus.org.tr (=?UTF-8?B?T3phbiDDh2HEn2xheWFu?=) Date: Thu, 25 Jun 2009 14:34:37 -0700 Subject: [cups.development] Troubles with CUPS > 1.3.9 and Qt 4.x applications Message-ID: <4673-cups.development@news.easysw.com> Hi, We're having some troubles with CUPS > 1.3.9 and Qt 4.x applications in Pardus Linux[0]. Printing from Gnome applications, lpr, pycups, cups web interface are all working well except from Qt4 applications. I tried with: - A patched CUPS 1.3.10 which contains fixes for: STR 3167: * http://cvs.fedoraproject.org/viewvc/F-10/cups/cups-str3167.patch?view=co Accept "Host: ::1": * http://cvs.fedoraproject.org/viewvc/F-10/cups/cups-localhost-ipv6.patch?view=co - A vanilla 1.3.10, - A vanilla branch-1.3.x, - A vanilla 1.4rc1 with: - completely removing the ServerName localhost line from /etc/cups/client.conf, - leaving it, - replacing it with ServerName /var/run/cups/cups.sock None of them works. I'll try to describe the problem: I open kwrite or okular or konqueror, or a very simple 5-line Qt4 application which prints "Hello world!". Here's the cups error_log: D [25/Jun/2009:20:09:43 -0400] cupsdAcceptClient: 9 from localhost (Domain) D [25/Jun/2009:20:09:43 -0400] Report: clients=1 D [25/Jun/2009:20:09:43 -0400] Report: jobs=3 D [25/Jun/2009:20:09:43 -0400] Report: jobs-active=0 D [25/Jun/2009:20:09:43 -0400] Report: printers=1 D [25/Jun/2009:20:09:43 -0400] Report: printers-implicit=0 D [25/Jun/2009:20:09:43 -0400] Report: stringpool-string-count=1087 D [25/Jun/2009:20:09:43 -0400] Report: stringpool-alloc-bytes=7952 D [25/Jun/2009:20:09:43 -0400] Report: stringpool-total-bytes=22312 D [25/Jun/2009:20:09:43 -0400] cupsdReadClient: 9 POST / HTTP/1.1 D [25/Jun/2009:20:09:43 -0400] cupsdAuthorize: No authentication data provided. D [25/Jun/2009:20:09:43 -0400] CUPS-Get-Printers D [25/Jun/2009:20:09:43 -0400] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok) D [25/Jun/2009:20:09:43 -0400] cupsdReadClient: 9 POST / HTTP/1.1 D [25/Jun/2009:20:09:43 -0400] cupsdAuthorize: No authentication data provided. D [25/Jun/2009:20:09:43 -0400] CUPS-Get-Classes D [25/Jun/2009:20:09:43 -0400] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok) D [25/Jun/2009:20:09:43 -0400] cupsdReadClient: 9 POST / HTTP/1.1 D [25/Jun/2009:20:09:43 -0400] cupsdAuthorize: No authentication data provided. D [25/Jun/2009:20:09:43 -0400] CUPS-Get-Default D [25/Jun/2009:20:09:43 -0400] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok) D [25/Jun/2009:20:09:43 -0400] cupsdCloseClient: 9 D [25/Jun/2009:20:09:43 -0400] cupsdAcceptClient: 9 from localhost (Domain) D [25/Jun/2009:20:09:43 -0400] cupsdReadClient: 9 POST / HTTP/1.1 D [25/Jun/2009:20:09:43 -0400] cupsdAuthorize: No authentication data provided. D [25/Jun/2009:20:09:43 -0400] CUPS-Get-Printers D [25/Jun/2009:20:09:43 -0400] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok) D [25/Jun/2009:20:09:43 -0400] cupsdReadClient: 9 POST / HTTP/1.1 D [25/Jun/2009:20:09:43 -0400] cupsdAuthorize: No authentication data provided. D [25/Jun/2009:20:09:43 -0400] CUPS-Get-Classes D [25/Jun/2009:20:09:43 -0400] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok) D [25/Jun/2009:20:09:43 -0400] cupsdReadClient: 9 POST / HTTP/1.1 D [25/Jun/2009:20:09:43 -0400] cupsdAuthorize: No authentication data provided. D [25/Jun/2009:20:09:43 -0400] CUPS-Get-Default D [25/Jun/2009:20:09:43 -0400] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok) D [25/Jun/2009:20:09:43 -0400] cupsdCloseClient: 9 D [25/Jun/2009:20:09:43 -0400] cupsdAcceptClient: 9 from localhost (Domain) D [25/Jun/2009:20:09:43 -0400] cupsdReadClient: 9 POST / HTTP/1.1 D [25/Jun/2009:20:09:43 -0400] cupsdAuthorize: No authentication data provided. D [25/Jun/2009:20:09:43 -0400] Get-Printer-Attributes ipp://localhost/printers/ML-1610 D [25/Jun/2009:20:09:43 -0400] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok) D [25/Jun/2009:20:09:43 -0400] cupsdReadClient: 9 GET /printers/ML-1610.ppd HTTP/1.1 D [25/Jun/2009:20:09:43 -0400] cupsdAuthorize: No authentication data provided. D [25/Jun/2009:20:09:43 -0400] cupsdAcceptClient: 13 from localhost (Domain) ... ... A bunch of lines which are very similar to the above block ... ... D [25/Jun/2009:20:09:45 -0400] Get-Printer-Attributes ipp://localhost/printers/ML-1610 D [25/Jun/2009:20:09:45 -0400] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok) D [25/Jun/2009:20:09:45 -0400] cupsdReadClient: 9 GET /printers/ML-1610.ppd HTTP/1.1 D [25/Jun/2009:20:09:45 -0400] cupsdAuthorize: No authentication data provided. D [25/Jun/2009:20:09:45 -0400] cupsdCloseClient: 9 D [25/Jun/2009:20:09:45 -0400] cupsdAcceptClient: 9 from localhost (Domain) D [25/Jun/2009:20:09:45 -0400] cupsdReadClient: 9 POST /printers/ML-1610 HTTP/1.1 D [25/Jun/2009:20:09:45 -0400] cupsdAuthorize: No authentication data provided. D [25/Jun/2009:20:09:45 -0400] Print-Job ipp://localhost/printers/ML-1610 D [25/Jun/2009:20:09:45 -0400] [Job ???] Auto-typing file... I [25/Jun/2009:20:09:45 -0400] [Job ???] Request file type is application/pdf. D [25/Jun/2009:20:09:45 -0400] Print-Job client-error-document-format-not-supported: Unsupported format 'application/pdf'! D [25/Jun/2009:20:09:45 -0400] cupsdProcessIPPRequest: 9 status_code=40a (client-error-document-format-not-supported) D [25/Jun/2009:20:10:08 -0400] cupsdCloseClient: 9 I [26/Jun/2009:00:21:30 -0400] Listening to ::1:631 (IPv6) I [26/Jun/2009:00:21:30 -0400] Listening to 127.0.0.1:631 (IPv4) I [26/Jun/2009:00:21:30 -0400] Listening to /var/run/cups/cups.sock (Domain) ... Whether you try to print a plain/text, or a pdf or an image/png, it doesn't matter, it borks about application/pdf. Detach the printer, and it says the same things. So what's the difference between other apps? When other apps send a job to the queue, nearly same lines are printed *but* with a difference: D [25/Jun/2009:20:09:45 -0400] cupsdAcceptClient: 9 from localhost (Domain) (From KDE/Qt 4.x applications) becomes D [25/Jun/2009:20:09:45 -0400] cupsdAcceptClient: 9 from localhost:631 (IPv6) (Rest of the world) and then no unsupported format/client-error-document-format-not-supported error, everything prints well. ----------------- Should I blame Qt applications, CUPS or my setup? How can I further debug the issue? Is there anyone who can reproduce the issue? I wrote a very simple Qt4 application which triggers the problem: http://svn.pardus.org.tr/pardus/playground/ozan/qt-cups/ Thanks a lot Ozan Caglayan [0]: http://www.pardus.org.tr/eng From msweet at apple.com Thu Jun 25 14:43:51 2009 From: msweet at apple.com (Michael Sweet) Date: Thu, 25 Jun 2009 14:43:51 -0700 Subject: [cups.development] Troubles with CUPS > 1.3.9 and Qt 4.x applications In-Reply-To: <4A43ED60.2000907@pardus.org.tr> References: <4A43ED60.2000907@pardus.org.tr> Message-ID: <4674-cups.development@news.easysw.com> Off the top of my head, have you verified that the other applications are also sending application/pdf? A missing (pdftops) filter could very well cause this problem. On Jun 25, 2009, at 2:34 PM, Ozan ?a?layan wrote: > Hi, > > We're having some troubles with CUPS > 1.3.9 and Qt 4.x applications > in Pardus Linux[0]. Printing from Gnome applications, lpr, pycups, > cups web interface are all working well except from Qt4 applications. ________________________________________ Michael R Sweet, Senior Printing System Engineer -------------- next part -------------- An HTML attachment was scrubbed... URL: From jsmeix at suse.de Fri Jun 26 04:59:33 2009 From: jsmeix at suse.de (jsmeix.suse) Date: Fri, 26 Jun 2009 04:59:33 -0700 Subject: [cups.bugs] [HIGH] STR #3238: DNS rebinding protection regression because "::1" is not allowed Message-ID: <7862-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] For the primary bug report see https://bugzilla.novell.com/show_bug.cgi?id=516511 I run CUPS 1.3.10 on an openSUSE 11.1 i586 system. In CUPS 1.3.9 the command lpoptions -h localhost -p -l works on my openSUSE 11.1 workstation. But in CUPS 1.3.10 the command results a "lpoptions: Unable to get PPD file for lj1220: Bad Request" error message but the command lpoptions -p -l still works. Setting "ServerAlias *" in /etc/cups/cupsd.conf does not help. The command lpoptions -h localhost -p -l results in /var/log/cups/error_log there is the warning W ... Request from "localhost" using invalid Host: field "::1" but "::1" is the IPv6 loopback IP address for "localhost". The attached cups-1.3.10-fix-DNS-rebinding-protection.patch fixes the issue by adding "::1" in scheduler/client.c to the whitelist of IP addresses for "localhost" which are allowed in any case for connections via the loopback interface. This solves the issue at least for me but I do not have the full understanding if it is really a correct solution in particular because other commands like lpadmin -h localhost ... work well with CUPS 1.3.10 on my openSUSE 11.1 workstation even without the patch. Link: http://www.cups.org/str.php?L3238 Version: 1.3.10 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: cups-1.3.10-fix-DNS-rebinding-protection.patch URL: From martin.deluca at gruposame.com Fri Jun 26 07:09:30 2009 From: martin.deluca at gruposame.com (Martin Deluca) Date: Fri, 26 Jun 2009 07:09:30 -0700 Subject: Filter PCL jobs Message-ID: <4675-cups.development@news.easysw.com> Hi, My scenario is the described below: I've configured a printer in my CUPS Server. Then I print from a Windows machine through an LPR connection pointing to the CUPS queue (this windows configuration uses a PCL driver). Windows ----> CUPS Server ----> Printer (LPR) PCL I want to modify the job in the CUPS Server before it's sent to the printer. Using a PS driver instead of PCL I can do it using CUPS Filters but with PCL the CUPS is receiving the job and it's going directly to the backend without using any filter. Any idea?? Thanks in advance! Martin. From msweet at apple.com Fri Jun 26 08:23:01 2009 From: msweet at apple.com (Michael Sweet) Date: Fri, 26 Jun 2009 08:23:01 -0700 Subject: [cups.bugs] [HIGH] STR #3238: DNS rebinding protection regression because "::1" is not allowed Message-ID: <7863-cups.bugs@news.easysw.com> [STR Closed w/Resolution] Dupe of STR #3164. In short, we weren't bracketing numeric IPv6 addresses like we are supposed to (otherwise you can't specify a port number and be unambiguous since the separator for both IPv6 and port numbers is the colon...) Link: http://www.cups.org/str.php?L3238 Version: 1.3.10 Fix Version: 1.3.11 From msweet at apple.com Fri Jun 26 08:40:09 2009 From: msweet at apple.com (Michael Sweet) Date: Fri, 26 Jun 2009 08:40:09 -0700 Subject: [cups.development] Filter PCL jobs In-Reply-To: <4675-cups.development@news.easysw.com> References: <4675-cups.development@news.easysw.com> Message-ID: <4676-cups.development@news.easysw.com> On Jun 26, 2009, at 7:09 AM, Martin Deluca wrote: > ... > I want to modify the job in the CUPS Server before it's sent to the > printer. Using a PS driver instead of PCL I can do it using CUPS > Filters but with PCL the CUPS is receiving the job and it's going > directly to the backend without using any filter. > > Any idea?? You need to add your own PCL filter and add a MIME type and filter definition (.convs) file for it. ________________________________________ Michael R Sweet, Senior Printing System Engineer -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff.chua.linux at gmail.com Sat Jun 27 23:43:47 2009 From: jeff.chua.linux at gmail.com (Jeff Chua) Date: Sat, 27 Jun 2009 23:43:47 -0700 Subject: [cups.bugs] [BUG] cannot set JobRetryInterval in cups-1.3.9 In-Reply-To: <498A08D4.8070307@apple.com> References: <49653BE8.7080506@apple.com> <498A0693.7060508@apple.com> <498A08D4.8070307@apple.com> Message-ID: <7864-cups.bugs@news.easysw.com> On Thu, Feb 5, 2009 at 5:29 AM, Michael R Sweet wrote: Michael, I've been trying to fine-tune cups to make JobRetryInterval more precise. It seems the current scheduler is waiting for 10 seconds instead of taking the value of JobRetryInterval as defined in cupsd.conf Attached a patch that works with cups-1.4rc1. It included debugs [JJ] so that you can use "tail -f error_log" to look at the exact delays between job. Also, I've subtracted 1 second from set_hold_until() so that the job will be printed on the "next timeout" since timeout always add 1 second at the end for cases where the scheduler wakes up same time as the job-held that happened to be ready to be printed. Without the patch, there's always 2 seconds extra delay between retries for JobRetryInterval = 8. Thanks, Jeff. -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-holdtime Type: application/octet-stream Size: 2406 bytes Desc: not available URL: From jeff.chua.linux at gmail.com Sun Jun 28 02:40:54 2009 From: jeff.chua.linux at gmail.com (Jeff Chua) Date: Sun, 28 Jun 2009 02:40:54 -0700 Subject: [cups.bugs] Unable to reserve port: Resource temporarily unavailable Message-ID: <7865-cups.bugs@news.easysw.com> " Unable to reserve port: Resource temporarily unavailable" ... this came CUPS trying to print 2000 jobs, which printer1 is just local network printer printing to localhost (127.0.0.1). for((i = 0; i < 2000; i++)) do date | lpr -Pprinter1 done Which kernek parameters I can modify to increase network resources? Or it is CUPS? Thanks, Jeff. From franz.pfoertsch at brose.com Sun Jun 28 06:00:57 2009 From: franz.pfoertsch at brose.com (franz.pfoertsch.brose) Date: Sun, 28 Jun 2009 06:00:57 -0700 Subject: Text box within the GUI for the printerdriver Message-ID: <4677-cups.development@news.easysw.com> > If we exchange the well known, well tested and robust MS Postscript > > driver, we could run into new problems. > > > > In my opinion only a companie like apple could do something like this! > > Most companies contract this out... > What is your solution or idea to get the custom settings into the windows driver? regards Franz From msweet at apple.com Sun Jun 28 09:12:59 2009 From: msweet at apple.com (Michael Sweet) Date: Sun, 28 Jun 2009 09:12:59 -0700 Subject: [cups.bugs] Unable to reserve port: Resource temporarily unavailable In-Reply-To: References: Message-ID: <7866-cups.bugs@news.easysw.com> On Jun 28, 2009, at 2:40 AM, Jeff Chua wrote: > " Unable to reserve port: Resource temporarily unavailable" ... this > came CUPS trying to print 2000 jobs, which printer1 is just local > network printer printing to localhost (127.0.0.1). Um, where are you seeing this error? The CUPS lpr command will never try to reserve a port, and with 1 printer you should never see the CUPS lpd backend produce it, either. FWIW, port reservation tries to use a privileged port (< 1024), however NFS and other system services will use up many of them. LPD normally uses ports 721 through 731 as "source" ports (515 is the destination), so if none of those ports are available (because other processes are bound to them - "netstat -an" will show them) you won't be able to print via LPD with the default settings... ________________________________________ Michael R Sweet, Senior Printing System Engineer -------------- next part -------------- An HTML attachment was scrubbed... URL: From msweet at apple.com Sun Jun 28 09:16:56 2009 From: msweet at apple.com (Michael Sweet) Date: Sun, 28 Jun 2009 09:16:56 -0700 Subject: [cups.development] Text box within the GUI for the printerdriver In-Reply-To: <4677-cups.development@news.easysw.com> References: <4677-cups.development@news.easysw.com> Message-ID: <4678-cups.development@news.easysw.com> On Jun 28, 2009, at 6:00 AM, franz.pfoertsch.brose wrote: >> If we exchange the well known, well tested and robust MS Postscript >>> driver, we could run into new problems. >>> >>> In my opinion only a companie like apple could do something like >>> this! >> >> Most companies contract this out... >> > What is your solution or idea to get the custom settings into the > windows driver? At this point the only ideas I have are that a) it will require a completely new driver and b) I don't want to be the one to write it :) ________________________________________ Michael R Sweet, Senior Printing System Engineer -------------- next part -------------- An HTML attachment was scrubbed... URL: From keens312 at hotmail.com Sun Jun 28 18:59:07 2009 From: keens312 at hotmail.com (keens312) Date: Sun, 28 Jun 2009 18:59:07 -0700 Subject: Two-Sided dispear in Microsoft Office 2008 on Mac OSX 10.5 Message-ID: <4679-cups.development@news.easysw.com> Hi Michael, With the CUPS driver we developered, most of the Mac App works great for duplex. The Two-Sided checkbox is generated by system default PDEs. But on Office 2008, there is no such a checkbox, how can user print duplex? Is this a Office 2008 issue or Mac OSX? Thanks Keene From jeff.chua.linux at gmail.com Mon Jun 29 00:25:19 2009 From: jeff.chua.linux at gmail.com (Jeff Chua) Date: Mon, 29 Jun 2009 00:25:19 -0700 Subject: [cups.bugs] Unable to reserve port: Resource temporarily unavailable In-Reply-To: References: Message-ID: <7867-cups.bugs@news.easysw.com> On Mon, Jun 29, 2009 at 12:12 AM, Michael Sweet wrote: > On Jun 28, 2009, at 2:40 AM, Jeff Chua wrote: > > " Unable to reserve port: Resource temporarily unavailable" ... this > came CUPS trying to print 2000 jobs, which printer1 is just local > network printer printing to localhost (127.0.0.1). > where?are?you?seeing?this?error? # cat /usr/adm/cups/error_log I [28/Jun/2009:17:32:08 +0800] [Job 161927307] Adding start banner page "none". I [28/Jun/2009:17:32:08 +0800] [Job 161927307] Queued on "file" by "root". I [28/Jun/2009:17:32:08 +0800] [Job 161927307] File of type text/plain queued by "root". I [28/Jun/2009:17:32:08 +0800] [Job 161927307] Adding end banner page "none". I [28/Jun/2009:17:32:08 +0800] [Job 161927307] Started filter /etc/cups/interfaces/file (PID 347) E [28/Jun/2009:17:32:08 +0800] [Job 161924484] Unable to reserve port: Resource temporarily unavailable I [28/Jun/2009:17:32:08 +0800] [Job 161927307] Completed successfully. > The CUPS lpr command will never try to reserve a port, and with 1 printer > you should never see the CUPS lpd backend produce it, either. FWIW, > port reservation tries to I just send 2000 jobs to the local printer as in ... # for((i = 0; i < 2000; i++)) # do # date | lpr -Plp # done # lpstat -t device for lp: lpd://lp/file # lp has IP 127.0.01 # filter for "lp" is just a "cat" command # "netstat -an" shows many of ... tcp 0 0 0.0.0.0:512 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:513 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:514 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:515 0.0.0.0:* LISTEN Full log attached. # /etc/xinetd.conf service printer { flags = NODELAY KEEPALIVE socket_type = stream protocol = tcp wait = no user = lp server = /usr/lib/cups/daemon/cups-lpd server_args = -o document-format=application/octet-stream instances = 90000 cps = 90000 1 } -------------- next part -------------- A non-text attachment was scrubbed... Name: x Type: application/octet-stream Size: 43983 bytes Desc: not available URL: From martin.deluca at gruposame.com Mon Jun 29 04:07:03 2009 From: martin.deluca at gruposame.com (Martin Deluca) Date: Mon, 29 Jun 2009 04:07:03 -0700 Subject: Filter PCL jobs Message-ID: <4680-cups.development@news.easysw.com> > You need to add your own PCL filter and add a MIME type and filter > definition (.convs) file for it. > Thanks for your help Michael! I found the mime type application/vnd.cups-raw that has the rule: contains(0,4096,"LANGUAGE=PCL") Looking the job trace from wireshark I review that the PJL job header already contains this string, then it should apply to the PCL jobs. Then, I added in the mime.convs the next line: application/vnd.cups-raw application/vnd.cups-postscript 66 myFilter.sh Then I restarted the CUPS Server. But the filter is not being called. I have no idea about how to check the mime type. The CUPS log is not telling it to me, jsut saying that the job is going to the backend correctly without pass through any filter. Do you know how can I check it? Thanks in advance, Martin. From h.blischke at acm.org Mon Jun 29 04:24:13 2009 From: h.blischke at acm.org (Helge Blischke) Date: Mon, 29 Jun 2009 04:24:13 -0700 Subject: Filter PCL jobs References: <4680-cups.development@news.easysw.com> Message-ID: <4681-cups.development@news.easysw.com> Martin Deluca wrote: > >> You need to add your own PCL filter and add a MIME type and filter >> definition (.convs) file for it. >> > > > Thanks for your help Michael! > > I found the mime type application/vnd.cups-raw that has the rule: > contains(0,4096,"LANGUAGE=PCL") > > Looking the job trace from wireshark I review that the PJL job header > already contains this string, then it should apply to the PCL jobs. > > Then, I added in the mime.convs the next line: > > application/vnd.cups-raw application/vnd.cups-postscript 66 myFilter.sh > > Then I restarted the CUPS Server. > But the filter is not being called. I have no idea about how to check the > mime type. The CUPS log is not telling it to me, jsut saying that the job > is going to the backend correctly without pass through any filter. Do you > know how can I check it? > > Thanks in advance, > > Martin. By design "application/vnd.cups-raw" jobs are forwyrded directly to the respective backend. Define e.g.a mime type application/pcl prn contains(0,4096,"LANGUAGE=PCL") and a conversion rule application/pcl application/[vnd.cups-]postscript 66 myFilter.sh in the respecive files (better, in your one my.types and my.convs). As "pcl" sorts lesically before "vnd", this will work without modifying the rest. In the conversion rule, obmit the part I set in brackets, if you need to fed your filter's output into the pstops filter as well. Helge From twaugh at redhat.com Mon Jun 29 05:22:18 2009 From: twaugh at redhat.com (twaugh.redhat) Date: Mon, 29 Jun 2009 05:22:18 -0700 Subject: [cups.bugs] [LOW] STR #3239: snmp backend should verify hostname in device URI Message-ID: <7868-cups.bugs@news.easysw.com> DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] When the snmp backend is given a device URI by a printer it may not have the correct hostname in. Example: https://bugzilla.redhat.com/show_bug.cgi?id=506803 Could the snmp backend verify that the hostname can be resolved, and if not replace it with the IP address it used for the SNMP query? Link: http://www.cups.org/str.php?L3239 Version: 1.4rc1 From martin.deluca at gruposame.com Mon Jun 29 06:23:24 2009 From: martin.deluca at gruposame.com (Martin Deluca) Date: Mon, 29 Jun 2009 06:23:24 -0700 Subject: Filter PCL jobs Message-ID: <4682-cups.development@news.easysw.com> > Martin Deluca wrote: > > > > >> You need to add your own PCL filter and add a MIME type and filter > >> definition (.convs) file for it. > >> > > > > > > Thanks for your help Michael! > > > > I found the mime type application/vnd.cups-raw that has the rule: > > contains(0,4096,"LANGUAGE=PCL") > > > > Looking the job trace from wireshark I review that the PJL job header > > already contains this string, then it should apply to the PCL jobs. > > > > Then, I added in the mime.convs the next line: > > > > application/vnd.cups-raw application/vnd.cups-postscript 66 myFilter.sh > > > > Then I restarted the CUPS Server. > > But the filter is not being called. I have no idea about how to check the > > mime type. The CUPS log is not telling it to me, jsut saying that the job > > is going to the backend correctly without pass through any filter. Do you > > know how can I check it? > > > > Thanks in advance, > > > > Martin. > > By design "application/vnd.cups-raw" jobs are forwyrded directly to the > respective backend. > Define e.g.a mime type > application/pcl prn contains(0,4096,"LANGUAGE=PCL") > and a conversion rule > application/pcl application/[vnd.cups-]postscript 66 myFilter.sh > in the respecive files (better, in your one my.types and my.convs). > As "pcl" sorts lesically before "vnd", this will work without modifying > the rest. > In the conversion rule, obmit the part I set in brackets, if you need > to fed your filter's output into the pstops filter as well. > > Helge > Thanks Helge, it's working properly now. From martin.deluca at gruposame.com Mon Jun 29 06:23:27 2009 From: martin.deluca at gruposame.com (Martin Deluca) Date: Mon, 29 Jun 2009 06:23:27 -0700 Subject: Filter PCL jobs Message-ID: <4683-cups.development@news.easysw.com> > Martin Deluca wrote: > > > > >> You need to add your own PCL filter and add a MIME type and filter > >> definition (.convs) file for it. > >> > > > > > > Thanks for your help Michael! > > > > I found the mime type application/vnd.cups-raw that has the rule: > > contains(0,4096,"LANGUAGE=PCL") > > > > Looking the job trace from wireshark I review that the PJL job header > > already contains this string, then it should apply to the PCL jobs. > > > > Then, I added in the mime.convs the next line: > > > > application/vnd.cups-raw application/vnd.cups-postscript 66 myFilter.sh > > > > Then I restarted the CUPS Server. > > But the filter is not being called. I have no idea about how to check the > > mime type. The CUPS log is not telling it to me, jsut saying that the job > > is going to the backend correctly without pass through any filter. Do you > > know how can I check it? > > > > Thanks in advance, > > > > Martin. > > By design "application/vnd.cups-raw" jobs are forwyrded directly to the > respective backend. > Define e.g.a mime type > application/pcl prn contains(0,4096,"LANGUAGE=PCL") > and a conversion rule > application/pcl application/[vnd.cups-]postscript 66 myFilter.sh > in the respecive files (better, in your one my.types and my.convs). > As "pcl" sorts lesically before "vnd", this will work without modifying > the rest. > In the conversion rule, obmit the part I set in brackets, if you need > to fed your filter's output into the pstops filter as well. > > Helge > Thanks Helge, it's working properly now. From msweet at apple.com Mon Jun 29 08:28:38 2009 From: msweet at apple.com (Michael Sweet) Date: Mon, 29 Jun 2009 08:28:38 -0700 Subject: [cups.development] Two-Sided dispear in Microsoft Office 2008 on Mac OSX 10.5 In-Reply-To: <4679-cups.development@news.easysw.com> References: <4679-cups.development@news.easysw.com> Message-ID: <4684-cups.development@news.easysw.com> On Jun 28, 2009, at 6:59 PM, keens312 wrote: > ... > But on Office 2008, there is no such a checkbox, how can user print > duplex? > > Is this a Office 2008 issue or Mac OSX? Office. ________________________________________ Michael R Sweet, Senior Printing System Engineer -------------- next part -------------- An HTML attachment was scrubbed... URL: From geoffr at cs.umd.edu Mon Jun 29 19:01:49 2009 From: geoffr at cs.umd.edu (Geoff Ransom) Date: Mon, 29 Jun 2009 19:01:49 -0700 Subject: blank page on some print jobs Message-ID: <7869-cups.bugs@news.easysw.com> Hello Since upgrading the a cups print server from RHEL 3 to RHEL 4, we have some printers that keep printing out a blank page along with the print job. Most of the failures were due to a PPD or PC print driver that no longer matched the printer after some were moved or replaced. RHEL 3 was more forgiving than RHEL 4. I seem to have one printer, a HP 5SI mx, that is still constantly having this problem. I have tried disabling ps_accounting in /etc/foomatic/filter.conf and still get the behavior, though I also still also get page_log entries for it. Would turning off ps_accounting option disable page_log entries? (Indicating that my change was to something not in use by this printer) When searching for info, I noticed mention of some *cups variables in the PPD files that affect behavior. We have not set any of these intentionally in our PPD files, and the only one defined in this particular PPD is... # grep -i cups ps1151.ppd *cupsICCProfile RGB../sRGB Matching Profile: "/Library/Printers/hp/Profiles/sRGB_A.icc" Are there other known causes of this that I could check out? Thanks. From till.kamppeter at gmail.com Tue Jun 30 00:39:41 2009 From: till.kamppeter at gmail.com (Till Kamppeter) Date: Tue, 30 Jun 2009 00:39:41 -0700 Subject: blank page on some print jobs In-Reply-To: <7869-cups.bugs@news.easysw.com> References: <7869-cups.bugs@news.easysw.com> Message-ID: <7870-cups.bugs@news.easysw.com> Geoff Ransom wrote: > Hello > Since upgrading the a cups print server from RHEL 3 to RHEL 4, we have some printers that keep printing out a blank page along with the print job. Most of > the failures were due to a PPD or PC print driver that no longer matched the printer after some were moved or replaced. RHEL 3 was more forgiving than RHEL 4. > > I seem to have one printer, a HP 5SI mx, that is still constantly having this problem. I have tried disabling ps_accounting in /etc/foomatic/filter.conf and still get the behavior, though I also still also get page_log entries for it. > > Would turning off ps_accounting option disable page_log entries? (Indicating that my change was to something not in use by this printer) > > When searching for info, I noticed mention of some *cups variables in the PPD files that affect behavior. We have not set any of these intentionally in our PPD files, and the only one defined in this particular PPD is... > > # grep -i cups ps1151.ppd > *cupsICCProfile RGB../sRGB Matching Profile: "/Library/Printers/hp/Profiles/sRGB_A.icc" Changes in /etc/foomatic/... have only any effect if the print queue actually uses Foomatic (with a "*cupsFilter:" setting foomatic-rip as the filter. Your PPD does not have such a line (PostScript printer). So Foomatic changes are not relevant for your print queue. Till From ettl.martin at gmx.de Tue Jun 30 11:52:52 2009 From: ettl.martin at gmx.de (Martin Ettl) Date: Tue, 30 Jun 2009 11:52:52 -0700 Subject: [cups.development] found a resource leak in file socket.c Message-ID: <4685-cups.development@news.easysw.com> Hi all, i have checked the sources of cups with the static code analysis tool cppcheck. It found a resource leak in file socket.c at line 259. The tool prints the following output: [cups-1.3.10/backend/socket.c:259]: (error) Resource leak: print_fd Take a look at the sourcecode to line 259: ..... if ((addrlist = httpAddrGetList(hostname, AF_UNSPEC, portname)) == NULL) { _cupsLangPrintf(stderr, _("ERROR: Unable to locate printer \'%s\'!\n"), hostname); 259 return (CUPS_BACKEND_STOP); } ..... Indeed, the file is never closed. A possible fix could be: ..... if ((addrlist = httpAddrGetList(hostname, AF_UNSPEC, portname)) ==NULL) { _cupsLangPrintf(stderr, _("ERROR: Unable to locate printer\'%s '!\n"), hostname); close(print_fd); return (CUPS_BACKEND_STOP); } ...... Best regards Ettl Martin -- Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate f?r nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02 From h.blischke at acm.org Tue Jun 30 12:10:18 2009 From: h.blischke at acm.org (Helge Blischke) Date: Tue, 30 Jun 2009 12:10:18 -0700 Subject: [cups.development] found a resource leak in file socket.c References: <4685-cups.development@news.easysw.com> Message-ID: <4686-cups.development@news.easysw.com> Martin Ettl wrote: > Hi all, > > i have checked the sources of cups with the static code analysis tool > cppcheck. It found a resource leak in file socket.c at line 259. The tool > prints the following output: > > [cups-1.3.10/backend/socket.c:259]: (error) Resource leak: print_fd > > Take a look at the sourcecode to line 259: > > .... > if ((addrlist = httpAddrGetList(hostname, AF_UNSPEC, portname)) == NULL) > { > _cupsLangPrintf(stderr, _("ERROR: Unable to locate printer > \'%s\'!\n"), > hostname); > 259 return (CUPS_BACKEND_STOP); > } > .... > > Indeed, the file is never closed. A possible fix could be: > > .... > if ((addrlist = httpAddrGetList(hostname, AF_UNSPEC, portname)) ==NULL) > { > _cupsLangPrintf(stderr, _("ERROR: Unable to locate printer\'%s '!\n"), > hostname); > close(print_fd); > return (CUPS_BACKEND_STOP); > } > ..... > > > Best regards > > Ettl Martin I think that isn't really a resource leak, as any open file descriptors are cclosed on exit by default. Helge From ettl.martin at gmx.de Tue Jun 30 13:04:37 2009 From: ettl.martin at gmx.de (Ettl Martin) Date: Tue, 30 Jun 2009 13:04:37 -0700 Subject: found a resource leak in file socket.c Message-ID: <4687-cups.development@news.easysw.com> > Martin Ettl wrote: > > > Hi all, > > > > i have checked the sources of cups with the static code analysis tool > > cppcheck. It found a resource leak in file socket.c at line 259. The tool > > prints the following output: > > > > [cups-1.3.10/backend/socket.c:259]: (error) Resource leak: print_fd > > > > Take a look at the sourcecode to line 259: > > > > .... > > if ((addrlist = httpAddrGetList(hostname, AF_UNSPEC, portname)) == NULL) > > { > > _cupsLangPrintf(stderr, _("ERROR: Unable to locate printer > > \'%s\'!\n"), > > hostname); > > 259 return (CUPS_BACKEND_STOP); > > } > > .... > > > > Indeed, the file is never closed. A possible fix could be: > > > > .... > > if ((addrlist = httpAddrGetList(hostname, AF_UNSPEC, portname)) ==NULL) > > { > > _cupsLangPrintf(stderr, _("ERROR: Unable to locate printer\'%s '!\n"), > > hostname); > > close(print_fd); > > return (CUPS_BACKEND_STOP); > > } > > ..... > > > > > > Best regards > > > > Ettl Martin > > I think that isn't really a resource leak, as any open file descriptors are > cclosed on exit by default. > > Helge > I agree with you that they are closed when the programm terminates. But (no offense) it is a bad programming style, but this is only my opinion. Best regards Martin From ettl.martin at gmx.de Tue Jun 30 13:10:04 2009 From: ettl.martin at gmx.de (Ettl Martin) Date: Tue, 30 Jun 2009 13:10:04 -0700 Subject: found a resource leak in file socket.c Message-ID: <4688-cups.development@news.easysw.com> > Martin Ettl wrote: > > > Hi all, > > > > i have checked the sources of cups with the static code analysis tool > > cppcheck. It found a resource leak in file socket.c at line 259. The tool > > prints the following output: > > > > [cups-1.3.10/backend/socket.c:259]: (error) Resource leak: print_fd > > > > Take a look at the sourcecode to line 259: > > > > .... > > if ((addrlist = httpAddrGetList(hostname, AF_UNSPEC, portname)) == NULL) > > { > > _cupsLangPrintf(stderr, _("ERROR: Unable to locate printer > > \'%s\'!\n"), > > hostname); > > 259 return (CUPS_BACKEND_STOP); > > } > > .... > > > > Indeed, the file is never closed. A possible fix could be: > > > > .... > > if ((addrlist = httpAddrGetList(hostname, AF_UNSPEC, portname)) ==NULL) > > { > > _cupsLangPrintf(stderr, _("ERROR: Unable to locate printer\'%s '!\n"), > > hostname); > > close(print_fd); > > return (CUPS_BACKEND_STOP); > > } > > ..... > > > > > > Best regards > > > > Ettl Martin > > I think that isn't really a resource leak, as any open file descriptors are > cclosed on exit by default. > > Helge > BTW, this is a real resource leak! See at definition: http://en.wikipedia.org/wiki/Resource_leak Best regards Martin From msweet at apple.com Tue Jun 30 13:39:54 2009 From: msweet at apple.com (Michael R Sweet) Date: Tue, 30 Jun 2009 13:39:54 -0700 Subject: [cups.development] found a resource leak in file socket.c In-Reply-To: <20090630185237.80610@gmx.net> References: <20090630185237.80610@gmx.net> Message-ID: <4689-cups.development@news.easysw.com> Martin Ettl wrote: > Hi all, > > i have checked the sources of cups with the static code analysis tool cppcheck. It found a resource leak in file socket.c at line 259. The tool prints the following output: > > [cups-1.3.10/backend/socket.c:259]: (error) Resource leak: print_fd > > Take a look at the sourcecode to line 259: Indeed, the backend does not close a file before it exits... However, since the OS is good about closing file descriptors on exit (and freeing all memory that was used, etc.), this is not a bug. (I'd file a bug against cppcheck - return from main is equivalent to exit, so resource leaks like this should never be reported...) -- ______________________________________________________________________ Michael R Sweet Senior Printing System Engineer From msweet at apple.com Tue Jun 30 13:46:21 2009 From: msweet at apple.com (Michael R Sweet) Date: Tue, 30 Jun 2009 13:46:21 -0700 Subject: [cups.development] found a resource leak in file socket.c In-Reply-To: <4688-cups.development@news.easysw.com> References: <4688-cups.development@news.easysw.com> Message-ID: <4690-cups.development@news.easysw.com> Ettl Martin wrote: > ... > BTW, this is a real resource leak! > See at definition: > http://en.wikipedia.org/wiki/Resource_leak Right, because if it is in Wikipedia it *must* be true! This will not be "fixed", since it is not a bug. You can argue about coding style, but the fact is that the OS can reclaim files, memory, and other resources a LOT faster on exit than a program can, with no side-effects. -- ______________________________________________________________________ Michael R Sweet Senior Printing System Engineer From ettl.martin at gmx.de Tue Jun 30 13:56:47 2009 From: ettl.martin at gmx.de (Martin Ettl) Date: Tue, 30 Jun 2009 13:56:47 -0700 Subject: [cups.development] found a resource leak in file socket.c In-Reply-To: <4A4A798A.1010109@apple.com> References: <4688-cups.development@news.easysw.com> <4A4A798A.1010109@apple.com> Message-ID: <4691-cups.development@news.easysw.com> > absolutely ;-) > -------- Original-Nachricht -------- > Datum: Tue, 30 Jun 2009 13:46:02 -0700 > Von: Michael R Sweet > An: "Mirror of cups.development Newsgroup" > Betreff: Re: [cups.development] found a resource leak in file socket.c > Ettl Martin wrote: > > ... > > BTW, this is a real resource leak! > > See at definition: > > http://en.wikipedia.org/wiki/Resource_leak > > > Right, because if it is in Wikipedia it *must* be true! > > > This will not be "fixed", since it is not a bug. You can argue about > coding style, but the fact is that the OS can reclaim files, memory, > and other resources a LOT faster on exit than a program can, with no > side-effects. > > -- > ______________________________________________________________________ > Michael R Sweet Senior Printing System Engineer > > _______________________________________________ > cups-dev mailing list > cups-dev at easysw.com > http://lists.easysw.com/mailman/listinfo/cups-dev -- Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate f?r nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02 From ettl.martin at gmx.de Tue Jun 30 14:13:26 2009 From: ettl.martin at gmx.de (Ettl Martin) Date: Tue, 30 Jun 2009 14:13:26 -0700 Subject: Dangerous usage of strncat, possible buffer overrun in file usb-darwin.c Message-ID: <4692-cups.development@news.easysw.com> Hello all, i have checked the sources of cups with the static code analysis tool cppcheck. It found an issue in file usb-darwin.c and printed the following output: [cups-1.3.10/backend/usb-darwin.c:1039]: (all) Dangerous usage of strncat, possible buffer overrun Take a look at the code: static Boolean list_device_cb(void *refcon, io_service_t obj) { ..... if (deviceIDString != NULL) { CFStringRef make = NULL, model = NULL, serial = NULL; char uristr[1024], makestr[1024], modelstr[1024], serialstr[1024]; char optionsstr[1024], idstr[1024], make_modelstr[1024]; ..... 1039 strncat(uristr, optionsstr, sizeof(uristr)); ..... } } } strncat is wrong used here.strncat appends the sizeof(uristr) (here 1024) characters of optionsstr to uristr, plus a terminating null-character. If the length of the C string in source is less than num, only the content up to the terminating null-character is copied. So, this is a possible situation where a buffer overrun can happen. Reference: http://www.cplusplus.com/reference/clibrary/cstring/strncat/ Best regards Ettl Martin From ettl.martin at gmx.de Tue Jun 30 14:36:21 2009 From: ettl.martin at gmx.de (Ettl Martin) Date: Tue, 30 Jun 2009 14:36:21 -0700 Subject: found a memory leak in cups/http.c Message-ID: <4693-cups.development@news.easysw.com> Hi all, i have checked the sources of cups with the static code analysis tool cppcheck. It found a memory leak in file http.c at line 2769 and printed the following message: [cups-1.3.10/cups/http.c:2769]: (all) Memory leak: conn Take a look at file http.c at line 2769: if ((gnutls_handshake(conn->session)) != GNUTLS_E_SUCCESS) { http->error = errno; http->status = HTTP_ERROR; 2769 return (-1); } Indeed, the pointer memory, where conn points to, is not freed at line 2769. Best regards Ettl Martin From msweet at apple.com Tue Jun 30 14:50:48 2009 From: msweet at apple.com (Michael R Sweet) Date: Tue, 30 Jun 2009 14:50:48 -0700 Subject: [cups.development] Dangerous usage of strncat, possible buffer overrun in file usb-darwin.c In-Reply-To: <4692-cups.development@news.easysw.com> References: <4692-cups.development@news.easysw.com> Message-ID: <4694-cups.development@news.easysw.com> Ettl Martin wrote: > Hello all, > > i have checked the sources of cups with the static code analysis tool cppcheck. It found an issue in file usb-darwin.c and printed the following output: > > > [cups-1.3.10/backend/usb-darwin.c:1039]: (all) Dangerous usage of strncat, possible buffer overrun > > Take a look at the code: Please file bugs here: http://www.cups.org/str.php In this case, it is extremely unlikely that we'd come close to using the all of the space in uristr anyways - make, model, and serial come from the device ID, which is the same size... The code should be using strlcat, obviously. -- ______________________________________________________________________ Michael R Sweet Senior Printing System Engineer From msweet at apple.com Tue Jun 30 14:52:28 2009 From: msweet at apple.com (Michael R Sweet) Date: Tue, 30 Jun 2009 14:52:28 -0700 Subject: [cups.development] found a memory leak in cups/http.c In-Reply-To: <4693-cups.development@news.easysw.com> References: <4693-cups.development@news.easysw.com> Message-ID: <4695-cups.development@news.easysw.com> Ettl Martin wrote: > Hi all, > > i have checked the sources of cups with the static code analysis tool cppcheck. It found a memory leak in file http.c at line 2769 and printed the following message: > > [cups-1.3.10/cups/http.c:2769]: (all) Memory leak: conn > > > Take a look at file http.c at line 2769: > > if ((gnutls_handshake(conn->session)) != GNUTLS_E_SUCCESS) > { > http->error = errno; > http->status = HTTP_ERROR; > > 2769 return (-1); > } > > Indeed, the pointer memory, where conn points to, is not freed at line 2769. Please file bugs here: http://www.cups.org/str.php Thank you! -- ______________________________________________________________________ Michael R Sweet Senior Printing System Engineer From ettl.martin at gmx.de Tue Jun 30 15:02:19 2009 From: ettl.martin at gmx.de (Ettl Martin) Date: Tue, 30 Jun 2009 15:02:19 -0700 Subject: found a memory leak in cups/http.c Message-ID: <7871-cups.bugs@news.easysw.com> Hi all, i have checked the sources of cups with the static code analysis tool cppcheck. It found a memory leak in file http.c at line 2769 and printed the following message: [cups-1.3.10/cups/http.c:2769]: (all) Memory leak: conn Take a look at file http.c at line 2769: if ((gnutls_handshake(conn->session)) != GNUTLS_E_SUCCESS) { http->error = errno; http->status = HTTP_ERROR; 2769 return (-1); } Indeed, the pointer memory, where conn points to, is not freed at line 2769. Best regards Ettl Martin From ettl.martin at gmx.de Tue Jun 30 15:04:09 2009 From: ettl.martin at gmx.de (Ettl Martin) Date: Tue, 30 Jun 2009 15:04:09 -0700 Subject: Dangerous usage of strncat, possible buffer overrun in file usb-darwin.c Message-ID: <7872-cups.bugs@news.easysw.com> Hello all, i have checked the sources of cups with the static code analysis tool cppcheck. It found an issue in file usb-darwin.c and printed the following output: [cups-1.3.10/backend/usb-darwin.c:1039]: (all) Dangerous usage of strncat, possible buffer overrun Take a look at the code: static Boolean list_device_cb(void *refcon, io_service_t obj) { ..... if (deviceIDString != NULL) { CFStringRef make = NULL, model = NULL, serial = NULL; char uristr[1024], makestr[1024], modelstr[1024], serialstr[1024]; char optionsstr[1024], idstr[1024], make_modelstr[1024]; ..... 1039 strncat(uristr, optionsstr, sizeof(uristr)); ..... } } } strncat is wrong used here.strncat appends the sizeof(uristr) (here 1024) characters of optionsstr to uristr, plus a terminating null-character. If the length of the C string in source is less than num, only the content up to the terminating null-character is copied. So, this is a possible situation where a buffer overrun can happen. Reference: http://www.cplusplus.com/reference/clibrary/cstring/strncat/ Best regards Ettl Martin