[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[augeas-devel] [Augeas] #291: CUPS printers.conf uses non-matching <DefaultPrinter> block



#291: CUPS printers.conf uses non-matching <DefaultPrinter> block
----------------------+---------------------
 Reporter:  domcleal  |       Owner:  lutter
     Type:  defect    |      Status:  new
 Priority:  major     |   Milestone:  next
Component:  Augeas    |     Version:  devel
 Keywords:  cups      |  Blocked By:
 Blocking:            |
----------------------+---------------------
 CUPS uses a DefaultPrinter block to define the default printer, but it
 closes with </Printer>.  Our lens uses Httpd, which uses the square lens
 to match beginning and end sections so throws an error.

 From printers.conf(5):
 {{{
 <DefaultPrinter name> ... </Printer>
     Defines a default printer.
 }}}

 Error output:
 {{{
 /augeas/files/etc/cups/printers.conf/error = "parse_failed"
 /augeas/files/etc/cups/printers.conf/error/pos = "938"
 /augeas/files/etc/cups/printers.conf/error/line = "40"
 /augeas/files/etc/cups/printers.conf/error/char = "2"
 /augeas/files/etc/cups/printers.conf/error/lens =
 "lenses/httpd.aug:82.30-.43:"
 /augeas/files/etc/cups/printers.conf/error/message = "Parse error:
 mismatched key in square lens, expecting \"DefaultPrinter\" but got
 \"Printer\""
 }}}

 Config file snippet:
 {{{
 <DefaultPrinter ML-1210>
 UUID urn:uuid:3bd1de49-3f06-3acf-56e8-567be2234b31
 Info Samsung ML-1210
 Location iridium
 MakeModel Samsung ML-1210 Foomatic/gdi (recommended)
 DeviceURI usb://Samsung/ML-1210
 State Stopped
 StateMessage Unplugged or turned off
 StateTime 1343466394
 Reason paused
 Type 8392708
 Accepting Yes
 Shared Yes
 JobSheets none none
 QuotaPeriod 0
 PageLimit 0
 KLimit 0
 OpPolicy default
 ErrorPolicy stop-printer
 </Printer>
 }}}

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/291>
Augeas <http://augeas.net/>
a configuration API



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]