Closed Bug 400195 Opened 18 years ago Closed 18 years ago

cert exception file has unix line endings on Windows

Categories

(Core :: Security: PSM, defect, P2)

x86
Windows XP
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: nelson, Assigned: KaiE)

References

Details

(Whiteboard: [has-patch])

Attachments

(1 file)

The new file of bad cert exceptions is a text file. It is written with Unix line endings on all platforms, including Windows. This means it cannot be cleanly displayed or edited on Windows. All text files should have platform-dependent line endings.
Flags: blocking1.9?
Attached patch Patch v1Splinter Review
Attachment #285443 - Flags: review?(nelson)
Comment on attachment 285443 [details] [diff] [review] Patch v1 This will write them correctly. Will they be read correctly?
Attachment #285443 - Flags: review?(nelson) → review+
(In reply to comment #2) > (From update of attachment 285443 [details] [diff] [review]) > This will write them correctly. Will they be read correctly? Yes, tested.
Attachment #285443 - Flags: approval1.9?
If the file can be stored with different endings then the reading code needs to be able to handle any platform's variant at any time. - people copy profiles to new architectures (especially with the rising popularity of multi-OS machines) - people share the same profile directory on different OS's. Again, increasingly true with multi-boot and VM-based multi-OS machines, though from the earliest days Netscape had to worry about network-mounted profiles shared amongst machines with differing endianness.
Comment on attachment 285443 [details] [diff] [review] Patch v1 Please answer dveditz's questions before requesting approval.
Attachment #285443 - Flags: approval1.9? → approval1.9-
I think I answered in comment 3 that I tested that files will always be read correctly, independently of the line endings. The backend code that reads lines in (somewhere in a global stream class) seemed to allow for any combinations of line endings. I explicitly tested: - produce file on Linux - copy file to Windows - run on Windows => works
Comment on attachment 285443 [details] [diff] [review] Patch v1 Kai answered the questions
Attachment #285443 - Flags: approval1.9- → approval1.9?
Comment on attachment 285443 [details] [diff] [review] Patch v1 OK, I understand this bug better now. Thanks Kaie and Nelson.
Attachment #285443 - Flags: approval1.9? → approval1.9+
Flags: blocking1.9? → blocking1.9+
Priority: -- → P2
Whiteboard: [has-patch]
checked in, fixed.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: