Univention Bugzilla – Full Text Bug Listing |
Summary: | AttributeError: 'NoneType' object has no attribute 'endswith' | ||
---|---|---|---|
Product: | UCS | Reporter: | Stefan Gohmann <gohmann> |
Component: | S4 Connector | Assignee: | Stefan Gohmann <gohmann> |
Status: | CLOSED FIXED | QA Contact: | Arvid Requate <requate> |
Severity: | normal | ||
Priority: | P5 | CC: | best, grandjean, meybohm, walkenhorst |
Version: | UCS 4.0 | ||
Target Milestone: | UCS 4.0-2-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
What kind of report is it?: | --- | What type of bug is this?: | --- |
Who will be affected by this bug?: | --- | How will those affected feel about the bug?: | --- |
User Pain: | Enterprise Customer affected?: | ||
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | Bug group (optional): | ||
Max CVSS v3 score: | |||
Attachments: |
connector.patch
fix_brackets.patch |
Description
Stefan Gohmann
2015-06-03 11:00:53 CEST
Created attachment 6938 [details]
connector.patch
The attached patch solve the issue on the customer system.
*** Bug 38704 has been marked as a duplicate of this bug. *** See Bug #38704. this issue seems to be introduced by Bug #38614. The test case 174sync_nested_umlaut_groups shows the error. (In reply to Stefan Gohmann from comment #1) > Created attachment 6938 [details] > connector.patch > > The attached patch solve the issue on the customer system. But the patch is wrong. since Bug #38614 most values are saved as binary values, thus the comparison with an empty string is false. I've also converted two more values t unicode to remove the sqlite warning listed in Bug #38704: r61240. (In reply to Stefan Gohmann from comment #4) > But the patch is wrong. since Bug #38614 most values are saved as binary > values, thus the comparison with an empty string is false. > I've also converted two more values t unicode to remove the sqlite warning > listed in Bug #38704: r61240. I've adjusted the conversion: - r61242 - r61245 Created attachment 6965 [details] fix_brackets.patch The original issue here seems to be fixed but I found another collateral damage of Bug #38614 in the connector-s4.log: ================================================================= 15.06.2015 12:43:01,741 LDAP (WARNING): S4Cache: sqlite: Error binding parameter 0 - probably unsupported type.. SQL command was: [('DELETE FROM data WHERE data.id IN (\t\t\t\tSELECT data.id FROM DATA INNER JOIN ATTRIBUTES ON data.attribute_id=attributes.id \t\t\t\t\twhere attributes.attribute=? and guid_id =? \t\t\t\t);', [('member',), ('123',)]), ('DELETE FROM data WHERE data.id IN (\t\t\t\t\t\t\tSELECT data.id FROM DATA INNER JOIN ATTRIBUTES ON data.attribute_id=attributes.id \t\t\t\t\t\t\twhere attributes.id=? and guid_id = ? and value = ? \t\t\t\t\t\t);', ['31', '123', 'Mzk1OQ==\n']), ('INSERT INTO DATA(guid_id,attribute_id,value) VALUES(?,?,?);', ['123', '31', 'NDAwMQ==\n']), ('DELETE FROM data WHERE data.id IN (\t\t\t\t\t\t\tSELECT data.id FROM DATA INNER JOIN ATTRIBUTES ON data.attribute_id=attributes.id \t\t\t\t\t\t\twhere attributes.id=? and guid_id = ? and value = ? \t\t\t\t\t\t);', ['22', '123', 'w7EewqsEwqbDlsOXRsKtRcObwqLCssKDw7TDhA==\n']), ('INSERT INTO DATA(guid_id,attribute_id,value) VALUES(?,?,?);', ['123', '22', 'w7EewqsEwqbDlsOXRsKtRcObwqLCssKDw7TDhA==\n']), ('DELETE FROM data WHERE data.id IN (\t\t\t\t\t\t\tSELECT data.id FROM DATA INNER JOIN ATTRIBUTES ON data.attribute_id=attributes.id \t\t\t\t\t\t\twhere attributes.id=? and guid_id = ? and value = ? \t\t\t\t\t\t);', ['23', '123', 'MjAxNTA2MTUxNjQxNTEuMFo=\n']), ('INSERT INTO DATA(guid_id,attribute_id,value) VALUES(?,?,?);', ['123', '23', 'MjAxNTA2MTUxNjQzMDAuMFo=\n'])] ================================================================= Here a list is passed as sqlite parameter: where attributes.attribute=? and guid_id =? \t\t\t\t);', [('member',), ('123',)]) The attached patch fixes this and unifies the use of lists and tuples in this case. (In reply to Arvid Requate from comment #6) > Created attachment 6965 [details] > fix_brackets.patch Thanks, applied (r61261). Test case 257read_ad_user_primarygroup shows the error. Ok, verified. |