Modify

Opened 6 years ago

Closed 4 years ago

#3561 closed defect (wontfix)

Faulty link in DBAuthPlugin when running standalone on multiproject

Reported by: nortek Owned by: brad
Priority: normal Component: DbAuthPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I have a multiproject Trac site which runs as a standalone server. One of the projects is named NIP. So when I open up the project:
http://127.0.0.1:8000/NIP i get the login link in the navigation menu. However the login link links to
http://127.0.0.1:8000/login
with the result that I get the message : "Environment not found".
If I understand this right the login should link to :
http://127.0.0.1:8000/NIOP/login
instead. In which case everthink works fine. The same problem happens when logging out.

Looking into the sourcecode I compared the "get_navigation_items" method with the one in the Trac project and the difference here was that the login link was generated differently:
Trac : req.href.login()
DBAuthg : self.env.href.login()

So when changing this it now seems to work as it should.

Is this a fault with the plugin or have I setup something wrong?

Attachments (0)

Change History (2)

comment:2 Changed 4 years ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

Closing tickets for a deprecated plugin.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.