277 Commits

Author SHA1 Message Date
Joachim Van Herwegen
87a54011b4 refactor: Extend and update the ConversionUtil functions 2021-04-27 16:11:50 +02:00
Joachim Van Herwegen
1d9b027a57 feat: Remove podTemplateFolder as a variable.
This is now possible due to TemplatedResourcesGenerator
accepting path strings relative to the module root.
2021-04-22 17:04:16 +02:00
Arthur Joppart
99d0173213
feat: Add redis based locking mechanism
* feat: redis based locking mechanism

* fix: adapted to review and wrote unit tests

* fix: adapted to review(Woutermont)

* fix: adapted to review and expanded tests

* test: redlock integration tests

* test: corrected file name

* test: tests should run on CI now

* test: improved tests and minor changes according to review

* fix: forgot describeIf docker

* test: adapted to review

* test: Mock all redis dependencies

Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
2021-04-19 09:45:25 +02:00
Joachim Van Herwegen
953458231b fix: Prevent HttpRequest from being closed
In case a stream the request is being piped into closes,
we don't want to close the request since it shares a socket
with the response.
2021-04-09 09:04:25 +02:00
Joachim Van Herwegen
e3cf2f9469 test: Add integration tests for dynamic pod creation
Also fixed issue with pod template acl files
2021-03-02 11:47:07 +01:00
Joachim Van Herwegen
38afd72098 refactor: Rename Agent to PodSettings 2021-03-02 11:47:07 +01:00
Matthieu Bosquet
2a34a430fa fix: SPARQL PATCH Content Type 2021-02-26 15:51:35 +01:00
Arne Vandoorslaer
b3f292d718
feat: Added resourceExists method to ResourceStore
* feat: added resourceExists method to ResourceStore

* Merge remote-tracking branch 'origin/main' into feat/add-resourceExists-method-to-ResourceStore

* fix: adapted to review

* fix: adapted to review
2021-02-25 13:43:58 +01:00
Joachim Van Herwegen
e5b7d99da4 test: Add subdomain integration tests 2021-02-25 13:16:26 +01:00
Joachim Van Herwegen
797e804c07 feat: Add config presets for subdomain support 2021-02-25 13:16:26 +01:00
Joachim Van Herwegen
a28fb0258f feat: Use an IdentifierStrategy in InMemoryDataAccessor
Now it's also possible to support multiple root containers.
2021-02-25 13:16:26 +01:00
Ruben Verborgh
c3cff553e3 feat: Emit container pub event on PUT.
Closes https://github.com/solid/community-server/issues/612
2021-02-24 12:04:42 +01:00
Arthur Joppart
28c0eb7e88
Correctly handle slugs in POST requests
* bug: correctly handle slug in POST request

* bug: disallow slashes in slug + modified tests

* fix: fixed tests to work with PUT instead of POST+slug

* fix: fixed tests failing in ci

* fix: adapted to reviews

* fix: adapted to review
2021-02-24 12:03:41 +01:00
Joachim Van Herwegen
4efe9cee3c feat: Integrate WAC-Allow header support 2021-02-18 14:13:47 +01:00
Joachim Van Herwegen
0c047234e3 feat: Support auxiliary behaviour in DataAccessorBasedStore 2021-02-18 13:26:08 +01:00
Joachim Van Herwegen
061c856161 feat: Add auxiliary support to LockingResourceStore
This way locks are always on the associated resource
if there is a request on an auxiliary resource.
2021-02-18 13:26:08 +01:00
Joachim Van Herwegen
8339413ab4 feat: Add permissions extractor for acl resources 2021-02-18 13:26:08 +01:00
Joachim Van Herwegen
758f5ed083 feat: Generalize AclManager to AuxiliaryManager 2021-02-18 13:26:08 +01:00
Joachim Van Herwegen
766e6318ba feat: Add control permission to PermissionSet
This is in preparation of generalizing permissions
of auxiliary resources.
2021-02-18 13:26:08 +01:00
Joachim Van Herwegen
49a04c4d0a test: Remove root folder creation from integration tests
This should be handled by the initializer
2021-02-11 14:35:56 +01:00
Joachim Van Herwegen
bb65630441 fix: Remove default root container from InMemoryDataAccessor 2021-02-11 14:35:56 +01:00
Stijn Taelemans
ce1f4300ff
feat: Replace express with native http module
* refactor: replace express with native http module

* fix: 404 when unhandled

* chore: removed express dependency

* chore: updated package-lock.json

* docs: added documentation for BaseHttpServerFactory

* chore: updated package-lock.json

