Browse Source

HPCC-11562 queries-copy from local dali fails when authentication enabled

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Anthony Fishbeck 11 years ago
parent
commit
dbda742987
1 changed files with 2 additions and 0 deletions
  1. 2 0
      esp/services/ws_workunits/ws_workunitsQuerySets.cpp

+ 2 - 0
esp/services/ws_workunits/ws_workunitsQuerySets.cpp

@@ -67,6 +67,8 @@ IClientWUQuerySetDetailsResponse *fetchQueryDetails(IEspContext &context, IClien
         VStringBuffer url("http://%s:%d/WsWorkunits", host.str(), port);
         ws.setown(createWsWorkunitsClient());
         ws->addServiceUrl(url.str());
+        if (context.queryUserId() && *context.queryUserId())
+            ws->setUsernameToken(context.queryUserId(), context.queryPassword(), NULL);
     }
     //using existing WUQuerysetDetails rather than extending WUQueryDetails, to support copying query meta data from prior releases
     Owned<IClientWUQuerySetDetailsRequest> reqQueryInfo = ws->createWUQuerysetDetailsRequest();