Bug 15142 - Drucker erst nach mehrmaligen Änderungen im UDM vollständig angelegt
Drucker erst nach mehrmaligen Änderungen im UDM vollständig angelegt
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Printserver
UCS 2.2
All All
: P5 normal (vote)
: UCS 2.3
Assigned To: Daniel Hofmann
Janek Walkenhorst
:
Depends on:
Blocks: 15451 14332 17597
  Show dependency treegraph
 
Reported: 2009-07-21 07:48 CEST by Tobias Scherer
Modified: 2011-04-07 15:24 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Scherer univentionstaff 2009-07-21 07:48:41 CEST
Berichtet an Ticket#: 2009071710000108

Die URI und der Druckertreiber werden erst nach mehrfachem Ändern des Beschreibungsfeldes übernommen.
Comment 1 Ingo Steuwer univentionstaff 2009-07-21 15:57:34 CEST
aus meiner listener.log:

17.07.09 21:26:38  LISTENER    ( WARN    ) : cups-printers: info: univention-lpadmin -u allow:all -p hp6500 -D "HP Officejet 6500"
 -m hpijs/HP/HP-OfficeJet_j6400_Series-hpijs.ppd -v socket://hp6500:9100 -E
The command "/usr/sbin/lpadmin -u allow:all -p hp6500 -D "HP Officejet 6500" -m hpijs/HP/HP-OfficeJet_j6400_Series-hpijs.ppd -v so
cket://hp6500:9100 -E" returned 1
17.07.09 21:26:39  LISTENER    ( ERROR   ) : cups-printers: Failed to execute the univention-lpadmin command. Please check the cup
sys state.
Reloading /etc/samba/smb.conf (smbd only).
Reloading /etc/samba/smb.conf (smbd only).
17.07.09 21:27:54  LISTENER    ( WARN    ) : cups-printers: info: univention-lpadmin -u allow:all -p hp6500 -L "Wireless" -v socke
t://hp6500:9100 -E
Reloading /etc/samba/smb.conf (smbd only).
Reloading /etc/samba/smb.conf (smbd only).
17.07.09 21:28:29  LISTENER    ( WARN    ) : cups-printers: info: univention-lpadmin -u allow:all -p hp6500 -L "" -v socket://hp65
00:9100 -E
Reloading /etc/samba/smb.conf (smbd only).
Reloading /etc/samba/smb.conf (smbd only).
17.07.09 21:33:29  LISTENER    ( WARN    ) : cups-printers: info: univention-lpadmin -u allow:all -p hp6500 -m hpijs/HP/HP-OfficeJ
et_6300_Series-hpijs.ppd -v socket://hp6500:9100 -E
Comment 2 Tobias Scherer univentionstaff 2009-07-22 13:37:43 CEST
siehe auch Bug   14434
und Ticket#: 2009050810000111
Comment 3 Stefan Gohmann univentionstaff 2009-07-26 17:01:29 CEST
Ist das auf einem UCS 2.2-1?
Comment 4 Tobias Scherer univentionstaff 2009-08-14 10:34:10 CEST
ähnliches Berichtet an Ticket#: 2009081210000419
Comment 5 Tobias Scherer univentionstaff 2009-08-14 10:51:02 CEST
tritt mindestens in UCS Version 2.2-1 auf laut Ticket#: 2009081210000419
Comment 6 Tobias Scherer univentionstaff 2009-08-14 11:03:23 CEST
Konnte ich wie im Ticket beschrieben auf einem UCS 2.2-1-2 nachstellen:

root@qamaster:~$ tail -f /var/log/univention/listener.log
14.08.09 10:30:08  LISTENER    ( WARN    ) : cups-printers: info: univention-lpadmin -u allow:all -p test2 -D "Dies ist ein Testdrucker" -L "Hinter dem Haus" -m foomatic-rip/linuxprinting.org-gs-builtin/Brother/Brother-HL-2060-hl1250.ppd.gz -v ipp://192.168.1.200 -E
The command "/usr/sbin/lpadmin -u allow:all -p test2 -D "Dies ist ein Testdrucker" -L "Hinter dem Haus" -m foomatic-rip/linuxprinting.org-gs-builtin/Brother/Brother-HL-2060-hl1250.ppd.gz -v ipp://192.168.1.200 -E" returned 1
14.08.09 10:30:09  LISTENER    ( ERROR   ) : cups-printers: Failed to execute the univention-lpadmin command. Please check the cupsys state.

