Modify

Opened 15 years ago

Closed 4 years ago

#5875 closed defect (wontfix)

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 (2)

comment:1 Changed 15 years ago by osimons

Somewhat related to #4461.

comment:2 Changed 4 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

Closing as a rare issue. Will address if it's reported again.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain osimons.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.