Skip to content

Conversation

@CxRes
Copy link
Collaborator

Fixes#1799

Using XML Date format instead of Internet Date format for Solid-PREP Notifications.
Swapped the `object` and `target`/`origin` properties in case of `Add`/`Delete` notifications respectively.
+ Notifications are identified by UUIDs. + Turtle notification template has the same fields as JSON-LD. + `notify:state` transmits Event-ID (which uniquely identifies a resource's state) and not E-Tag (which identify representations of the resource). + Parent reuses the generated Event-ID.
+ Event-ID is generated in PREP notification middleware itself. + No longer setting `Event-ID` response header upon resource mutation, thus reverting the middlewares for unsafe methods to their original state, before PREP was introduced.
@CxResCxRes changed the title Basic prep fix 1Fix incorrect and incomplete activity data in Solid PREP responsesNov 10, 2024
Change the CI node-version to use caret range to ensure that tests are run on Node.js v20.
Copy link
Member

@csarvencsarven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested POST to container, PUT to non-container, and PATCH to ACL resource. The activities that are emitted seems right with the exception of some Turtle syntax corrections that are needed. See the suggestions.

I didn't run the tests.

 Values for `as:object`, `as:target` and `as:origin` predicates in the Turtle PREP-Notification template are IRI's, so they must be wrapped in angle brackets. Co-authored-by: Sarven Capadisli <info@csarven.ca>
@CxResCxRes requested a review from csarvenNovember 11, 2024 20:57
@csarvencsarven mentioned this pull request Nov 12, 2024
@bourgeoabourgeoa merged commit 96ce2f0 into nodeSolidServer:mainNov 23, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect and incomplete Add activity data in Solid PREP responses

3 participants

@CxRes@csarven@bourgeoa