Opened 20 years ago
Closed 20 years ago
#1339 closed defect (fixed)
adding attachment not working with mod_python, root directory
Reported by: | rogerb | Owned by: | anonymous |
---|---|---|---|
Priority: | normal | Milestone: | 0.8.2 |
Component: | web frontend/mod_python | Version: | 0.8.1 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I have trac as the root directory of the web server using mod_python on Gentoo. Everything works fine except when clicking "Attach File" for a Wiki page.
For example if I am looking at http://server/wiki/TracGuide and hit 'Attach File', it tries to go to the URL http://attachment/wiki/TracGuide? (ie the machine name is stripped out).
Adding the attachment will work if edit the machine name back in again. This is actually quite difficulty under some circumstances as the browsers fail to find a machine named attachment and then go and do automatic searches and redirections to those results!
Attachments (0)
Change History (6)
comment:1 by , 20 years ago
Milestone: | → 0.8.2 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 20 years ago
comment:4 by , 20 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I've applied [1480] to my 0.8.1 installation, but now, instead of redirecting to http://attachment/wiki/TracGuide there is simply no action and it links back to the same page. Do I need to do something else to make it work, or can I provide more information which might help?
Thanks.
comment:5 by , 20 years ago
What does the value of the "action" attribute of the form look like? I.e. the form that contains the "Attach File" button.
Also, can you append the query string parameter ?format=hdf
to the wiki page URL and paste the output? Actually, the value of the wiki.attach_href
node would be enough.
comment:6 by , 20 years ago
Component: | general → mod_python frontend |
---|---|
Resolution: | → fixed |
Status: | reopened → closed |
I just retested this, and it works for me. Make sure you've restarted the server!
This is fixed in trunk, but would need to be fixed in the 0.8 branch.