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

eZTextFileUser makes user names with newline (with patch)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 4.0.7, 4.1.4, 4.2.0, 4.3.0beta1
    • Fix Version/s: 4.3.0beta2
    • Labels:
      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

            Activity

              People

              Assignee:
              als Disabled User
              Reporter:
              gl (inactive) Gunnstein Lye
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: