Univention Bugzilla – Full Text Bug Listing |
Summary: | modifying share raises IndexError: string index out of range | ||
---|---|---|---|
Product: | UCS | Reporter: | Florian Best <best> |
Component: | UMC - Shares | Assignee: | Florian Best <best> |
Status: | CLOSED FIXED | QA Contact: | Johannes Keiser <keiser> |
Severity: | normal | ||
Priority: | P5 | CC: | markaldo, s |
Version: | UCS 4.2 | ||
Target Milestone: | UCS 4.2-1-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
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?: | Yes |
School Customer affected?: | Yes | ISV affected?: | |
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | 2017080821000196, 2017081321000202, 2017081721000688 | Bug group (optional): | |
Max CVSS v3 score: |
Description
Florian Best
2017-08-15 11:33:21 CEST
Version: 4.2-1 errata122 (Lesum) - UCS@school 4.2 v2 Remark: Ich möchte die Schreibberechtigungen bei einem Share auf die Gruppe der lehrer-$OU beschränken. Ich kann aber hier keinen Benutzer oder Gruppe eintragen. Es kommt immer die Fehlermeldung - auch, wenn ich hier root eintrage. Remark: Trying to get a group share up and running and I've had ZERO luck with any documentation or forum posts. :( The code path exists since Bug #37081. The exception happens when changing 'sambaWriteList' / 'univentionShareSambaWriteList' and the new or old values is empty. univention-directory-manager-modules (12.0.18-9): r82124 | Bug #45207: fix mapping of sambaWriteList in shares when the value is empty univention-directory-manager-modules.yaml: r82125 | YAML Bug #45207 OK no traceback. tested with: udm shares/share create --set name=bar --set host="master40.mydomain.intranet" --set path="/bar" udm shares/share modify --dn cn=bar,dc=mydomain,dc=intranet --set sambaWriteList=foo udm shares/share modify --dn cn=bar,dc=mydomain,dc=intranet --set sambaWriteList=newFoo udm shares/share modify --dn cn=bar,dc=mydomain,dc=intranet --remove sambaWriteList YAML: OK -> verified Reported again, 4.2-1 errata133 (Lesum). Bitte nehmen Sie sich einen Augenblick Zeit, um die folgenden Informationen bereitzustellen: 1) Schritte, um den Fehler zu reproduzieren In einer Samba Freigabe ist unter Erweiterte Einstellungen -> Samba Rechte -> Schreibberechtigungen auf diese Benutzer/Gruppen beschränken gesetzt: @"Domain Users" Dies soll entfernt werden. 2) erwartetes Ergebnis Übernahme des leeren Parameters 3) beobachtetes Ergebnis Parameter wird nicht übernommen. In Python, a string is a single-dimensional array of characters. The string index out of range means that the index you are trying to access does not exist. In a string, that means you're trying to get a character from the string at a given point. If that given point does not exist , then you will be trying to get a character that is not inside of the string. Indexes in Python programming start at 0. This means that the maximum index for any string will always be length-1. There are several ways to account for this. Knowing the length of your string (using len() function)could certainly help you to avoid going over the index. More: http://net-informations.com/python/err/range.htm |