Joachim Van Herwegen
e9917322e3
feat: Support $MODULE_PATH in StaticAssetHandler
2021-04-22 17:04:16 +02:00
Joachim Van Herwegen
0a420847dc
test: Make sure PathUtil tests have full coverage
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
Brandon Aaron
de51a231e3
feat: Fallback to X-Forwarded-* headers
...
* Fallback to X-Forwarded-* headers
This uses the first value from X-Forwarded-Host and
X-Forwarded-Proto if they're present and the standard Forwarded
header is not.
* Update parseForwarded to handle X-Forwarded-*
This updates the signature for parseForwarded to take in the headers
and handle the logic of falling back to X-Forwarded-* headers.
* Update src/util/HeaderUtil.ts
Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
* Inline parseXForwarded helper
Additionally fixes a typo, updates a unit test, and removes a
typing that is no longer necessary.
* Tweak handling of X-Forwarded value checking and assignment
* Fix: terminology & consistency suggestions from review
Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
Co-authored-by: Wouter Termont <woutermont@gmail.com>
2021-03-23 12:44:43 +01:00
Arthur Joppart
ee88bf14de
feat: Added cloneRepresentation function to ResourceUtil
...
* feat: added cloneRepresentation function to ResourceUtil
* fix: adapted to review
* fix: adapted to review
Co-authored-by: Arne Vandoorslaer <arne@digita.ai>
2021-03-04 08:43:53 +01:00
Joachim Van Herwegen
0f00a8dffd
feat: Update KeyValueStorage interface with entries function
2021-03-02 11:47:07 +01:00
Joachim Van Herwegen
29df380396
feat: Create SubdomainIdentifierStrategy
...
This strategy interprets all subdomains of the base to also be root containers.
2021-02-25 13:16:26 +01:00
Joachim Van Herwegen
fd45779159
feat: Pipe streams with the pump library
...
The library handles some edge cases we didn't yet.
The GuardedStream was also updated to ignore error listeners
already attached to the stream (since pump adds internal listeners).
2021-02-10 16:00:35 +01:00
Joachim Van Herwegen
a3f41c1d43
feat: Create GreedyReadWriteLocker using read/write locking algorithm
2021-02-09 14:35:12 +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
386d78277d
fix: Close unpiped streams
2021-01-29 15:42:34 +01:00
Joachim Van Herwegen
c29928c32c
fix: Test error classes correctly
2021-01-29 09:40:10 +01:00
Ruben Verborgh
6e50443a39
fix: Preserve query string in transformations.
2021-01-29 09:12:49 +01:00
Ruben Verborgh
817cf3ac0d
feat: Add ParallelHandler.
2021-01-27 11:29:35 +01:00
Ruben Verborgh
eb1440851a
refactor: Move handlers into subfolder.
2021-01-27 11:29:35 +01:00
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