Merge lp:~wgrant/launchpad/bug-694001-apache-username-spaces into lp:launchpad
Proposed by
William Grant
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Curtis Hovey | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 12239 | ||||
Proposed branch: | lp:~wgrant/launchpad/bug-694001-apache-username-spaces | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
39 lines (+17/-1) 2 files modified
lib/contrib/apachelog.py (+1/-1) lib/lp/services/apachelogparser/tests/test_apachelogparser.py (+16/-0) |
||||
To merge this branch: | bzr merge lp:~wgrant/launchpad/bug-694001-apache-username-spaces | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
j.c.sackett (community) | code* | Approve | |
Review via email: mp+46720@code.launchpad.net |
Commit message
[r=jcsackett,
Description of the change
Private PPA Apache logs contain unquoted usernames, which can be whatever the user wants -- even containing spaces or other strange characters. Since the default Apache combined log format uses spaces to delimit fields, the parser grabs fields with \S+ unless they are quoted. This makes it choke on lines with usernames containing spaces.
This branch fixes contrib.apachelog to match usernames with spaces. It's the only field in the default log format that can contain spaces, so it's still deterministically parsable.
To post a comment you must log in.
William--
This looks fine by me.