Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.0.7, 4.1.4, 4.2.0, 4.3.0beta1
-
None
Description
eZTextFileUser uses fgets() to read a line from the CSV file. It doesn't trim the newline which is included at the end of the line. This means that the last name of the user, and the object name, will end with a newline. This causes the url alias system to choke.
The patch simply adds a trim() around the fgets(). It also removes a stray whitespace.
Steps to reproduce
- Set up textfile based login
- Log in with a textfile user
- Go to the user list, try to view the user that was created -> this gives an "object not found" error (but viewing it with content/view/full/ works)
- In the database, both ezcontentobject.name and ezurlalias_ml.text end with a newline
Attachments
Issue Links
- relates to
-
EZP-16048 eZTextFileUser login fail on mysql master/slave
- Closed