Uploaded image for project: 'Security'
  1. Security
  2. SECURITY-2

Email address usernames produce incorrect admincentral urls

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Neutral
    • None
    • 6.2.18
    • None

    Description

      When using an email address for a public account the Security app shows an incorrect node path. Notice the difference between the Security app and the JCR Browser app.

      Security app

      /r/ri/richard.gange[commat]magnolia-cms.com
      

      Jcr Browser

      /public/r/ri/richard.gange@magnolia-cms.com
      

      Notes
      The side effect this issue is also producing (and should be tested) is when configuring the Find Bar to search this workspace you cannot reach the nodes.

      Configure a search result supplier:
      I created the following file: /my-module/searchResultSuppliers/security.yaml

      workspace: users
      nodeTypes:
        - mgnl:user
      fullTextSearch: true
      propertySearch: false
      titleProperty: name
      class: info.magnolia.periscope.search.jcr.JcrSearchResultSupplierDefinition
      appName: security
      subAppName: public
      rootPath: /public
      icon: icon-security-app
      

      Try to search a user which has a username stored using email.

      But we have a problem to open the right app and have the focus to the right line in the tree.

      It works fine, if the name of the found node is a string like "<googleId>_google". The resulting URL is eg http://localhost:8080/dev/.magnolia/admincentral#app:security:public;/1/10/107241501216848955082_google:treeview:

      It doesn't work for all users that are stored with their email addresses as name. The resulting URL is eg http://localhost:8080/dev/.magnolia/admincentral#app:security:public;/:treeview: (so the path is not added to the hash) the right url would be eg. http://localhost:8080/dev/.magnolia/admincentral#app:security:public;/e/ex/example[commat]mycompany.com:treeview:

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              rgange Richard Gange
              AdminX
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: