Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#8876 closed defect (fixed)

Can't create Catalogs/Test cases when trac runs from site root

Reported by: david.killick@… Owned by: Roberto Longobardi
Priority: normal Component: TestManagerForTracPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

In our trac installation, trac is installed at the root of our server.

The call to 'ref.href()' on line 564 of wiki.py used to set the baseLocation javascript var returns '/'.

When this is used throughout testmanager.js, it creates URIs with double leading /'s, such as testcreate?... . This causes the browser to make requests to a non-existent host.

Attachments (1)

wiki.py (28.8 KB) - added by Roberto Longobardi 13 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 13 years ago by Roberto Longobardi

Hi David, please, could you explain a littlebit more what you mean by running from the root?

Do you use Apache or tracd, and with which configuration?

I'll take a look at thi asap.

Ciao, Roberto

comment:2 Changed 13 years ago by david.killick@…

sorry, I should have been clearer - my fault.

we're using Apache 2.2.9 with WSGI 2.5 (both from the packages found in Debian Lenny).

Our Trac is 0.12.2 .

Apache is configured to server the trac URI's from the top level, for example:

server.name/ticket/7366
server.name/wiki/WikiPage
server.name/testcreate

As a temporary workaround, I replaced the call to 'ref.href()' on line 564 in wiki.py with "", which provides access to most of the testmanager functionality on our installation, but this would not make a general solution.

This workaround did not fix the import of test cases from a csv file (though I was able to workaround that with firebug :) ).

Let me know if you need any more info.

comment:3 Changed 13 years ago by Roberto Longobardi

Hi David, I think I found a simple fix to this.

Could you try to build the attached modified wiki.py and replace the Test Manager plugin in your environment?

Let me know.

Ciao, Roberto

Changed 13 years ago by Roberto Longobardi

Attachment: wiki.py added

comment:4 Changed 13 years ago by david.killick@…

Works nicely.

Looking at the markup, the import of test cases appears to be fixed too - though I don't currently have anything to upload to prove it.

IMHO this issue is fixed, and the ticket can be closed.

Thanks for sorting it out, much appreciated.

comment:5 Changed 13 years ago by Roberto Longobardi

Resolution: fixed
Status: newclosed

No problem, David.

I'll release this fix in 1.4.6 asap.

Feel free to propose any idea for this plugin you can think of :D

Ciao, Roberto

comment:6 Changed 13 years ago by Roberto Longobardi

Released in 1.4.6.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Roberto Longobardi.
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.