Opened 17 years ago
Closed 10 years ago
#7874 closed defect (duplicate)
Changing component makes owner "none" while owner should be empty
| Reported by: | Owned by: | Ryan J Ollos | |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | ticket system | Version: | 0.11.1 | 
| Severity: | minor | Keywords: | verify | 
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
I have a set of tickets of type "defect"
When an action "add comment" is performed, the ticket is disowned (owner is empty), and status becomes new. The ticket shows up in "new defects", this is exactly as expected.
When I change the component of a "defect" ticket, the owner becomes "None" (seen when listing all tickets), the ticket itself shows "new defect". But when the owner is "None" in stead of empty, the ticket does not show up in the "new defects list", while the ticket is a new defect.
so:
1) changing the component of "defect" tickets makes it's owner "None" while it should be empty.
2) lisitng "new defect" does not list the new defects with owner "None", only the ones with an empty owner field
3) the "None" owner is seen in the "list all tickets", but when showing http://trac/xx/ticket/<number>, the "owned by" field of a ticket owned by "None" is empty
Attachments (1)
Change History (12)
by , 17 years ago
comment:1 by , 17 years ago
Workaround:
in the original "list new defects" query change:
… and owner = ''
to:
… and ( owner = '' or owner is null )
The issue is now: Why is the owner sometimes empty and sometimes null (listed as "None" in "view all tickets" and listed as empty in the ticket itself)
comment:2 by , 17 years ago
| Component: | general → ticket system | 
|---|---|
| Keywords: | verify added | 
| Milestone: | → 0.11.4 | 
| Priority: | normal → low | 
| Severity: | normal → minor | 
comment:3 by , 16 years ago
In you configuration, on new, test_gefaald → new you do the operation del_owner.
Now, in your configuration, see trac admin components, you have assigned None as the owner to all or some of your components, right?
Now, when setting the component to a different one, then the owner that was assigned to that component will be set as the owner of the ticket.
Perhaps that would solve your problem.
comment:4 by , 12 years ago
| Cc: | added | 
|---|
comment:6 by , 11 years ago
| Milestone: | next-minor-0.12.x → next-stable-1.0.x | 
|---|
comment:7 by , 11 years ago
| Milestone: | next-stable-1.0.x → 1.0.6 | 
|---|
comment:8 by , 11 years ago
| Owner: | set to | 
|---|---|
| Status: | new → assigned | 
comment:9 by , 11 years ago
| Milestone: | 1.0.6 → 1.0.7 | 
|---|
comment:10 by , 10 years ago
| Milestone: | 1.0.7 → 1.2 | 
|---|
comment:11 by , 10 years ago
| Cc: | removed | 
|---|---|
| Milestone: | 1.2 | 
| Resolution: | → duplicate | 
| Status: | assigned → closed | 
Based on the testing I've done, the issue is fixed in #11018. NULL is stored in the database when saving an owner with value None or an empty string.



  
trac.ini