Closed Bug 433514 Opened 16 years ago Closed 16 years ago

Renaming a saved search with the same name of different case causes db error

Categories

(Bugzilla :: Query/Bug List, defect)

3.0.4
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: ed.goose, Assigned: LpSolit)

References

Details

Attachments

(2 files)

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; InfoPath.1; .NET CLR 1.1.4322; MS-RTC LM 8; .NET CLR 2.0.50727) Build Identifier: 3.1.4+ If you save a search as a particular name (e.g. 'test'), edit the search and then try to re-save it as 'Test' (i.e., exactly the same name but of a different case) the database throws a duplicate error and fails. This throws up an error message and the change is not reflected in the database. Reproducible: Always Steps to Reproduce: 1. Run a saved search. 2. Click edit search. 3. Without making changes, click search again. 4. Try to save the search with the same name, but of different case. Actual Results: Error message is thrown, change is not saved. Expected Results: Saved search should be renamed as the new name, and we should get the 'Your search named Test has been updated.' message. The module that failed was: DBD::mysql::db
Attached file Error message thrown by this bug. (deleted) —
Version: unspecified → 3.1.4
I can reproduce on both 3.0.4 and 3.1.4.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking3.2+
Flags: blocking3.0.5+
OS: Windows 2000 → All
Hardware: PC → All
Target Milestone: --- → Bugzilla 3.0
Version: 3.1.4 → 3.0.4
Attached patch patch, v1 (deleted) — Splinter Review
This patch not only fixes the DB crash, but also allows the query to be renamed when the case is different.
Assignee: query-and-buglist → LpSolit
Status: NEW → ASSIGNED
Attachment #320743 - Flags: review?(mkanat)
Comment on attachment 320743 [details] [diff] [review] patch, v1 Sure, looks fine. This is a good case for why we should always use numeric ids for things.
Attachment #320743 - Flags: review?(mkanat) → review+
Flags: approval3.0+
Flags: approval+
tip: Checking in buglist.cgi; /cvsroot/mozilla/webtools/bugzilla/buglist.cgi,v <-- buglist.cgi new revision: 1.374; previous revision: 1.373 done Checking in Bugzilla/Search/Saved.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Search/Saved.pm,v <-- Saved.pm new revision: 1.7; previous revision: 1.6 done 3.0.4: Checking in buglist.cgi; /cvsroot/mozilla/webtools/bugzilla/buglist.cgi,v <-- buglist.cgi new revision: 1.351.2.9; previous revision: 1.351.2.8 done Checking in Bugzilla/Search/Saved.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Search/Saved.pm,v <-- Saved.pm new revision: 1.3.2.2; previous revision: 1.3.2.1 done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: