Listing by author when using Windows Domain users
|Reported by:||anonymous||Owned by:||osimons|
I'm using Trac within a Windows environment, and it is set up to use Windows users. Their logins are therefore domain\username. The blog listing by author does not work correctly in this scenario but I've managed to fix it. The reason it fails is a) Apache rejected \ characters in URLs (add the line AllowEncodedSlashes On to the conf file), and b) the \ character appears to be converted to / so the search fails.
In line 342 of web_ui.py, I added the line:
author = os.path.normpath(author)
I also had to add import os at the top of the file.
I'm not too familiar with Python but this appeared to resolve my problem. There may be a better solution but it worked for me.