Co-authored-by: Arthur Joppart <arthur@digita.ai>
2021-02-11 10:15:40 +01:00
Joachim Van Herwegen
230303e7d7 test: Add fetch-based integration tests
This way we already have some basic test
until the mocking library is completely removed.
2021-02-10 16:00:35 +01:00
Joachim Van Herwegen
b61d46900f feat: Create new interface for lockers with only 1 kind of lock 2021-02-09 14:35:12 +01:00
Joachim Van Herwegen
73acb9cd52 fix: Prevent race condition in OPTIONS call 2021-02-05 17:18:45 +01:00
Ruben Verborgh
a57105be8e change: Query string does not influence identifier. 2021-01-29 09:12:49 +01:00
Joachim Van Herwegen
93e53b3d24 fix: Only require append permissions on POST requests 2021-01-27 11:54:15 +01:00
Joachim Van Herwegen
7cf22be00c fix: Remove data.once('data') checks from test
They were not needed for the test (only need to check if stream is destroyed
or not), and caused errors in Node 14.0.
2021-01-26 23:32:44 +01:00
Joachim Van Herwegen
2c3300028e feat: Add acl link header writer
This writer will add a link to the corresponding acl file
for all LDP requests.
2021-01-26 11:38:46 +01:00
Ruben Verborgh
153d2d9fe4 feat: Set Accept-Patch header. 2021-01-26 10:52:38 +01:00
Ruben Verborgh
8c2f737fe0 feat: Set MS-Author-Via header.
Closes https://github.com/solid/community-server/issues/539
2021-01-26 10:52:38 +01:00
Joachim Van Herwegen
c17402517e feat: Update LockingResourceStore to use new locking interface
This has as added bonus that, in the case of getRepresentation,
the stream will be destroyed with an error in case of a timeout.
2021-01-22 11:34:51 +01:00
Ruben Verborgh
75d0d4152a feat: Add placeholders for static assets to configuration. 2021-01-21 10:35:07 +01:00
Ruben Verborgh
693d48b9eb feat: Set Vary header. 2021-01-21 08:50:30 +01:00
Joachim Van Herwegen
36761e8124 feat: Support composite PATCH updates 2021-01-18 17:01:24 +01:00
Ruben Taelman
01217e2e5c test: cache moduleState in integration tests to reduce exec time 2021-01-18 16:28:31 +01:00
Ruben Verborgh
3a4ec48720 refactor: Rename BasicTargetExtractor to OriginalUrlExtractor. 2021-01-18 09:48:32 +01:00
Ruben Taelman
c5ea83c405 Fix failing LdpHandlerWithoutAuth integration test 2021-01-15 14:56:31 +01:00
Ruben Verborgh
e544e6dc11 feat: Allow custom root ACL. 2021-01-15 12:43:34 +01:00
Ruben Verborgh
a5413a64d3 refactor: Move pod templates to pod subfolder. 2021-01-15 12:43:34 +01:00
Ruben Verborgh
4638ba4bce feat: Use baseIRI in QuadToRdfConverter.
Closes https://github.com/solid/community-server/issues/512
2021-01-15 12:43:34 +01:00
Joachim Van Herwegen
9160b52d5b refactor: Remove toSystemFilePath 2021-01-14 16:14:30 +01:00
Ruben Verborgh
5bb7822dc7 change: Use solid-0.1 as protocol string.
See https://github.com/solid/solid-spec/pull/230
2021-01-14 15:21:29 +01:00
Ruben Taelman
748476afbb refactor: Update to Components.js 4 2021-01-14 13:38:42 +01:00
Joachim Van Herwegen
0f3680db8d test: Add crash test for guard stream edge case
See https://github.com/solid/community-server/pull/462#issuecomment-758013492
for details on why this crashes the server.
2021-01-12 17:15:05 +01:00
Ruben Verborgh
16ef86acef fix: Allow Content-Type: 0 on GET.
Fixes https://github.com/solid/community-server/issues/498
2021-01-12 15:50:48 +01:00
Ruben Verborgh
ba42861699 feat: Use ldp: prefix in container representations. 2021-01-12 09:12:54 +01:00
Ruben Verborgh
66e636878f feat: Add BasicRepresentation. 2021-01-11 14:23:52 +01:00
Ruben Verborgh
be1af89b56 feat: Add Content-Type constructor to metadata. 2021-01-11 14:03:38 +01:00
Noel De Martin
775aaa79cd fix: Use base IRI when parsing SPARQL update queries
Accept relative references in SPARQL updates
2021-01-11 13:05:56 +01:00