Skip to content

User tools have buggy group-authz dir loading #44

Closed
labisso opened this Issue Apr 19, 2011 · 1 comment

2 participants

@labisso
Nimbus member
labisso commented Apr 19, 2011

A file in the group-authz dir named group01.properties.orig breaks user tools ability to load the directory.

Traceback (most recent call last):
  File "/opt/nimbus/libexec//nimbus_list_users.py", line 122, in <module>
    rc = main()
  File "/opt/nimbus/libexec//nimbus_list_users.py", line 112, in main
    report_results(db, u, o)
  File "/opt/nimbus/libexec//nimbus_list_users.py", line 81, in report_results
    group = find_member(groupauthz_dir, o.dn)
  File "/opt/nimbus/web/src/python/nimbusweb/setup/groupauthz.py", line 57, in find_member
    for group in all_groups(groupauthz_dir):
  File "/opt/nimbus/web/src/python/nimbusweb/setup/groupauthz.py", line 31, in all_groups
    group_id = int(name[len(_GROUP_FILE_PREFIX):])
ValueError: invalid literal for int() with base 10: '01.properties'
@buzztroll
Nimbus member

Fixed. Added a test.

@buzztroll buzztroll closed this Apr 26, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.