Explorar el Código

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

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Anthony Fishbeck hace 11 años
padre
commit
dbda742987
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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();