SyntaxError when parsing header set by Microsoft
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Authentication-Results-Python |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
AuthenticationR
results in
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/
return authres.
File "/home/
return self.parse_
File "/home/
header._parse()
File "/home/
raise SyntaxError(
authres.
Obviously the world market leader is unable to create a header according to spec (we're all surprised, yes?). I guess once again it's easier if we bend and adjust to embrace, extend, extinguish rather than wasting our energy trying to get them to do things right.
The error message isn't very helpful, but what's missing is the authserv-id. My recommendation would be to catch the error and discard the header field since it's not useful as is. Have a look at RFC 8601, Section 2.5 for an explanation of why it's required.