PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-46589

Sharepoint connector does not prepend the NTLM domain name to the user screen name when performing searches

    Details

    • Branch Version/s:
      6.2.x
    • Backported to Branch:
      Committed
    • Story Points:
      14
    • Fix Priority:
      4
    • Similar Issues:
      Show 4 results 

      Description

      When performing a search by user name, the connector is not prepending the NTLM domain (which is basically the host name) to the user screen name. Thus, is searches for (for example) "administrator" instead of for "sharepoint-server\administrator".

      That makes searches by user fail.

        Issue Links

          Activity

          Hide
          Shitian "Shelton" Zhang added a comment -

          PASSED Manual Testing using the following steps:

          1. Set up sharepoint.
          2. Change log level to DEBUG: com.liferay.sharepoint.repository.search.SharepointQueryBuilder.
          3. Add a sharepoint repositoriy.
          4. Add a file and then search by "administrator".

          Fixed on:
          Tomcat 7.0.42 + MySQL 5.5.34. Portal ee-6.2.x EE GIT ID: 3ae7e23579e1e44d3405cc807623405537ae67c2.
          Plugins ee-6.2.x GIT ID: bbaedf23e9d2c8a5ddeb4b177ec0035fa695a5ab.
          Tomcat 7.0.42 + MySQL 5.5.34. Portal master GIT ID: 7d3bf0886ec334739fb107eb3c8c8bd543226952.
          Plugins ee-7.0.x GIT ID: 08bc0a9361889261ec4e79317f130667d33fbdbd.

          Check logs:

          02:41:17,897 DEBUG [http-bio-8080-exec-3][SharepointQueryBuilder:354] Liferay query: <MUST><MUST><SHOULD>folderId == "10563"</SHOULD></MUST></MUST><MUST><SHOULD><SHOULD>title == "administrator"</SHOULD></SHOULD><SHOULD><SHOULD>userName == "administrator"</SHOULD></SHOULD><SHOULD><SHOULD>content == "administrator"</SHOULD></SHOULD></MUST>
          02:41:17,899 DEBUG [http-bio-8080-exec-3][SharepointQueryBuilder:355] Sharepoint query: <Query><Where><And><Eq><FieldRef Name="FileDirRef"></FieldRef><Value Type="TEXT">Documents</Value></Eq><Or><Eq><FieldRef Name="FileLeafRef"></FieldRef><Value Type="TEXT">administrator</Value></Eq><Eq><FieldRef Name="Modified_x0020_By"></FieldRef><Value Type="TEXT">liferay-20jf4ic\administrator</Value></Eq></Or></And></Where></Query>
          02:41:17,901 DEBUG [http-bio-8080-exec-3][SharepointQueryBuilder:356] Sharepoint query options list: <QueryOptions><Folder></Folder></QueryOptions>
          

          It's:

          <FieldRef Name="Modified_x0020_By"></FieldRef>
          <Value Type="TEXT">liferay-20jf4ic\administrator</Value>
          
          Show
          Shitian "Shelton" Zhang added a comment - PASSED Manual Testing using the following steps: Set up sharepoint. Change log level to DEBUG: com.liferay.sharepoint.repository.search.SharepointQueryBuilder . Add a sharepoint repositoriy. Add a file and then search by "administrator". Fixed on: Tomcat 7.0.42 + MySQL 5.5.34. Portal ee-6.2.x EE GIT ID: 3ae7e23579e1e44d3405cc807623405537ae67c2. Plugins ee-6.2.x GIT ID: bbaedf23e9d2c8a5ddeb4b177ec0035fa695a5ab. Tomcat 7.0.42 + MySQL 5.5.34. Portal master GIT ID: 7d3bf0886ec334739fb107eb3c8c8bd543226952. Plugins ee-7.0.x GIT ID: 08bc0a9361889261ec4e79317f130667d33fbdbd. Check logs: 02:41:17,897 DEBUG [http-bio-8080-exec-3][SharepointQueryBuilder:354] Liferay query: <MUST><MUST><SHOULD>folderId == "10563" </SHOULD></MUST></MUST><MUST><SHOULD><SHOULD>title == "administrator" </SHOULD></SHOULD><SHOULD><SHOULD>userName == "administrator" </SHOULD></SHOULD><SHOULD><SHOULD>content == "administrator" </SHOULD></SHOULD></MUST> 02:41:17,899 DEBUG [http-bio-8080-exec-3][SharepointQueryBuilder:355] Sharepoint query: <Query><Where><And><Eq><FieldRef Name= "FileDirRef" ></FieldRef><Value Type= "TEXT" >Documents</Value></Eq><Or><Eq><FieldRef Name= "FileLeafRef" ></FieldRef><Value Type= "TEXT" >administrator</Value></Eq><Eq><FieldRef Name= "Modified_x0020_By" ></FieldRef><Value Type= "TEXT" >liferay-20jf4ic\administrator</Value></Eq></Or></And></Where></Query> 02:41:17,901 DEBUG [http-bio-8080-exec-3][SharepointQueryBuilder:356] Sharepoint query options list: <QueryOptions><Folder></Folder></QueryOptions> It's: <FieldRef Name= "Modified_x0020_By" > </FieldRef> <Value Type= "TEXT" > liferay-20jf4ic\administrator </Value>

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                39 weeks, 4 days ago

                Development

                  Structure Helper Panel