Joachim Van Herwegen
87a54011b4
refactor: Extend and update the ConversionUtil functions
2021-04-27 16:11:50 +02:00
Joachim Van Herwegen
218c8f4662
fix: Use HttpErrors instead of Errors
2021-04-09 09:04:09 +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
Matthieu Bosquet
2a34a430fa
fix: SPARQL PATCH Content Type
2021-02-26 15:51:35 +01:00
Joachim Van Herwegen
139342470e
feat: Add WAC-Allow header when required
2021-02-18 14:13:47 +01:00
Joachim Van Herwegen
8ccc68d29c
feat: Add acl link headers based on headers instead of hardcoding
2021-02-18 13:26:08 +01:00
Joachim Van Herwegen
0c047234e3
feat: Support auxiliary behaviour in DataAccessorBasedStore
2021-02-18 13:26:08 +01:00
Joachim Van Herwegen
f87fc61ab0
feat: Support updating multiple metadata values for a predicate
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
Joachim Van Herwegen
6c4378a2de
fix: Fix problem with piping streams for PATCH requests
2021-02-08 08:52:11 +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
Ruben Verborgh
eb1440851a
refactor: Move handlers into subfolder.
2021-01-27 11:29:35 +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
394e28b69d
change: Make header capitalization consistent.
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
Joachim Van Herwegen
36761e8124
feat: Support composite PATCH updates
2021-01-18 17:01:24 +01:00
Ruben Verborgh
3a4ec48720
refactor: Rename BasicTargetExtractor to OriginalUrlExtractor.
2021-01-18 09:48:32 +01:00
Joachim Van Herwegen
b642393a15
fix: Have PATCH/POST/PUT operations handlers check content-type
2021-01-15 08:42:36 +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
Matthieu Bosquet
a42ed97120
fix: Consistent BasicRequestParser arguments name
2021-01-13 08:31:50 +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
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
Joachim Van Herwegen
76def28a68
feat: Store target identifier when parsing metadata
2021-01-11 13:05:56 +01:00
Joachim Van Herwegen
f17054c647
refactor: Make request related handle calls consistent
2021-01-11 13:05:56 +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
3b63786ae0
feat: Allow querying metadata.
2021-01-06 11:25:47 +01:00
Ruben Verborgh
f9a20799eb
refactor: Use declarations style for functions.
2021-01-06 11:24:43 +01:00
Ruben Verborgh
4aed8c8b4c
refactor: Simplify AcceptPreferenceParser.
2021-01-05 11:03:15 +01:00
Ruben Verborgh
09ae959333
refactor: Rename RepresentationPreference into ValuePreferences.
2021-01-05 11:03:14 +01:00
Ruben Verborgh
4828912593
refactor: Use record for representation preference.
2021-01-04 23:06:52 +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
Matthieu Bosquet
a73936f522
refactor: Add HttpHandlerInput interface
2021-01-02 13:39:45 +01:00
Ruben Verborgh
1cf1167261
test: Use Components.js in Authorization.
2020-12-22 00:33:33 +01:00
Ruben Verborgh
d1d29a3f52
test: Use Components.js in AuthenticatedLdpHandler.
2020-12-22 00:33:33 +01:00
Ruben Verborgh
accfc2e58d
change: Make RepresentationMetadata accept a ResourceIdentifier.
...
Closes https://github.com/solid/community-server/issues/388
2020-12-11 10:37:36 +01:00
Ruben Verborgh
ecfe3cfc46
feat: Support the Forwarded header.
2020-12-02 10:23:38 +01:00
Ruben Verborgh
74415cf49b
fix: Align webId capitalization.
2020-12-01 23:35:11 +01:00
Ruben Verborgh
535cbcd93a
feat: Add LDP request logging.
2020-12-01 20:00:21 +01:00