Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-16322

eZTextFileUser makes user names with newline (with patch)

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.3.0beta2
    • 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

        Activity

          People

            als als
            gl gl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: