Univention Bugzilla – Full Text Bug Listing |
Summary: | ucr.load() fails: 'NoneType' object has no attribute 'lower' | ||
---|---|---|---|
Product: | UCS | Reporter: | Florian Best <best> |
Component: | UCR | Assignee: | Janek Walkenhorst <walkenhorst> |
Status: | CLOSED FIXED | QA Contact: | Dirk Wiesenthal <wiesenthal> |
Severity: | normal | ||
Priority: | P5 | CC: | botner, castens, gohmann, hahn, walkenhorst |
Version: | UCS 4.1 | Flags: | best:
Patch_Available+
|
Target Milestone: | UCS 4.1-4-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: |
https://forge.univention.org/bugzilla/show_bug.cgi?id=42619 https://forge.univention.org/bugzilla/show_bug.cgi?id=43069 |
||
What kind of report is it?: | Bug Report | What type of bug is this?: | 7: Crash: Bug causes crash or data loss |
Who will be affected by this bug?: | 3: Will affect average number of 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.240 | Enterprise Customer affected?: | Yes |
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | 2016102421000359, 2016102921000181, 2016110321000566, 2016110321000851, 2016110421000742, 2016111121000489, 2016111721000192, 2016111721000512, 2016111721000629, 2016112921000161, 2016111821000207, 2016120221000101, 2020072721000379 | Bug group (optional): | Error handling, External feedback |
Max CVSS v3 score: | |||
Bug Depends on: | 37402 | ||
Bug Blocks: |
Description
Florian Best
2016-11-09 17:17:58 CET
This causes also the following traceback. I thought I already created a bug for this but can't find. Die Ausführung des Kommandos udm/nav/container/query dns/dns ist fehlgeschlagen: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 283, in execute function(self, request) File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 963, in nav_container_query root_subelements = ldap_base.lower() == container.lower() and request.flavor != 'navigation' AttributeError: 'NoneType' object has no attribute 'lower' As this might also be the cause of Bug #42619 I raise the type value to 7. Reported again, 4.1-4 errata324 (Vahr) Reported again, 4.1-4 errata327 (Vahr) Reported again, 4.1-4 errata327 (Vahr) Reported again, 4.1-4 errata327 (Vahr) We should fix this asap imho. Code backported: r74621 r74622 Advisory: univention-config-registry.yaml r74620 Tests: OK @Florian: Please build the package, once the buildsystem is well again. I build the package last monday. This changes the behavior of: ucr.is_true(value='True') → True (prior False) A effect of this is that in management/univention-management-console-module-udm/umc/python/udm/udm_ldap.py: 'nonempty_is_default': ucr.is_true(value=str(prop.nonempty_is_default)), → is evaluated correct so that when creating a user the mailHomeServer is set to the first value. I think the API change here is okay as it fixes the currently broken behavior. (In reply to Florian Best from comment #10) > This changes the behavior of: > ucr.is_true(value='True') → True (prior False) > > A effect of this is that in > management/univention-management-console-module-udm/umc/python/udm/udm_ldap. > py: > 'nonempty_is_default': ucr.is_true(value=str(prop.nonempty_is_default)), > → is evaluated correct so that when creating a user the mailHomeServer is > set to the first value. > I think the API change here is okay as it fixes the currently broken > behavior. Ah it's not completely true, what I said here: The regression is caused by the autopep8 changes in Bug #31771 where I replaced nonempty_is_default=1 to nonempty_is_default=True. So this bug fixes actually every UDM pacakge which was build between 25.10 and now. (Only http://errata.software-univention.de/ucs/4.1/319.html). See also Bug #33329. (In reply to Florian Best from comment #11) → Bug #43069 # cat /var/log/univention/listener.log >05.08.16 22:48:53.803 LISTENER ( ERROR ) : import of filename=/usr/lib/univention-directory-listener/system/gencertificate.py failed >Traceback (most recent call last): > File "/usr/lib/univention-directory-listener/system/gencertificate.py", line 45, in <module> > filter = '(|%s)' % ''.join('(objectClass=%s)' % oc for oc in set(configRegistry['ssl/host/objectclass'].split(','))) >AttributeError: 'NoneType' object has no attribute 'split' # cat /var/log/univention/config-registry.replog >2016-08-05 22:45:06: set version/patchlevel=2 old:1 >2016-08-05 22:45:06: set version/version=4.1 old:4.1 >2016-08-05 22:48:28: set directory/manager/user_group/uniqueness=true old:true >2016-08-05 22:48:38: set security/packetfilter/package/univention-management-console-server/tcp/6670/all/en=UMC old: >2016-08-05 22:48:38: set security/packetfilter/package/univention-management-console-server/tcp/6670/all=ACCEPT old: >2016-08-05 22:48:41: set umc/web/sso/newwindow=true old:true >2016-08-05 22:48:45: set version/erratalevel=295 old:202 >2016-08-05 22:48:46: set version/releasename=Vahr old:Vahr >2016-08-05 22:48:55: set license/base='UCS Core Edition' old:UCS Core Edition # ucr get ssl/host/objectclass >univentionDomainController,univentionMemberServer,univentionClient,univentionMobileClient,univentionCorporateClient # ucr search --brief ^version/ >version/erratalevel: 327 >version/patchlevel: 4 >version/releasename: Vahr >version/version: 4.1 Backport: OK YAML: OK Reported again, 4.1-4 errata327 (Vahr) Reported again, 4.1-4 errata327 (Vahr) reported again Remark: Always getting this error messages, would like to put into production but have constant issue like these. Would be nice to know whats wrong and get it fixed 100% Error: Execution of command 'udm/nav/container/query dns/dns' has failed: |