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

Bug#737709: marked as done (cups: Unbalanced curly brackets in templates)



Your message dated Wed, 05 Feb 2014 13:52:10 +0100
with message-id <2229978.lyc81cFqoQ@gyllingar>
and subject line Re: Bug#737709: cups: Unbalanced curly brackets in templates
has caused the Debian Bug report #737709,
regarding cups: Unbalanced curly brackets in templates
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
737709: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=737709
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: cups
Version: 1.5.3-5+deb7u1
Severity: normal
Tags: upstream

Dear Maintainer,

I found error messages in the log like this:
[CGI] Saw EOF, expected '}'!

After a short research I figured out this is due syntax errors
in template files.
I run this command to find suspicious ones:

$ find /usr/share/cups/templates -type f -name '*.tmpl' | while read f; do echo -n "$f: "; (tr -cd '{}' < $f;echo) | sed 's/^/0/;s/{/+1/g;s/}/-1/g' | bc; done | grep -v ': 0$'
/usr/share/cups/templates/hu/printers-header.tmpl: 1
/usr/share/cups/templates/hu/classes-header.tmpl: 1
/usr/share/cups/templates/hu/jobs-header.tmpl: 1
$ 

Regards

Gabor

-- System Information:
Debian Release: 7.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.10-1-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages cups depends on:
ii  adduser                3.113+nmu3
ii  bc                     1.06.95-2
ii  cups-client            1.5.3-5+deb7u1
ii  cups-common            1.5.3-5+deb7u1
ii  cups-filters           1.0.18-2.1
ii  cups-ppdc              1.5.3-5+deb7u1
ii  debconf [debconf-2.0]  1.5.49
ii  dpkg                   1.16.12
ii  ghostscript            9.05~dfsg-6.3+deb7u1
ii  libavahi-client3       0.6.31-2
ii  libavahi-common3       0.6.31-2
ii  libc-bin               2.13-38
ii  libc6                  2.13-38
ii  libcups2               1.5.3-5+deb7u1
ii  libcupscgi1            1.5.3-5+deb7u1
ii  libcupsimage2          1.4.4-7+squeeze3
ii  libcupsmime1           1.5.3-5+deb7u1
ii  libcupsppdc1           1.5.3-5+deb7u1
ii  libdbus-1-3            1.6.8-1+deb7u1
ii  libgcc1                1:4.7.2-5
ii  libgnutls26            2.12.20-7
ii  libgssapi-krb5-2       1.10.1+dfsg-5+deb7u1
ii  libkrb5-3              1.10.1+dfsg-5+deb7u1
ii  libldap-2.4-2          2.4.31-1+nmu2
ii  libpam0g               1.1.3-7.1
ii  libpaper1              1.1.24+nmu2
ii  libslp1                1.2.1-9
ii  libstdc++6             4.7.2-5
ii  libusb-1.0-0           2:1.0.11-1
ii  lsb-base               4.1+Debian8+deb7u1
ii  poppler-utils          0.18.4-6
ii  procps                 1:3.3.3-3
ii  ssl-cert               1.0.32

Versions of packages cups recommends:
pn  avahi-daemon               <none>
ii  colord                     0.1.21-1
ii  foomatic-filters           4.0.17-1
ii  ghostscript-cups           9.05~dfsg-6.3+deb7u1
ii  printer-driver-gutenprint  5.2.9-1

Versions of packages cups suggests:
ii  cups-bsd               1.5.3-5+deb7u1
pn  cups-pdf               <none>
ii  foomatic-db            20120523-1
ii  hplip                  3.12.6-3.1+deb7u1
ii  printer-driver-hpcups  3.12.6-3.1+deb7u1
ii  smbclient              2:3.6.6-6+deb7u2
ii  udev                   175-7.2

-- debconf information:
* cupsys/raw-print: true
* cupsys/backend: ipp, lpd, socket, usb, snmp, dnssd

--- End Message ---
--- Begin Message ---
Version: 1.6.1-1
Control: forwarded -1 https://cups.org/str.php?L4362
Control: tags -1 +patch

Hi Gabor, and thanks for your bugreport,

Le mercredi, 5 février 2014, 09.50:11 Gabor Kiss a écrit :
> I found error messages in the log like this:
> [CGI] Saw EOF, expected '}'!
> 
> After a short research I figured out this is due syntax errors
> in template files.
> I run this command to find suspicious ones:
> 
> $ find /usr/share/cups/templates -type f -name '*.tmpl' | while read
> f; do echo -n "$f: "; (tr -cd '{}' < $f;echo) | sed
> 's/^/0/;s/{/+1/g;s/}/-1/g' | bc; done | grep -v ': 0$'
> /usr/share/cups/templates/hu/printers-header.tmpl: 1
> /usr/share/cups/templates/hu/classes-header.tmpl: 1
> /usr/share/cups/templates/hu/jobs-header.tmpl: 1

I have reported it on the upstream bugtracker but am hereby marking this 
bug as fixed in the 1.6.1-1 version as the hungarian templates are not 
part of the upstream tarball anymore from that version on.

Cheers,
OdyX
Description: Fix Hungarian templates translations syntax errors.
Bug-Debian: http://bugs.debian.org/737709
Origin: vendor
Forwarded: https://cups.org/str.php?L4362
Author: Didier Raboud <odyx@debian.org>
Last-Update: 2014-02-05

--- a/templates/hu/printers-header.tmpl
+++ b/templates/hu/printers-header.tmpl
@@ -1 +1 @@
-<P ALIGN="CENTER">{total=0?Nincsenek nyomtatók:{total} nyomtatóból {#printer_name} megjelenítve.</P>
+<P ALIGN="CENTER">{total=0?Nincsenek nyomtatók:{total} nyomtatóból {#printer_name} megjelenítve}.</P>
--- a/templates/hu/classes-header.tmpl
+++ b/templates/hu/classes-header.tmpl
@@ -1 +1 @@
-<P ALIGN="CENTER">{total=0?Nincsenek osztályok:{total} osztályból {#printer_name} megjelenítve.</P>
+<P ALIGN="CENTER">{total=0?Nincsenek osztályok:{total} osztályból {#printer_name} megjelenítve}.</P>
--- a/templates/hu/jobs-header.tmpl
+++ b/templates/hu/jobs-header.tmpl
@@ -4,4 +4,4 @@
 
 <P ALIGN="CENTER">{total=0?Nincsenek feladatok:{total}
 {?which_jobs=?aktív:{which_jobs=all?:befejezett}} feladatból {#job_id}
-megjelenítve.</P>
+megjelenítve}.</P>

--- End Message ---

Reply to: