AttributeError: 'str' object has no attribute 'quote_if_needed'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Authentication-Results-Python |
Expired
|
Undecided
|
Unassigned |
Bug Description
This seems to be a core bug, as we don't check if `value` (Str) has the attribute `quote_if_needed` (Function).
Full stack trace is provided below:
```sh
Error: Traceback (most recent call last):
File "/var/www/
main()
File "/var/www/
header = authheaders.
File "/home/
return str(auth_res)
File "/home/
return ''.join(
File "/home/
strs.
File "/home/
strs.
File "/home/
return '%s.%s=%s' % (self.type, self.name, self.value.
AttributeError: 'str' object has no attribute 'quote_if_needed'
```
I'm having some trouble seeing how this would happen. Does this happen routinely or is this a one time only issue? Can you provide me with a test case (e.g. values for msg=message, authserv_id, ip, mail_from, and helo in authheaders) that demonstrates the problem. Note that the code in question in authres has been the way it is since 2013 and I've never heard of this before, so I need more of a hint.