User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:18.104.22.168) Gecko/20061204 Firefox/22.214.171.124 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:126.96.36.199) Gecko/20061204 Firefox/188.8.131.52 When using show_bug.cgi with ctype=xml the size of the attachment isn't included in the xml. The size should also be included when the xml is retrieved using excludefield=attachmentdata. Reproducible: Always Steps to Reproduce: 1.View bug with an attachment using ctype=xml 2. 3. Actual Results: attachment element doesn't include size (although this information is available in the html) Expected Results: size should be included in the output xml
Created attachment 250607 [details] [diff] [review] patch, v1
Comment on attachment 250607 [details] [diff] [review] patch, v1 >Index: template/en/default/bug/show.xml.tmpl This works correctly. However, bugzilla.dtd needs to be updated as well.
Created attachment 250714 [details] [diff] [review] patch, v2 Yup, right
Created attachment 250715 [details] [diff] [review] patch, v2.1 grrr...
Checking in bugzilla.dtd; /cvsroot/mozilla/webtools/bugzilla/bugzilla.dtd,v <-- bugzilla.dtd new revision: 1.15; previous revision: 1.14 done Checking in template/en/default/bug/show.xml.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/show.xml.tmpl,v <-- show.xml.tmpl new revision: 1.19; previous revision: 1.18 done
Excellent! Thanks for getting this into 3.0.