Title: PATCH should create resources if they don't exist (Solid spec) · Issue #2 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: PATCH should create resources if they don't exist (Solid spec) · Issue #2 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: PATCH should create resources if they don't exist (Solid spec) · Issue #2 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Problem PATCH requests to non-existent resources return 404, but in Solid, PATCH should be able to create resources using N3 Patch with solid:inserts. Error from PodOS: Web error: 404 (Not Found) on PATCH of http://localhost:3210/agsdf S...
Open Graph Description: Problem PATCH requests to non-existent resources return 404, but in Solid, PATCH should be able to create resources using N3 Patch with solid:inserts. Error from PodOS: Web error: 404 (Not Found) o...
X Description: Problem PATCH requests to non-existent resources return 404, but in Solid, PATCH should be able to create resources using N3 Patch with solid:inserts. Error from PodOS: Web error: 404 (Not Found) o...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/2
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PATCH should create resources if they don't exist (Solid spec)","articleBody":"## Problem\n\nPATCH requests to non-existent resources return 404, but in Solid, PATCH should be able to create resources using N3 Patch with `solid:inserts`.\n\n**Error from PodOS:**\n> Web error: 404 (Not Found) on PATCH of http://localhost:3210/agsdf\n\n## Solution\n\nModify `handlePatch` to:\n1. If resource doesn't exist, start with an empty JSON-LD document (`{ \"@context\": {}, \"@graph\": [] }`)\n2. Apply the patch to create the resource\n3. Return 201 Created instead of 204 No Content when a new resource is created\n\nThis aligns with the Solid protocol where PATCH can be used for resource creation, not just updates.\n\n## Changes\n\n- `handlePatch` now creates resources if they don't exist\n- Returns 201 for creation, 204 for updates\n- If-Match header only checked when resource exists","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2025-12-27T14:03:13Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/2"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0e268383-97fc-49a8-d2ff-412111a14035 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E5D4:16FC47:45BB0:55AA8:6B038352 |
| html-safe-nonce | 8fbaa99c733ff8a2e482031dc2e27f77f4e37745b932c8639f119495aa6a8168 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUQ0OjE2RkM0Nzo0NUJCMDo1NUFBODo2QjAzODM1MiIsInZpc2l0b3JfaWQiOiIzNDE2NjY2MTY5NTk4NTA5OTA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | edcded96d61ab61ee0f6eb0f2e1b1080866a901eccae88d97a5900a0c9729354 |
| hovercard-subject-tag | issue:3764794431 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b714e883ca8d208d1091ff8a3a1b10ec4b5c446b8b2b8895aa056ed0eb92f07f/JavaScriptSolidServer/JavaScriptSolidServer/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b714e883ca8d208d1091ff8a3a1b10ec4b5c446b8b2b8895aa056ed0eb92f07f/JavaScriptSolidServer/JavaScriptSolidServer/issues/2 |
| og:image:alt | Problem PATCH requests to non-existent resources return 404, but in Solid, PATCH should be able to create resources using N3 Patch with solid:inserts. Error from PodOS: Web error: 404 (Not Found) o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width