Opened 8 years ago

Closed 8 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 butterflow 8 years ago.

Download all attachments as: .zip

Change History (2)

comment:1 Changed 8 years ago by butterflow

  • Resolution set to fixed
  • Status changed from new to closed

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 8 years ago by butterflow

Add Comment

Modify Ticket

as closed The owner will remain robert_martin.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.