Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-253

Unfriendly message appears when trying to login with username which contains symbol '\'

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2 Enterprise, 3.3 Community
    • Fix Version/s: 3.3 Enterprise
    • Component/s: Alfresco Explorer
    • Labels:
      None
    • Environment:
      Alfresco 3.2 Ent build 79 RHEL 5 x64, Tomcat 6.0.18, MySQL 5.1.30, JDK 6u16 x64. Client: Windows XP SP2, F3.5
    • Testcase ID:
      Hide

      Explorer-2353

      Show
      Explorer-2353
    • Resolution Time Custom Field:
      35 weeks, 2 days, 22 hours, 43 minutes, 21 seconds

      Description

      Steps to reproduce:
      1. Go to the Alfresco Login page
      2. Fill field "User Name" with any value, which contains '\' symbol (ex. asdf)
      3. Fill field "Password" with any value (more than 3 symbols)
      4. Click "Login" button
      Result:
      Unfriendly message shows:
      javax.faces.FacesException: Error calling action method of component with id loginForm:submit
      caused by:
      javax.faces.el.EvaluationException: Exception while invoking expression #

      {LoginBean.login}

      caused by:
      org.alfresco.repo.search.SearcherException: Failed to parse query: @usr\:username:""[|]'~<!--@/$%^&#/()?>,.*/\"
      caused by:
      org.apache.lucene.queryParser.ParseException: Cannot parse '@usr\:username:""[|]'~<!--@/$%^&#/()?>,.*/\"': Lexical error at line 1, column 47.
      Encountered: <EOF> after : "\"\u201c[|]\u2019~<!--@/$%^&#/()?>,.*/\\\""

      Expected result:
      Friendly message should be shown, for example: User ID cannot contain the characters: \

      AlexeyBu

        Attachments

          Activity

            People

            • Assignee:
              closedbugs Closed Bugs
              Reporter:
              alfrescoqa Alfresco QA Team
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: