Univention Bugzilla – Bug 27219
[Drucker hinzufügen] Destination als Pflichtfeld
Last modified: 2017-01-02 20:03:31 CET
Folgender Traceback, wenn ein Drucker ohne Destination Feld gespeichert wird: File '/usr/lib/pymodules/python2.6/notifier/threads.py', line 82, in _run tmp = self._function() File '/usr/lib/pymodules/python2.6/notifier/__init__.py', line 104, in __call__ return self._function( *tmp, **self._kwargs ) File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py', line 267, in _thread dn = module.create( properties, container = options.get( 'container' ), superordinate = options.get( 'superordinate' ) ) File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py', line 130, in wrapper_func ret = func( *args, **kwargs ) File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py', line 310, in create self._map_properties( obj, ldap_object ) File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/udm_ldap.py', line 262, in _map_properties raise UMC_OptionTypeError( _( 'The property %s has an invalid value: %s' ) % ( property_obj.short_description, str( e ) ) ) UMC_OptionTypeError: The property Connection has an invalid value: Connection: not enough arguments aus dem Destination-Feld sollte ein Pflichtfeld werden.
*** Bug 28255 has been marked as a duplicate of this bug. ***
(In reply to bug 28255 comment #0) > Das sollte abgefangen werden, z.B. in dem > "Ziel" ein Pflichtattribut wird (ein Drucker-Share ohne Drucker-URI ist ja > ohnehin nicht sinnvoll) Bei CUPS-PDF wird afair kein Ziel-Anteil angegeben: univentionPrinterURI: cups-pdf:/
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.
In den Produkttests zu UCS 3.2 wieder aufgefallen: Traceback wird inzwischen zwar abgefangen und durch eine Fehlermeldung ersetzt, jedoch bin ich auch der Meinung dass hier intelligent erkannt und angezeigt werden sollte ob Destination für das jeweilige Protokoll ein Pflichtfeld ist, oder nicht.