mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Return 409 when there is a slash semantics issue
This commit is contained in:
@@ -193,7 +193,7 @@ export class DataAccessorBasedStore implements ResourceStore {
|
||||
// requests for the latter URI with a 301 redirect to the former."
|
||||
// https://solid.github.io/specification/protocol#uri-slash-semantics
|
||||
if (oldMetadata && oldMetadata.identifier.value !== identifier.path) {
|
||||
throw new ForbiddenHttpError(`${identifier.path} conflicts with existing path ${oldMetadata.identifier.value}`);
|
||||
throw new ConflictHttpError(`${identifier.path} conflicts with existing path ${oldMetadata.identifier.value}`);
|
||||
}
|
||||
|
||||
const isContainer = this.isNewContainer(representation.metadata, identifier.path);
|
||||
|
||||
Reference in New Issue
Block a user