Bug 24070 - UDM CLI für shares/printer zeigt "uri" nicht mehr an
UDM CLI für shares/printer zeigt "uri" nicht mehr an
Status: RESOLVED DUPLICATE of bug 53702
Product: UCS
Classification: Unclassified
Component: UMC - Printers
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 3.2-x
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-14 16:58 CEST by Felix Botner
Modified: 2021-08-25 10:33 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2012091021001171
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 Felix Botner univentionstaff 2011-10-14 16:58:57 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.
Comment 1 Tim Petersen univentionstaff 2012-05-24 09:47:59 CEST
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
Comment 2 Tim Petersen univentionstaff 2012-05-24 10:00:42 CEST
Der Parameter "uri" erwartet hier zwei Argumente - Protokoll und Pfad.
Beispiel:
--set uri="socket:// host.domain.local"
Comment 3 Tim Petersen univentionstaff 2012-05-24 10:14:52 CEST
(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
Comment 4 Roman Asendorf univentionstaff 2012-09-10 12:25:06 CEST
Ebenfalls aufgefallen an Ticket: #2012091021001171
Comment 5 Moritz Muehlenhoff univentionstaff 2013-05-31 10:46:46 CEST
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.
Comment 6 Florian Best univentionstaff 2016-06-03 14:25:46 CEST
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.
Comment 7 Florian Best univentionstaff 2017-07-13 13:35:09 CEST
If a have a URI with "file:" protocol and I enter "/" as path the slash is stripped and the printer becomes invalid.
Comment 8 Stefan Gohmann univentionstaff 2019-01-03 07:22:32 CET
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.
Comment 9 Florian Best univentionstaff 2021-08-25 10:33:53 CEST

*** This bug has been marked as a duplicate of bug 53702 ***