54 Commits

Author SHA1 Message Date
Joachim Van Herwegen
e752927171 fix: Remove all instanceof checks
This prevents problems with different environments.
Also introduces unit tests to double check HttpError values.
2021-01-25 16:11:43 +01:00
Joachim Van Herwegen
b59357ec30 feat: Update WrappedExpiringResourceLocker to new interface
Due to the new interface, it is now possible to throw an error
if there is a timeout which should make it easier
to find locking issues.
2021-01-22 11:34:51 +01:00
Joachim Van Herwegen
4d440c6c69 feat: Update ResourceLocker interface
By making use of withReadLock and withWriteLock instead
of acquiring the locks themselves it's easier to keep control
of what happens.
2021-01-22 11:34:51 +01:00
Ruben Verborgh
dd9d873122 feat: Implement UnsupportedAsyncHandler. 2021-01-20 14:36:17 +01:00
Joachim Van Herwegen
cf6270d161 fix: Accept absolute paths in CliRunner 2021-01-19 10:54:37 +01:00
Joachim Van Herwegen
9160b52d5b refactor: Remove toSystemFilePath 2021-01-14 16:14:30 +01:00
Joachim Van Herwegen
27cc1ec15e fix: Always keep guarded error listener attached 2021-01-12 17:15:05 +01:00
Ruben Verborgh
995a2dc74d feat: Add transformSafely. 2021-01-11 09:59:13 +01:00
Joachim Van Herwegen
fea726ae7d fix: Take baseIRI into account when calling parseQuads 2021-01-07 14:38:19 +01:00
Ruben Verborgh
8343dad7f1 refactor: Make createNamespace return regular objects. 2021-01-06 11:54:12 +01:00
Ruben Verborgh
87752ddf20 feat: Support writer prefixes.
Closes https://github.com/solid/community-server/issues/470
2021-01-06 11:36:21 +01:00
Ruben Verborgh
f9a20799eb refactor: Use declarations style for functions. 2021-01-06 11:24:43 +01:00
Ruben Verborgh
ba5c62059a feat: Validate Accept-DateTime. 2021-01-05 11:03:15 +01:00
Ruben Verborgh
f454b781ff fix: Join and normalize paths consistently. 2021-01-04 16:52:17 +01:00
Ruben Verborgh
2e188551f7 refactor: Rename UriUtil into TermUtil. 2021-01-02 23:19: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
feaac1cf56 feat: Support strings in addQuad. 2021-01-02 18:13:28 +01:00
Ruben Verborgh
a572825909 refactor: Indicate caching on method name. 2021-01-02 17:50:17 +01:00
Ruben Verborgh
4faf916ece fix: Emit all guarded errors to all listeners. 2021-01-02 16:11:51 +01:00
Ruben Verborgh
147f3cf0c7 feat: Add RecordObject. 2020-12-22 00:33:33 +01:00
Joachim Van Herwegen
a114d00827 fix: Remove metadata content-type assumption from QuadUtil 2020-12-18 10:40:07 +01:00
Joachim Van Herwegen
f0db9e501f refactor: Replace getParentContainer util function with ContainerManager 2020-12-11 12:42:17 +01:00
Joachim Van Herwegen
9c080c2101 feat: Create ContainerManager for containing container conventions 2020-12-11 12:42:17 +01:00
Ruben Verborgh
f26178b1b5 change: Rename FirstCompositeHandler into WaterfallHandler. 2020-12-09 11:42:17 +01:00
Ruben Verborgh
ba47ce7951 change: Refactor AllVoidCompositeHandler into SequenceHandler. 2020-12-09 11: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
Ruben Verborgh
ecfe3cfc46 feat: Support the Forwarded header. 2020-12-02 10:23:38 +01:00
Ruben Verborgh
357546e90f change: Clarify parent error message. 2020-12-01 20:10:53 +01:00
Ruben Verborgh
af8f1976cd fix: Rename UnsupportedHttpError into BadRequestError. 2020-11-27 14:52:16 +01:00
smessie
f4afc3ce16 test: Divide current tests into integration and unit tests for LockingResourceStore 2020-11-25 09:05:38 +01:00
smessie
dacfb74a6a refactor: Move lock stuff in its own folder 2020-11-25 09:05:38 +01:00
Joachim Van Herwegen
1a30b51461 feat: Create function to wrap streams to not lose 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
Joachim Van Herwegen
95ab0b4e76 refactor: Make piping consistent 2020-11-13 16:00:37 +01:00
Joachim Van Herwegen
aebccd45c0 feat: Create MetadataSerializer 2020-11-06 09:08:00 +01:00
Joachim Van Herwegen
840965cdef refactor: Create multiple composite handlers 2020-11-06 09:08:00 +01:00
Ruben Verborgh
1a45b65df7
refactor: Implement empty canHandle on base class. (#289) 2020-10-30 17:56:39 +01:00
smessie
99464d9a95
feat: Add logging
* feat: Add logging

* refactor: Configure the logger for the tests once globally

* feat: Add logging

* fix: Fix ESLint errors due to merge conflicts

* Review log and error messages.

* refactor: Cleanup a bit

* refactor: Change to logger info calls

Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
2020-10-26 10:31:01 +01:00
Joachim Van Herwegen
c999abb7b0 fix: Provide full coverage for util functions 2020-10-16 09:35:48 +02:00
Joachim Van Herwegen
e85ca622da fix: Make sure all URI characters are correctly encoded 2020-10-14 11:32:27 +02:00
Joachim Van Herwegen
7dcb3eaa84 feat: Create MetadataHandler 2020-10-09 12:12:34 +02:00
Joachim Van Herwegen
bb28af937b feat: Decode URI in target extractor 2020-10-07 09:31:08 +02:00
Joachim Van Herwegen
10723bb6b8 fix: Retain status codes when combining errors 2020-10-02 09:37:10 +02:00
Joachim Van Herwegen
e1533a0869 refactor: Rename UriUtil functions
Forgot to do this when rebasing
2020-09-17 11:58:38 +02:00
Joachim Van Herwegen
9657fbafb1 refactor: Update eslint related dependencies 2020-09-17 11:55:49 +02:00
Joachim Van Herwegen
85df2e5d7f refactor: Make URI constants consistent 2020-09-16 13:18:58 +02:00
Joachim Van Herwegen
5e1bb10f81 feat: Convert data from ResourceStore based on preferences 2020-08-17 15:38:26 +02:00
Joachim Van Herwegen
aaba113563 fix: Set max-len to 120 2020-07-24 15:10:34 +02:00
Joachim Van Herwegen
64a3f90831 feat: Validate Accept* headers while parsing 2020-07-08 11:20:28 +02:00