Univention Bugzilla – Bug 24070
UDM CLI für shares/printer zeigt "uri" nicht mehr an
Last modified: 2021-08-25 10:33:53 CEST
Ich habe einen Drucker angelegt, im UMC UDM sehe ich auch schön das gesetzte Protokoll und Ziel, per UDM Cli ist die uri jedoch leer -> udm shares/printer list DN: cn=printer1,cn=shares,dc=ww,dc=qq ARG: None description: None producer: cn=HP,cn=cups,cn=univention,dc=ww,dc=qq ACLUsers: None jobPrice: None ACLGroups: None sambaName: None spoolHost: master.ww.qq name: printer1 setQuota: 1 ACLtype: allow all pagePrice: None uri: None location: None model: hplip/HP/hp-laserjet_p2055dn-hpijs-pcl3.ppd DN: cn=printer2,cn=shares,dc=ww,dc=qq ARG: None description: None producer: cn=Alps,cn=cups,cn=univention,dc=ww,dc=qq ACLUsers: None jobPrice: None ACLGroups: None sambaName: None spoolHost: master.ww.qq name: printer2 setQuota: 0 ACLtype: allow all pagePrice: None uri: None location: None model: foomatic-rip/Alps-MD-1000-md2k.ppd -> more /etc/cups/printers.conf| grep URI DeviceURI cupspykota:socket://192.168.0.49:9100 DeviceURI file:/tmp/rq In 2.4 funktioniert das.
Man kann URI auch nicht mehr setzen, das verhindert dass man mit UDM-Cli Printer anlegt... udm shares/printer create --set producer="cn=HP,cn=cups,cn=univention,dc=rocky,dc=local" \ --set sambaName="testprinter" \ --set spoolHost="adrian.rocky.local" \ --set name="testprinter" \ --set uri="socket://adrian.rocky.local" \ --set model="None" \ --position="cn=printers,dc=rocky,dc=local" E: Invalid Syntax: Connection: not enough arguments udm shares/printer create --set producer="cn=HP,cn=cups,cn=univention,dc=rocky,dc=local" \ --set sambaName="testprinter" \ --set spoolHost="adrian.rocky.local" \ --set name="testprinter" \ --set model="None" \ --position="cn=printers,dc=rocky,dc=local" E: Insufficient information The following parameters are missing: uri
Der Parameter "uri" erwartet hier zwei Argumente - Protokoll und Pfad. Beispiel: --set uri="socket:// host.domain.local"
(In reply to comment #2) > Der Parameter "uri" erwartet hier zwei Argumente - Protokoll und Pfad. > Beispiel: > --set uri="socket:// host.domain.local" Damit geht es dann
Ebenfalls aufgefallen an Ticket: #2012091021001171
We will not ship a UCS 3.1-2 release; the next UCS release will be UCS 3.2. As such, this bug is moved to the new target milestone.
This bug causes also that in UCS@school the PDF-Printers can't be removed from the list of printers. The problem is that a settings/printeruri lookup is done in object.__init__() and only available schema's are allowed by unmapPrinterURI(). This works on a DC Master but not on a DC Slave.
If a have a URI with "file:" protocol and I enter "/" as path the slash is stripped and the printer becomes invalid.
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018. Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.
*** This bug has been marked as a duplicate of bug 53702 ***