Joachim Van Herwegen
7f34fe6ae3
feat: Create separate authorizer for auxiliary functions
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
d6cdd7dbdf
feat: Introduce generic auxiliary resource support
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
Wouter Termont
1486f01aaf
fix: do not output filesystem container size
...
* fix: do not output filesystem container size
* fix: only omit size metadata for containers
Signed-off-by: Wouter Termont <woutermont@gmail.com>
2021-02-12 09:18:09 +01:00
Joachim Van Herwegen
30cebec32a
fix: Make mkdir recursive in FileDataAccessor
...
DataAccessorBasedStore already did the checks to make sure
writing this container is valid and this allows us to
start the server in nested non-existing folders.
2021-02-11 14:35:56 +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
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
c05933f652
fix: Simply GuardedStream check
2021-02-11 10:46:24 +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
0ffd332828
feat: Use end-of-stream to know when to release lock
2021-02-10 16:37:34 +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
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
Stijn Taelemans
9b6eab27bc
refactor: upgraded @types/cors
2021-02-10 11:11:57 +01:00
Joachim Van Herwegen
38b1c98cb6
feat: Integrate GreedyReadWriteLocker
2021-02-09 14:35:12 +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
59deb989ec
feat: Introduce internal storing mechanism
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
59600b07f8
fix: Fixed bug with empty Accept headers and internal/quads bodies
...
In case the Accept header was empty and the store returned an internal/quads
resource, our mechanism to prevent internal data from being returned
was ignored.
2021-02-09 13:26:36 +01:00
Joachim Van Herwegen
6c4378a2de
fix: Fix problem with piping streams for PATCH requests
2021-02-08 08:52:11 +01:00
Joachim Van Herwegen
73acb9cd52
fix: Prevent race condition in OPTIONS call
2021-02-05 17:18:45 +01:00
Ruben Verborgh
df19aa26ef
chore: Use main as default branch.
...
Closes https://github.com/solid/community-server/issues/365
2021-02-03 09:11:42 +01:00
Renovate Bot
0fe1bbd004
fix(deps): update dependency @types/yargs to v16
2021-02-01 09:06:20 +01:00
Joachim Van Herwegen
386d78277d
fix: Close unpiped streams
2021-01-29 15:42:34 +01:00
Ruben Verborgh
904c069451
change: Move FaviconHandler config to facilitate reuse.
2021-01-29 15:39:59 +01:00
Joachim Van Herwegen
c29928c32c
fix: Test error classes correctly
2021-01-29 09:40:10 +01:00
Ruben Verborgh
a57105be8e
change: Query string does not influence identifier.
2021-01-29 09:12:49 +01:00
Ruben Verborgh
6e50443a39
fix: Preserve query string in transformations.
2021-01-29 09:12:49 +01:00
Matthieu Bosquet
03e631ff17
feat: Static favicon asset
2021-01-28 23:27:41 +01:00
Ruben Verborgh
c899e6c4b1
fix: Do not re-encode static assets. ( #566 )
...
Fix serving binary static assets.
2021-01-28 22:02:32 +00:00
Ruben Verborgh
59a7c51f60
Release version 0.7.0 of the npm package.
v0.7.0
2021-01-28 11:20:48 +01:00
Ruben Verborgh
2563335403
feat: Support folders in StaticAssetHandler.
...
Closes https://github.com/solid/community-server/issues/548
2021-01-28 09:07:54 +01:00
Ruben Verborgh
6346760d1d
test: Only show coverage details with unit tests.
2021-01-27 12:06:59 +01:00
Joachim Van Herwegen
93e53b3d24
fix: Only require append permissions on POST requests
2021-01-27 11:54:15 +01:00
Ruben Verborgh
13409bd91e
refactor: Execute handlers in parallel when possible.
2021-01-27 11:29:35 +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
Ruben Verborgh
d7256fb20a
test: Test on Node 15.
2021-01-27 09:37:20 +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
Ruben Verborgh
f1304d8d04
test: Run CI on first and last of each stable version.
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
394e28b69d
change: Make header capitalization consistent.
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
Ruben Verborgh
fe3957f0ae
feat: Add ConstantMetadataWriter.
2021-01-26 10:52:38 +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
Renovate Bot
a07fdde2a7
chore(deps): update dependency @microsoft/tsdoc-config to ^0.14.0
2021-01-25 09:09:39 +01:00
Joachim Van Herwegen
69c31446dd
feat: Update config to include LockingResourceStore
2021-01-22 11:34:51 +01:00