From 25463cd897f0974e68f129a9d5916ddc25938bb4 Mon Sep 17 00:00:00 2001 From: bourgeoa Date: Sat, 1 Feb 2025 18:03:34 +0100 Subject: [PATCH 1/3] test --- lib/ldp.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/ldp.js b/lib/ldp.js index e3c261f6a..fc2f634ae 100644 --- a/lib/ldp.js +++ b/lib/ldp.js @@ -243,15 +243,15 @@ class LDP { throw error(413, 'User has exceeded their storage quota') } // Set url using folder/.meta. This is Hack to find folder path - if (container) { - if (typeof url !== 'string') { - url.url = url.url + suffixMeta - } else { - url = url + suffixMeta - } - contentType = 'text/turtle' - } - const { path } = await this.resourceMapper.mapUrlToFile({ url, contentType, createIfNotExists: true }) + let { path } = await this.resourceMapper.mapUrlToFile({ + url, + contentType, + createIfNotExists: true, + searchIndex: false + }) + + if (container) { path += suffixMeta } + // debug.handlers(container + ' item ' + (url.url || url) + ' ' + contentType + ' ' + path) // check if file exists, and in that case that it has the same extension if (!container) { await this.checkFileExtension(url, path) } @@ -264,7 +264,7 @@ class LDP { // clearAclCache() } // Directory created, now write the file - if (container) return + // if (container) return // alain return withLock(path, () => new Promise((resolve, reject) => { // HACK: the middleware in webid-oidc.js uses body-parser, thus ending the stream of data // for JSON bodies. So, the stream needs to be reset From 8a9ecfdfd83697b1628670535f6b1d6cbe196909 Mon Sep 17 00:00:00 2001 From: Alain Bourgeois Date: Mon, 14 Apr 2025 16:52:53 +0200 Subject: [PATCH 2/3] Update ci.yml to 18 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c89132d3..17f28cbe4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: - node-version: [ '^20.17.0' ] + node-version: [ '^18.19.0' ] os: [ubuntu-latest] steps: From 48ca92c10de80c56ff6452992614514dcd150658 Mon Sep 17 00:00:00 2001 From: Alain Bourgeois Date: Mon, 14 Apr 2025 16:59:03 +0200 Subject: [PATCH 3/3] Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d149bb6b1..c359e308b 100644 --- a/package.json +++ b/package.json @@ -149,9 +149,9 @@ "solid": "node --experimental-require-module ./bin/solid", "standard": "standard \"{bin,examples,lib,test}/**/*.js\"", "validate": "node ./test/validate-turtle.js", - "c8": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 c8 --reporter=text-summary mocha -n experimental-require-module --recursive test/integration/ test/unit/", + "c8": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 c8 --reporter=text-summary mocha --recursive test/integration/ test/unit/", "mocha": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 mocha -n experimental-require-module --recursive test/integration/ test/unit/", - "mocha-integration": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 mocha -n experimental-require-module --recursive test/integration/http-test.js", + "mocha-integration": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 mocha --recursive test/integration/http-test.js", "mocha-account-creation-oidc": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 mocha --recursive test/integration/account-creation-oidc-test.js", "mocha-account-manager": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 mocha --recursive test/integration/account-manager-test.js", "mocha-account-template": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 mocha --recursive test/integration/account-template-test.js",