Closed
Bug 358238
Opened 19 years ago
Closed 19 years ago
The string "attachment" followed by a number anywhere in bugzilla will mess up attachment
Categories
(Bugzilla :: Attachments & Requests, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: xq0948, Unassigned)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
Build Identifier: bugzilla 2.22
Bugzilla automatically creates an extra link to a string "attachment" followed by a number.
Here's the example:
The first line is the real attachment created. The second line is summary in attachment and the third line is the extra link created automatically by bugzilla.
***********
Created an attachment (id=2892) [edit]
test attachment
attachment 2 [details] [diff] [review] [edit]
Reproducible: Always
Steps to Reproduce:
1. Attach a file
2. Enter description
3. Type attachment 2 [details] [diff] [review] in Comment field in attachment or summary field
Actual Results:
extra link automatically created besides the real attachment
Expected Results:
only one attachment created
it is a big mess as you can get someone else attachment
Comment 1•19 years ago
|
||
The third line is something you typed or added--that's not generated by Bugzilla.
Yes, Bugzilla does intentionally highlight "Attachment #" so that you can easily link directly to certain attachments in comments.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
Updated•19 years ago
|
Status: RESOLVED → VERIFIED
The problem I have is that the extra link doesn't refer to the attachment in the same bug but search for the string match and create an extra link to the match. For instance, if I type "attachment 2 [details] [diff] [review]" in attachment Comment or Summary, it will create a link that doesn't refer to the second attachment in my bug but some other bug that has an url: http://bugzilla.gsk.com/attachment.cgi?id=2&action=view, which is very confusing.
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---
Comment 3•19 years ago
|
||
This is exactly the desired behavior. Each attachment within your Bugzilla installation has a unqiue ID. So attachment 2 [details] [diff] [review] is the 2nd attachment in this installation, not in this bug. If you want to point to the 2nd attachment of this bug, look at its ID and insert it instead of "2".
Please leave this bug as INVALID.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago → 19 years ago
Resolution: --- → INVALID
Updated•19 years ago
|
Severity: major → normal
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•