Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17169

User script service fails to resolve user specified as string

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 12.3-rc-1
    • 12.2
    • User
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

       

      $services.user.getProperties("xwiki:XWiki.Pablo").getEmail()
      $services.user.getProperties("xwiki:XWiki.Martinez").getEmail()
      

       

      both get the same email address (email of logged-in user) 

      when I use fake user I get still the same email

      $services.user.getProperties("xwiki:XWiki.NNNNNNNNNN").getEmail()

      Connected to:

      [https://forum.xwiki.org/t/get-user-info-services-user-getproperties/6562/4|https://forum.xwiki.org/t/get-user-info-services-user-getproperties/6562/4]

      Attachments

        Activity

          People

            vmassol Vincent Massol
            Rozpalacz Pablo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: