Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#7161 closed defect (invalid)

Version drop-list not populated with all versions

Reported by: derek.hoyle@… Owned by: mestudd
Priority: normal Component: ExtendedVersionPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

The "Version" drop-list in the Edit Milestone page is only populated with versions that contain alpha-numeric and '.'. '/' and '?' seem to break it, so the list stops at the first version that contains '/' or '?'. Subsequent "good" versions are also omitted, so I guess it drops out at the first occurrence.

I haven't tried any other characters. We just happen to have a few versions with '/' and '?'.

Attachments (1)

version-names.png (14.5 KB) - added by mestudd 4 years ago.

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by mestudd

comment:1 Changed 4 years ago by mestudd

Seems to work for me: attachment:version-names.png

It sounds like Genshi is generating bad markup. What version of Genshi do you have installed?

Do the versions all appear in the drop-down for tickets?

comment:2 Changed 4 years ago by derek.hoyle@…

Here's my environment:

Trac: 0.11.7
Python: 2.5.2 (r252:60911, Jan 24 2010, 15:24:24) [GCC 4.3.2]
setuptools: 0.6c9
SQLite: 3.5.9
pysqlite: 2.4.1
Genshi: 0.5.1
mod_python: 3.3.1
Pygments: 0.10
Subversion: 1.5.1 (r32289)
jQuery: 1.2.6

comment:3 follow-up: Changed 4 years ago by derek.hoyle@…

  • Resolution set to invalid
  • Status changed from new to closed
  • Summary changed from Version drop-list not populated if versions contain certain characters to Version drop-list not populated with all versions

Got it! This is a complete red herring - sorry for the trouble.

It was just a coincidence that all "clean" versions had future dates, and all the unusual ones had past dates (because they are real releases that happened). Each time you edit a version with no date, Trac populates the date with "NOW". So every new one I added or old one I changed got "NOW", and promptly disappeared.

So, it seems that only a future version can be added to a milestone. That makes perfect sense.

Thanks for your time, and keep up the good work. This is a very useful plug-in.

comment:4 in reply to: ↑ 3 Changed 4 years ago by mestudd

Replying to derek.hoyle@embeduk.com:

Each time you edit a version with no date, Trac populates the date with "NOW". So every new one I added or old one I changed got "NOW", and promptly disappeared.

Yup, I almost got caught by that investigating this. It's kind of annoying.

Thanks for your time, and keep up the good work. This is a very useful plug-in.

Thanks!

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.