Modify

Opened 14 years ago

Closed 14 years ago

#8381 closed defect (fixed)

Failure to verify valid passwords after migration Windows => FreeBSD

Reported by: Steffen Hoffmann Owned by: Steffen Hoffmann
Priority: normal Component: AccountManagerPlugin
Severity: critical Keywords: htpasswd file linebreak style
Cc: Trac Release: 0.11

Description

As I've been informed by Honza Rameš lately, there is potential portability issue in the current htfile.py code for 0.10 and 0.11 branch.

It arises from improper handling (.strip()) of lines read for password matching due to different EOL style in Windows and BSD (and of course other systems too).

The trunk branch is no affected, since this issue has been prevented by opening the password store file in unified mode since [9272].

Attachments (1)

htfile.patch (534 bytes) - added by ramejan@… 14 years ago.
Original patch I submitted to Steffen during my research of the issue

Download all attachments as: .zip

Change History (3)

comment:1 Changed 14 years ago by Steffen Hoffmann

Status: newassigned
Summary: Unable to correctly verify valid passwords after migration Windows => FreeBSDFailure to verify valid passwords after migration Windows => FreeBSD

As the aforementioned code is still not part of any stable release, I'll go and apply the suggested fix to still get some improvement for stable releases NOW.

comment:2 Changed 14 years ago by Steffen Hoffmann

Resolution: fixed
Status: assignedclosed

(In [9749]) AccountManagerPlugin: Prevent password matching failure for PasswordFileStores, closes #8381.

This is a reported portability issue, but the code change here is meant as an interim/maintenance revision, before the issue with different EOL styles across different OS platforms is addressed more general by merging [9272] from trunk into the other branches.

Changed 14 years ago by ramejan@…

Attachment: htfile.patch added

Original patch I submitted to Steffen during my research of the issue

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Steffen Hoffmann.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.