Opened 10 years ago

Closed 10 years ago

#3718 closed defect (fixed)

Extra newlines are added when the fine grained authz file is being saved

Reported by: Jae Owned by: robert_martin
Priority: normal Component: FineGrainedPageAuthzEditorPlugin
Severity: minor Keywords:
Cc: Trac Release: 0.11


When the fine grained authz file is being saved, an extra newline '\n' is added every single line in the file.

Using Trac 0.11.1, Python 2.5.2, mod_python, Apache 2.2.9 on MS Windows

Attachments (1)

CRLF_LF_Windows.patch (738 bytes) - added by JaeWook Choi 10 years ago.

Download all attachments as: .zip

Change History (2)

comment:1 Changed 10 years ago by JaeWook Choi

Resolution: fixed
Status: newclosed

Simple CRLF <-> LF issue between Windows and nix.

Changing file open mode from 'w' to 'wb' solve the problem.

Index: 0.11/page_authz_policy_editor/

9 - authz_policy_file = open(authz_policy_file_name, 'w') 10+ authz_policy_file = open(authz_policy_file_name, 'wb')

Changed 10 years ago by JaeWook Choi

Attachment: CRLF_LF_Windows.patch added

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain robert_martin.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.