-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NSS workaround for createEmptyContainerAt()
Unfortunately it does not support the spec-supported method of creating a Container: nodeSolidServer/node-solid-server#1465 As a workaround, we create a dummy file within the Container we want to create, which should lead to the server creating the Container on the fly. The dummy file is then immediately deleted again. Although this method theoretically works for other servers as well, it is a bit cumbersome and more error-prone due to the multiple consecutive requests. Therefore I decided to use it specifically when we detect NSS's message about not supporting the spec-prescribed method of creating a Container, so that it can be easily removed wholesale once NSS is no longer a problem, and the implementation does not surprise other contributors.
- Loading branch information
Showing
2 changed files
with
201 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters