Pārlūkot izejas kodu

Merge branch 'master' into candidate-4.2.0

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 11 gadi atpakaļ
vecāks
revīzija
b7819c6a9a
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4 4
      esp/services/ws_workunits/ws_workunitsAuditLogs.cpp

+ 4 - 4
esp/services/ws_workunits/ws_workunitsAuditLogs.cpp

@@ -1389,11 +1389,11 @@ int CWsWorkunitsSoapBindingEx::onGet(CHttpRequest* request, CHttpResponse* respo
         nextPathNode(pos, wuid, 2);
         Owned<IWuWebView> web = createWuWebView(wuid, wuid, getCFD(), true);
         if (!web)
-            throw createEspHttpException(ECLWATCH_CANNOT_OPEN_WORKUNIT, "Cannot open workunit", HTTP_STATUS_OK);
+            throw MakeStringException(ECLWATCH_CANNOT_OPEN_WORKUNIT, "Cannot open workunit");
         MemoryBuffer mb;
         StringAttr mimetype(mimeTypeFromFileExt(strrchr(pos, '.')));
         if (!web->getResourceByPath(pos, mb))
-            throw createEspHttpException(ECLWATCH_RESOURCE_NOT_FOUND, "Cannot open resource", HTTP_STATUS_OK);
+            throw MakeStringException(ECLWATCH_RESOURCE_NOT_FOUND, "Cannot open resource");
 
         response->setContent(mb.length(), mb.toByteArray());
         response->setContentType(mimetype.get());
@@ -1408,10 +1408,10 @@ int CWsWorkunitsSoapBindingEx::onGet(CHttpRequest* request, CHttpResponse* respo
         nextPathNode(pos, wuid, 2);
         Owned<IWuWebView> web = createWuWebView(wuid, wuid, getCFD(), true);
         if (!web)
-            throw createEspHttpException(ECLWATCH_CANNOT_OPEN_WORKUNIT, "Cannot open workunit", HTTP_STATUS_OK);
+            throw MakeStringException(ECLWATCH_CANNOT_OPEN_WORKUNIT, "Cannot open workunit");
         StringBuffer mf;
         if (!web->getManifest(mf).length())
-            throw createEspHttpException(ECLWATCH_RESOURCE_NOT_FOUND, "Cannot open manifest", HTTP_STATUS_OK);
+            throw MakeStringException(ECLWATCH_RESOURCE_NOT_FOUND, "Cannot open manifest");
 
         response->setContent(mf.str());
         response->setContentType("text/xml");