Closed Bug 342212 Opened 19 years ago Closed 19 years ago

Installation of microsummary with long name (attribute) fails

Categories

(Firefox Graveyard :: Microsummaries, defect, P1)

2.0 Branch
x86
Linux
defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 2 beta2

People

(Reporter: ispiked, Assigned: jminta)

References

()

Details

(Keywords: fixed1.8.1, testcase)

Attachments

(3 files)

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1a3) Gecko/20060620 BonEcho/2.0a3 Steps to reproduce: 1. Open testcase. 2. Click the Install microsummary generator link. Results: No generator installed. Expected results: Microsummary generator should be installed. I get this error in the Error Console: Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIFile.createUnique]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: file:///[snip]/components/nsMicrosummaryService.js :: anonymous :: line 381" data: no] Source File: file:///[snip]/components/nsMicrosummaryService.js Line: 381 I think the best thing to do would be to just fix sanitizeName to truncate the name.
Attached file microsummary generator
Attached file testcase
Keywords: testcase
Priority: -- → P1
Whiteboard: [myk-mss]
Target Milestone: --- → Firefox 2 beta2
Component: Bookmarks → Microsummaries
Flags: blocking-firefox2?
Whiteboard: [myk-mss]
Flags: blocking-firefox2? → blocking-firefox2+
Whiteboard: [at risk]
Attached patch truncate at 60Splinter Review
I really don't have a good feel for where we should truncate these names, but my theory was 60 + createUnique can generally stay under 64, which is a nice magic number in the computer world. I'm open to suggestions for better values though.
Assignee: nobody → jminta
Status: NEW → ASSIGNED
Attachment #229852 - Flags: review?
Attachment #229852 - Flags: review? → review?(myk)
Comment on attachment 229852 [details] [diff] [review] truncate at 60 Note that all three tier 1 platforms support filenames up to 255 characters long, although for Windows the entire path must fit within that limit, according to the following page. http://linuxboxadmin.com/articles/filefriction.php Given the funky Windows behavior, a 64 character limit seems reasonable. Patch looks good, works well. r=myk Thanks for the fix!
Attachment #229852 - Flags: review?(myk) → review+
Checked in to the trunk.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment on attachment 229852 [details] [diff] [review] truncate at 60 Notes for drivers considering this approval request: This fixes an edge case in which we fail to install microsummary generators. The fix is trivial and presents a low risk of regressions. It has been on the trunk since Thursday early morning.
Attachment #229852 - Flags: approval1.8.1?
Comment on attachment 229852 [details] [diff] [review] truncate at 60 a=mconnor on behalf of drivers for checkin to the 1.8 branch
Attachment #229852 - Flags: approval1.8.1? → approval1.8.1+
Keywords: fixed1.8.1
Whiteboard: [at risk]
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: