Edgewall Software
Modify

Opened 14 years ago

Closed 14 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:

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 Christopher Lenz <cmlenz@…>, 14 years ago

Milestone: 0.8.2
Owner: changed from Jonas Borgström to anonymous
Status: newassigned

comment:2 by Christopher Lenz <cmlenz@…>, 14 years ago

This is fixed in trunk, but would need to be fixed in the 0.8 branch.

comment:3 by Christopher Lenz, 14 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [1480].

comment:4 by evan.s@…, 14 years ago

Resolution: fixed
Status: closedreopened

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 Christopher Lenz, 14 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 Christopher Lenz, 14 years ago

Component: generalmod_python frontend
Resolution: fixed
Status: reopenedclosed

I just retested this, and it works for me. Make sure you've restarted the server!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain anonymous.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from anonymous to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.