Modify

Opened 5 years ago

Last modified 5 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

Description

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.

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by osimons

Somewhat related to #4461.

Add Comment

Modify Ticket

Action
as new The owner will remain osimons.
Author


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

 
Note: See TracTickets for help on using tickets.