Opened 15 years ago
Closed 14 years ago
#9020 closed defect (cantfix)
Changes to component list not reflected in Ticket Component drop-down
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | ticket system | Version: | 0.11.5 |
Severity: | normal | Keywords: | needinfo |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Environment: Trac 11.5 served via mod_python on Ubuntu 9.10
Steps to reproduce:
Initialize a new trac environment.
Open browser to Trac, Login.
Click "New Ticket" button
Note that component drop-down lists component1, component2.
shell:
trac-admin /trac/env
in interactive mode:
component remove component1
component remove component2
component add newcomponent bob
permission add bob TRAC_ADMIN
quit
browser:
Navigate back to the new ticket screen
Note that component drop-down still contains component1, component2
Go to Admin tab→Components
Note that list of components only contains "newcomponent"
scratch head
Remove newcomponent
Navigate back to New Ticket screen, note that "Component" field is gone (as expected)
Navigate back to Admin tab→Components
Add "newcomponent" with owner bob
Navigate back to New Ticket screen. Note that "newcomponent" is now only value available (as expected)
I did search for existing ticket. I'm sorry if I missed it. I hate dupes too…
Attachments (0)
Change History (4)
comment:1 by , 15 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 by , 15 years ago
Keywords: | needinfo added |
---|---|
Resolution: | worksforme |
Status: | closed → reopened |
Oh, wait, your symptoms are the inverse of what normally happens in that case. Does the user under which you run trac-admin
have write access to trac.ini
and the conf
directory?
comment:3 by , 15 years ago
I'm away from that machine right now, so I'll have to check tonight. However, I find it difficult to believe that this is a permission problem. The changes I made via trac-admin were reflected in multiple locations in the application. I was able to grant the web user TRAC_ADMIN, which caused the Admin tab to become available immediately. The component I added via trac-admin was visible in the component editor of the Admin tab. Also, the default components I deleted via trac-admin were gone from the component editor. If this were a permission problem, I would expect that none of these changes made in trac-admin would be reflected on the web.
It was only the New Ticket screen which continued to show the deleted components and refused to show the new component. Once I deleted all components, and re-added one through the web component editor, things worked well.
I'm going to re-init my trac environment tonight (restructuring svn/trac for future growth, now that I've had a chance to think about it a bit). I'll update with more information if I find anything new.
Additional bit of environment info: trac is backed by postgres in my installation.
This is most probably an InstallationIssue. Please make sure your
trac.ini
and theconf
directory where it is located are writable by the web server.