Edgewall Software
Modify

Ticket #4058 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Two spaces in a component name causes an error

Reported by: recaffeinated john Owned by: cboos
Priority: normal Milestone: 0.11
Component: general Version: 0.10
Severity: minor Keywords: component
Cc:
Release Notes:
API Changes:

Description

After naming a component "Test - General" (notice two spaces after Test) the ticket system wouldn't allow me to assign a ticket to that component. Instead, I received an
error: "Test - General" is not a valid value for the component field.

Attachments

Change History

comment:1 follow-up: Changed 5 years ago by uh oh

Can my email address be removed? I thought it would be obfuscated.

comment:2 in reply to: ↑ 1 Changed 5 years ago by cmlenz

Replying to uh oh:

Can my email address be removed? I thought it would be obfuscated.

Done.

comment:3 Changed 5 years ago by cboos

  • Milestone set to 0.11
  • Owner changed from jonas to cboos

Same issue for milestones (#4142) and probably everything that ends up being put in a <select>. As I don't think there's a good reason to try to preserve the actual number of spaces, we should normalize spaces, i.e. instead of just name.strip(), do ' '.join(name.split()).

comment:4 Changed 5 years ago by cboos

#3454 presented another problem related to non-normalized spaces in enum names.

comment:5 Changed 5 years ago by cboos

  • Keywords component added

#4971 closed as duplicate.

comment:6 Changed 5 years ago by cboos

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

Fixed in r5238 as explained in comment:3.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cboos. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.