Modify ↓
Opened 17 years ago
Closed 17 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 |
Description
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)
Change History (2)
comment:1 Changed 17 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Changed 17 years ago by
| Attachment: | CRLF_LF_Windows.patch added |
|---|
Note: See
TracTickets for help on using
tickets.



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/pape_admin.py
9 - authz_policy_file = open(authz_policy_file_name, 'w') 10+ authz_policy_file = open(authz_policy_file_name, 'wb')