* refactor: move toCachedNamedNode (private)
* chore: only NamedNodes predicates in removes
* feat: enforce NamedNode predicates in most cases
* feat: getAll only accepts NamedNodes
* feat: toCachedNamedNode only accepts string arg
* tests: use NamedNodes for getAll calls
* test: remove unnecessary string check for coverage
* tests: fix NamedNodes in new tests after rebase
* feat: metadatawriters store NamedNodes
* refactor: toCachedNamedNode as utility function
* fix: double write of linkRelMap
* test: use the CONTENT_TYPE constant
Implemented new StringUtil helper functions: splitCommaSeparated, sanitizeUrlPart, isValidFileName.
Added helper functions to HeaderUtil: matchesAuthorizationScheme, hasScheme.
Added unit tests for the new helper functions.
Refactored codebase to use helper functions instead of regexes if applicable.
* feat: allow OriginalUrlExtractor to be configured with an identifierStrategy. Included the existing parameter 'includeQueryString' in the OriginalUrlExtractorArgs type.
* test: fixed OriginalUrlExtractor instantiation in OriginalUrlExtractor and RequestParser tests
* fix: Server no longer warns when accessing a URL out of scope #1148
* test: updated tests broken by #1148 fix
* test: ensuring 100% coverage
Co-authored-by: Wannes Kerckhove <wannes.kerckhove@ugent.be>
* feat: support storage and retrievel of content-type parameters
* test: extra unit tests for parseContentTypeWithParameters
* refactor: simplify set contentType()
Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
* refactor: simplify for loop because of unique blankNodes
Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
* refactor: ContentTypeParameter should be contentTypeParameter
Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
* refactor: remove undefined type in favor of var? syntax
Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
* refactor: use new parseContentType internally
* chore: remove commented code
* docs: code documentation line changed
Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
* refactor: Check for faulty metadata in contentType rdf structure
Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
* refactor: remove all instances of blanknodes
Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
* refactor: use full contentType when parsing header
Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
* refactor: use quads() method instead of store.getQuads()
* refactor: .value needed for type correctness
* feat: ReprMetadata constructor now supports full content-type string
Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
* feat(seeding): seed accounts and pods with seeded-pod-config.json
* feat(seeding): dry up SeededPodInitializer by using RegistrationManager directly and make compatible with version/3.0.0
* feat(seeding): update seed config files to version 3.0.0 context
* feat(seeding): simplify seeded-root config by importing pre-existing prefilled-root config
* feat(seeding): Add seeding as a default initializer, update seeded pod copy and guide, change seeded pod config to array
* feat(seeding): remove template info from seeded pod guide, use mockFs, code style nit, fix redlock test
* feat(seeding): remove old config file
* fix: slugs ending on slash with link header cannot create containers
* refactor(DataAccessorBasedStore): removing duplicate code and errors
* test(ServerFetch): fix integration tests that create a container
* fix: Reinstate original checks in setResource to let tests succeed
* test: change to container paths to end in / on POST only
* refactor: incorporate review changes
* fix: Error check was too strict
Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
* test: make testcase to test allowed slash behaviour
* test: removed unnecessary code from tests
* test: remove metadata line and duplicate tests
Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
The biggest resulting change is that the consent page always appears
after logging in.
Some minor fixes to be closer to the spec are included
together with some minor structural refactors.
* Solution works but tests don't
* refactor(FetchUtil): use arrayifyStream
* refactor(FetchUtil): split fetchDataset into 2 separate functions
* style(FetchUtil): onelining instead of declaring new local var
* test: trying to mock rdfDereferencer
* refactor: promise can't have async function as arg
* test(FetchUtil): pass Quad array to mockDereference instead
* test: all tests should pass now and coverage is back to 100%
* style: comment typo
* chore: make package.json and package-lock.json compatible with main
* chore: fix package.json double entries
* chore: updated package.json to be alfabetical again
* refactor(AgentGroupAccessChecker): Remove converter from contructor and config
* refactor(TokenOwnerShipValidator): Remove converter from constructor and config
* refactor(FetchUtil): Return BadRequestHttpError instead of generic Error
* test(FetchUtil): return Response object instead of mocking fetch
* style: typos and newlines
This is a revert of a previous change
but is now possible due to the use of JSON bodies.
This does mean JavaScript is required in the HTML page,
but that will be required for future changes anyway.
* feat: (AppRunner) Mechanism to configure cli args and derive componentsjs vars from them implemented
* fix: (AppRunner) tidying
* fix: (AppRunner) tidying up
* fix: (AppRunner) runCli method made sync
* fix; (VarResolver) refactored to multiple files, and other stylistic fixes.
* chore: (AppRunner) Uses builder pattern for yargs base arguments setup to enable better typescript inference
* fix(AppRunner): refactoring AppRunner and VarResolver
* fix(AppRunner): refactoring AppRunner promise handling
* fix(AppRunner): verror dependency removal
* fix: Simplify CLI error handling
* feat: Use same config for both CLI and app instantiation
* fix: Update typings and imports
* feat: Split VariableResolver behaviour to 2 classes
* feat: Move default value behaviour from CLI to ValueComputers
* test: Add unit tests for new CLI classes
* feat: Integrate new CLI configuration with all default configurations
* feat: Add createApp function to AppRunner
* docs: Update comments in CLI-related classes
* fix: Various fixes and refactors
Co-authored-by: damooo <damodara@protonmail.com>