Opened 9 years ago

Last modified 9 years ago

#5875 new defect

Listing by author when using Windows Domain users

Reported by: anonymous Owned by: osimons
Priority: normal Component: FullBlogPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


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, 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.

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by osimons

Somewhat related to #4461.

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain osimons.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.