From 89018eec9168b55a8e4e44144c27bb45ab090e93 Mon Sep 17 00:00:00 2001 From: Tim Gerstel Date: Thu, 23 Sep 2021 19:14:13 -0400 Subject: [PATCH 1/6] Add PUT method for dataset creation Signed-off-by: Tim Gerstel --- c/datasetService.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/c/datasetService.c b/c/datasetService.c index 9a82ad5a9..a35a622ab 100644 --- a/c/datasetService.c +++ b/c/datasetService.c @@ -108,6 +108,15 @@ static int serveDatasetContents(HttpService *service, HttpResponse *response){ updateDataset(response, filename, TRUE); } + else if (!strcmp(request->method, methodPUT)){ + char *l1 = stringListPrint(request->parsedFile, 1, 1, "/", 0); + char *percentDecoded = cleanURLParamValue(response->slh, l1); + char *filenamep1 = stringConcatenate(response->slh, "//'", percentDecoded); + char *filename = stringConcatenate(response->slh, filenamep1, "'"); + zowelog(NULL, LOG_COMP_ID_MVD_SERVER, ZOWE_LOG_DEBUG, "Allocating dataset: %s\n", filename); + fflush(stdout); + newDataset(response, filename, TRUE); + } else if (!strcmp(request->method, methodDELETE)) { char *l1 = stringListPrint(request->parsedFile, 1, 1, "/", 0); char *percentDecoded = cleanURLParamValue(response->slh, l1); From 2aa6976a3287f2600c0fc15fe4508bd75b2171bd Mon Sep 17 00:00:00 2001 From: Tim Gerstel Date: Thu, 23 Sep 2021 19:21:16 -0400 Subject: [PATCH 2/6] Add deps Signed-off-by: Tim Gerstel --- deps/zowe-common-c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/zowe-common-c b/deps/zowe-common-c index ec98abd84..9bfe59e8f 160000 --- a/deps/zowe-common-c +++ b/deps/zowe-common-c @@ -1 +1 @@ -Subproject commit ec98abd84eb60df2f30d5212620166a5f43bcc00 +Subproject commit 9bfe59e8ff5e426bab02dea8263f5c8396b5454b From 9ab35af430cad4bc356e63d11ee9ae4a0076c485 Mon Sep 17 00:00:00 2001 From: Tim Gerstel Date: Mon, 27 Sep 2021 10:19:33 -0400 Subject: [PATCH 3/6] Update dep pointer Signed-off-by: Tim Gerstel --- deps/zowe-common-c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/zowe-common-c b/deps/zowe-common-c index 9bfe59e8f..b56c4246f 160000 --- a/deps/zowe-common-c +++ b/deps/zowe-common-c @@ -1 +1 @@ -Subproject commit 9bfe59e8ff5e426bab02dea8263f5c8396b5454b +Subproject commit b56c4246fbb0cf4c6234c3d89884e2ad7774cea2 From 3b5e9d362956ee88998112bec8fc085266965f9f Mon Sep 17 00:00:00 2001 From: Tim Gerstel Date: Mon, 27 Sep 2021 11:18:20 -0400 Subject: [PATCH 4/6] Update deps pointer Signed-off-by: Tim Gerstel --- deps/zowe-common-c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/zowe-common-c b/deps/zowe-common-c index b56c4246f..c566cd5d2 160000 --- a/deps/zowe-common-c +++ b/deps/zowe-common-c @@ -1 +1 @@ -Subproject commit b56c4246fbb0cf4c6234c3d89884e2ad7774cea2 +Subproject commit c566cd5d2bdb001e8f6bc79fffe7e65d3df477e6 From a89146332e42986e7948831b97f54a2116ce47a1 Mon Sep 17 00:00:00 2001 From: Tim Gerstel Date: Mon, 27 Sep 2021 11:44:19 -0400 Subject: [PATCH 5/6] Update deps ref Signed-off-by: Tim Gerstel --- deps/zowe-common-c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/zowe-common-c b/deps/zowe-common-c index c566cd5d2..f5717d55b 160000 --- a/deps/zowe-common-c +++ b/deps/zowe-common-c @@ -1 +1 @@ -Subproject commit c566cd5d2bdb001e8f6bc79fffe7e65d3df477e6 +Subproject commit f5717d55ba387332bd400ca67d323095d8e287a9 From 468f868cc07d78149337d230c545315348a75b66 Mon Sep 17 00:00:00 2001 From: Tim Gerstel Date: Mon, 27 Sep 2021 11:56:33 -0400 Subject: [PATCH 6/6] Update deps ref Signed-off-by: Tim Gerstel --- deps/zowe-common-c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/zowe-common-c b/deps/zowe-common-c index f5717d55b..ec98abd84 160000 --- a/deps/zowe-common-c +++ b/deps/zowe-common-c @@ -1 +1 @@ -Subproject commit f5717d55ba387332bd400ca67d323095d8e287a9 +Subproject commit ec98abd84eb60df2f30d5212620166a5f43bcc00