26 Commits

Author SHA1 Message Date
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
Ruben Verborgh
6edc255707 feat: Make stores return modified resources. 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
0c047234e3 feat: Support auxiliary behaviour in DataAccessorBasedStore 2021-02-18 13:26:08 +01:00
Joachim Van Herwegen
6424b07fc6 fix: Prevent setRepresentation crash if there is no root container 2021-02-11 14:35:56 +01:00
Joachim Van Herwegen
c29928c32c fix: Test error classes correctly 2021-01-29 09:40:10 +01:00
Joachim Van Herwegen
50e3cf5036 fix: Throw correct errors and streamline in DataAccessorBasedStore 2021-01-15 08:42:36 +01:00
Joachim Van Herwegen
fea726ae7d fix: Take baseIRI into account when calling parseQuads 2021-01-07 14:38:19 +01:00
Joachim Van Herwegen
5995057240 fix: Don't get normalized metadata for root containers 2021-01-07 13:34:05 +01:00
Joachim Van Herwegen
a5bc8d22a9 fix: Prevent POST requests from creating intermediate containers 2021-01-07 08:45:01 +01:00
Ruben Verborgh
ae06e99067 refactor: Also create named nodes for vocabularies. 2021-01-02 23:15:51 +01:00
Ruben Verborgh
8e138c36d1 refactor: Use types to create vocabularies. 2021-01-02 22:56:25 +01:00
Ruben Verborgh
a572825909 refactor: Indicate caching on method name. 2021-01-02 17:50:17 +01:00
Joachim Van Herwegen
39a79dbcb2 fix: Prevent deletion of root storage containers 2020-12-18 11:16:39 +01:00
Joachim Van Herwegen
a721684e6b fix: Only check relevant type triples
Due to the introduction of pim:Storage as a new type
the DataAccessorBasedStore started making wrong assumptions.
2020-12-18 10:55:35 +01:00
Joachim Van Herwegen
a08b7e9112 fix: Allow DataAccessorBasedStore to create root 2020-12-18 10:33:54 +01:00
Joachim Van Herwegen
1bb5de97ab refactor: Remove base URls with ContainerManager when possible 2020-12-11 12:42:17 +01:00
Joachim Van Herwegen
f0db9e501f refactor: Replace getParentContainer util function with ContainerManager 2020-12-11 12:42:17 +01:00
Ruben Verborgh
9c933fd2d4 chore: Build to dist folder.
Closes https://github.com/solid/community-server/issues/136
2020-12-08 09:30:18 +01:00
Joachim Van Herwegen
d5bf4e1e67 fix: Allow quad data for containers
This prevents the container data check from throwing an error when converting to quads
if the incoming data already is quads.
2020-12-07 17:02:50 +01:00
Joachim Van Herwegen
c2b189184b fix: Create container data before adding content-type 2020-12-02 14:16:45 +01:00
Ruben Verborgh
af8f1976cd fix: Rename UnsupportedHttpError into BadRequestError. 2020-11-27 14:52:16 +01:00
Joachim Van Herwegen
e4183333fd fix: Integrate wrapStreamError to prevent uncaught errors 2020-11-24 11:49:10 +01:00
Joachim Van Herwegen
1073c2ff4c refactor: Clean up utility functions 2020-11-18 17:19:53 +01:00
Ruben Verborgh
0476ba8069
chore(deps): update all dependencies (#293) 2020-11-02 09:08:14 +01:00
Joachim Van Herwegen
6ad40763f9 feat: Create DataAccessorBasedStore to have a standard store implementation 2020-10-14 11:32:27 +02:00