Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3382

Ranger usersync 401 duration for sync

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.0, 2.1.0
    • None
    • usersync
    • None

    Description

      1:When I use ugsync for LDAP data synchronization, I find that the API has errors for some reason. At this time, the API will return 404, and then the client side will clear the sessionid, resulting in 401 errors in subsequent synchronization cycles. 
      2:the first use cookie call api,then will   cookieClient.removeAllFilters();
      The code is as follows:
      protected WebResource createWebResourceForCookieAuth(int currentIndex, String relativeURL) { Client cookieClient = getClient(); cookieClient.removeAllFilters(); WebResource ret = cookieClient.resource(configuredURLs.get(currentIndex) + relativeURL); return ret; } 
       3:then the next time have some error ,then the next time there not have cookie ,then connect will response 401 ,because cookieClient  have not any filter ,contain httpBasicAuthFilter(username,password).
      4:Then I load httpbasicauthfilter every time before using it.
       
       

      Attachments

        Activity

          People

            Unassigned Unassigned
            strong strong
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: