#8876 closed defect (fixed)
Can't create Catalogs/Test cases when trac runs from site root
Reported by: | 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)
Change History (7)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
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
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
comment:4 Changed 13 years ago by
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
Resolution: | → fixed |
---|---|
Status: | new → closed |
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
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