root@qamaster:~$ cat /etc/cups/printers.conf
# Printer configuration file for CUPS v1.2.7
# Written by cupsd on 2009-08-14 10:30
<Printer test2>
Info Dies
DeviceURI file:/dev/null
State Stopped
StateMessage
StateTime 1250238608
Accepting No
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
Comment 7 Tobias Scherer univentionstaff 2009-08-14 11:22:19 CEST
Ohne Leerzeichen in den Feldern "Standort" und  "Beschreibung" funktioniert es.

root@qamaster:~$ tail -f /var/log/univention/listener.log

14.08.09 10:44:17  LISTENER    ( WARN    ) : cups-printers: info: univention-lpadmin -u allow:all -p test2 -L "HinterdemHaus" -D "DiesisteinTestdrucker" -v ipp://192.168.1.200 -E
Reloading /etc/samba/smb.conf (smbd only).

root@qamaster:~$ cat /etc/cups/printers.conf
# Printer configuration file for CUPS v1.2.7
# Written by cupsd on 2009-08-14 10:44
<Printer test2>
Info DiesisteinTestdrucker
Location HinterdemHaus
DeviceURI ipp://192.168.1.200
State Idle
StateTime 1250239458
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>

folgendes habe ich noch ausprobiert:

/usr/sbin/lpadmin -u allow:all -p test3 -D "Dies\ ist\ ein\ Testdrucker" -L "Hinter\ dem\ Haus" -m foomatic-rip/linuxprinting.org-gs-builtin/Brother/Brother-HL-2060-hl1250.ppd.gz -v ipp://192.168.1.200 -E

ergibt:
<Printer test3>
Info Dies\ ist\ ein\ Testdrucker
Location Hinter\ dem\ Haus
DeviceURI ipp://192.168.1.200
State Idle
StateTime 1250239803
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>

/usr/sbin/lpadmin -u allow:all -p test4 -D "Dies ist ein Testdrucker" -L "Hinter dem Haus" -m foomatic-rip/linuxprinting.org-gs-builtin/Brother/Brother-HL-2060-hl1250.ppd.gz -v ipp://192.168.1.200 -E

ergibt:
<Printer test4>
Info Dies ist ein Testdrucker
Location Hinter dem Haus
DeviceURI ipp://192.168.1.200
State Idle
StateTime 1250239826
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
Comment 8 Daniel Hofmann univentionstaff 2009-08-20 17:39:23 CEST
gefixt in r11648 und r11652.

Irgendwie wurden hier doppelte Quotes um Argumente mit Leerzeichen produziert.
Comment 9 Daniel Hofmann univentionstaff 2009-08-21 09:22:08 CEST
irgendwie doch noch nicht ganz astrein jetzt
Comment 10 Daniel Hofmann univentionstaff 2009-08-21 11:43:28 CEST
Ok, dieser spezielle Fehler mit den Leerzeichen in Beschreibung und Ort ist jetzt für 2.3 gefixt.

In 2.3 gibts aber ein neues Problem, und zwar ist die Liste der Druckermodelle im ldap nicht mehr das, was lpadmin erwartet.
Comment 11 Janek Walkenhorst univentionstaff 2009-11-03 14:18:11 CET
Reopen:

Wenn man als Standort zum Beispiel 
"- hier
angibt, wird der Drucker nicht richtig angelegt.
Es gibt also noch Probleme mit der Maskierung von Sonderzeichen.
Leerzeichen scheinen keine Probleme zu bereiten.
Comment 12 Daniel Hofmann univentionstaff 2009-11-03 16:15:25 CET
Jetzt sollten auch solche Orte und Beschreibungen von Druckern keine Probleme mehr machen, die Gänsefüßchen im Namen haben. Wesentliche Änderung dafür ist der Aufruf von spawn mit Argumentenliste, anstatt mit den Argumenten im Kommandostring.
Comment 13 Janek Walkenhorst univentionstaff 2009-11-04 14:37:29 CET
(In reply to comment #12)
> Jetzt sollten auch solche Orte und Beschreibungen von Druckern keine Probleme
> mehr machen, die Gänsefüßchen im Namen haben. Wesentliche Änderung dafür ist
> der Aufruf von spawn mit Argumentenliste, anstatt mit den Argumenten im
> Kommandostring.
Verified:
Es funktioniert einwandfrei, einen Drucker mit der folgenden Beschreibung/Standort anzulegen:
"#öfewfö#öä2 Ö'"Äö #ä# '' "" 'ä" " +ä+
Comment 14 Stefan Gohmann univentionstaff 2009-12-21 08:46:50 CET
UCS 2.3 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer neueren Version von UCS erneut auftreten, so sollte der Bug dupliziert werden: "Clone This Bug".