Ticket #7617 (new defect)
Various ticket fields don't like leading or trailing /
| Reported by: | rblank | Owned by: | rblank |
|---|---|---|---|
| Priority: | low | Milestone: | 0.11-retriage |
| Component: | ticket system | Version: | 0.11.1 |
| Severity: | minor | Keywords: | milestone |
| Cc: |
Description
As an example, create a milestone where the name either starts or ends with a /. It will be visible in the roadmap, but clicking on the link will lead to an error, saying that the milestone cannot be found. The same problem applies to other enumerated fields like components, priorities or versions, when edited in the admin module.
The problem is due to the roadmap module creating links to milestones using req.href.milestone(milestone_name), and href stripping leading and trailing slashes at this location. The same analysis applies to the admin module.
I'm not sure if the solution is to build the milestone and admin links differently, or to remove the automatic stripping in Href. Opinions welcome.


