Title: ACL relative URIs not resolving correctly · Issue #24 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: ACL relative URIs not resolving correctly · Issue #24 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: ACL relative URIs not resolving correctly · Issue #24 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Description Relative URIs in ACL files (e.g., <./resource> or <./>) are not being resolved relative to the ACL file's location. This requires using absolute URLs in ACL files, which is non-standard. Expected Behavior Per the Solid WAC sp...
Open Graph Description: Description Relative URIs in ACL files (e.g., <./resource> or <./>) are not being resolved relative to the ACL file's location. This requires using absolute URLs in ACL files, which is non-standard...
X Description: Description Relative URIs in ACL files (e.g., <./resource> or <./>) are not being resolved relative to the ACL file's location. This requires using absolute URLs in ACL files, which...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/24
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ACL relative URIs not resolving correctly","articleBody":"## Description\n\nRelative URIs in ACL files (e.g., `\u003c./resource>` or `\u003c./>`) are not being resolved relative to the ACL file's location. This requires using absolute URLs in ACL files, which is non-standard.\n\n## Expected Behavior\n\nPer the Solid WAC spec, relative URIs in ACL files should resolve relative to the ACL document's URL. For example, in `/credit/.acl`:\n\n```turtle\n\u003c#public>\n a acl:Authorization ;\n acl:accessTo \u003c./> ; # Should resolve to /credit/\n acl:default \u003c./> ;\n acl:mode acl:Read .\n```\n\n## Actual Behavior\n\nRelative URIs don't match. Only absolute URLs work:\n\n```json\n{\n \"acl:accessTo\": {\"@id\": \"http://melvincarvalho.com/credit/week.json\"}\n}\n```\n\n## Location\n\nThe issue appears to be in `src/wac/checker.js` in the `urlMatches` function, which does a simple string comparison without resolving relative URIs first.\n\n## Suggested Fix\n\nBefore comparing URLs in `urlMatches()`, resolve relative URIs against the ACL document's base URL.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2025-12-31T23:56:47Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/24"}
| 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:3c7ea075-5d36-eb6f-a6fb-2695c36413f4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E90:19BB7A:131EFC7:1845220:6B03975E |
| html-safe-nonce | 2e19837aa66ba9dbd90da8a61e992c3b50d61876df731e46787e78f0aad8771d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTkwOjE5QkI3QToxMzFFRkM3OjE4NDUyMjA6NkIwMzk3NUUiLCJ2aXNpdG9yX2lkIjoiMzY0NjM1MDA4MTMwNjg5MjEyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4db27c47bf3077ab332c2fff4f417c77dd4e980b3daf78148a6cc12ded68e22e |
| hovercard-subject-tag | issue:3773913677 |
| 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/24/issue_layout |
| twitter:image | https://opengraph.githubassets.com/73ad422d6ff0f0324524c09862792ef2d88fbf90b5b387a137a6b352e62472c6/JavaScriptSolidServer/JavaScriptSolidServer/issues/24 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/73ad422d6ff0f0324524c09862792ef2d88fbf90b5b387a137a6b352e62472c6/JavaScriptSolidServer/JavaScriptSolidServer/issues/24 |
| og:image:alt | Description Relative URIs in ACL files (e.g., <./resource> or <./>) are not being resolved relative to the ACL file's location. This requires using absolute URLs in ACL files, which is non-standard... |
| 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