Modify

Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#4535 closed defect (fixed)

Using TracUriRoot with mod_python and multiple projects prevents access to add page

Reported by: anonymous Owned by: Blackhex
Priority: normal Component: ScreenshotsPlugin
Severity: critical Keywords: screenshots
Cc: Trac Release: 0.11

Description

If you have

PythonOption TracEnvParentDir "/srv/trac"
PythonOption TracUriRoot "/trac"

then the add page doesn't show up when you click the Add button on the screenshots page. If you remove the TracUriRoot option the Add page shows up but the Uri's for multiple project don't work properly.

Attachments (0)

Change History (8)

comment:1 Changed 6 years ago by Blackhex

  • Status changed from new to assigned

I know, it was some older ticket, but I don't know how to fix it and even if it is bug or feature?

comment:2 Changed 6 years ago by anonymous

I'd like to be able to use Screenshots in this configuration. I will see if I can collect more info on it and work out or help you work out a fix as I have time. Previous bugs about it didn't appear to mention the TracParentEnv and TracUriRoot. I'm also running under a virtual host setup in apache.

Please leave the issue open and I'll data as I have time to work on it.

comment:3 Changed 6 years ago by Christian

  • Cc gtvXIanQMCmTLtiR added
  • Keywords RpkNuVtrCyda added

comment6,

comment:4 Changed 5 years ago by MisterDai

  • Cc gtvXIanQMCmTLtiR removed
  • Keywords screenshots added; RpkNuVtrCyda removed

I'm suffering from the same issue. Managed to add a screenshot when I only had the one project and didn't have the project index working. Once I fixed the multiple project index page I found that I couldn't add anymore screenshots. Basically rendering the plugin useless.

comment:5 Changed 5 years ago by weberho

Did you have any time to have a look on that issue?

comment:6 Changed 5 years ago by Blackhex

No, sorry.

comment:7 Changed 5 years ago by Blackhex

  • Resolution set to fixed
  • Status changed from assigned to closed

OK, wasn't so hard as I was affraid of. For some reason unknown to me, mod_python can't handle action="/screenshots" in form tags. Changeset r7481 should fix that. Please test it and sorry for the delay.

comment:8 Changed 5 years ago by Blackhex

Update once more, please. r7481 wasn't really proper way how to fix this and even introduced another bug on screenshot's html view. r7486 should fix that.

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.