René's URL Explorer Experiment


Title: Conneg: .meta and .acl files are not recognized as RDF, break Turtle-native clients · Issue #294 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Open Graph Title: Conneg: .meta and .acl files are not recognized as RDF, break Turtle-native clients · Issue #294 · JavaScriptSolidServer/JavaScriptSolidServer

X Title: Conneg: .meta and .acl files are not recognized as RDF, break Turtle-native clients · Issue #294 · JavaScriptSolidServer/JavaScriptSolidServer

Description: Symptom A Turtle-native Solid client (e.g. umai) fetching `//.meta` from a JSS pod (conneg enabled) gets JSON-LD back instead of Turtle, and errors with `MalformedSolidDocumentError: Malformed Turtle document ... Expected entity but got ...

Open Graph Description: Symptom A Turtle-native Solid client (e.g. umai) fetching `//.meta` from a JSS pod (conneg enabled) gets JSON-LD back instead of Turtle, and errors with `MalformedSolidDocumentError: Malformed Turt...

X Description: Symptom A Turtle-native Solid client (e.g. umai) fetching `//.meta` from a JSS pod (conneg enabled) gets JSON-LD back instead of Turtle, and errors with `MalformedSolidDocumentError: Malformed Turt...

Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/294

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Conneg: .meta and .acl files are not recognized as RDF, break Turtle-native clients","articleBody":"## Symptom\n\nA Turtle-native Solid client (e.g. [umai](https://github.com/noeldemartin/umai)) fetching \\`\u003cpod>/\u003ccontainer>/.meta\\` from a JSS pod (conneg enabled) gets JSON-LD back instead of Turtle, and errors with \\`MalformedSolidDocumentError: Malformed Turtle document ... Expected entity but got { on line 2\\`.\n\nReproduced today against ewingson's \\`test.solidweb.app\\` (JSS 0.0.144, \\`conneg: true\\`).\n\n## Root cause\n\n\\`getContentType(filePath)\\` in \\`src/utils/url.js:216\\` maps extensions to MIME types. The map is extension-based and has no entry for \\`.meta\\` or \\`.acl\\`:\n\n\\`\\`\\`js\nconst types = {\n  '.jsonld': 'application/ld+json',\n  '.json':   'application/json',\n  '.ttl':    'text/turtle',\n  // ... no '.meta' or '.acl'\n};\nreturn types[ext] || 'application/octet-stream';\n\\`\\`\\`\n\n\\`path.extname('/a/.meta')\\` returns \\`''\\` (leading-dot files have no extension per node:path), so the fallback hits. \\`.meta\\` and \\`.acl\\` both end up tagged \\`application/octet-stream\\`.\n\nDownstream: \\`handleGet\\`'s conneg branch is gated on \\`isRdfContentType(storedContentType)\\` (\\`src/handlers/resource.js:411\\`). \\`application/octet-stream\\` isn't an RDF type, so conneg never kicks in for these files — they're served verbatim as stored, regardless of \\`Accept\\`.\n\n## Mirror bug in .acl\n\nSame issue applies to \\`.acl\\`. It hasn't shown up visibly because:\n\n1. JSS's own \\`parseAcl()\\` (\\`src/wac/parser.js:38-49\\`) is forgiving — tries JSON first, falls back to Turtle. So server-side WAC checks work on either format.\n2. Most clients don't GET \\`.acl\\` via HTTP — they read \\`wac-allow\\` on the protected resource. Only ACL-editing tools fetch \\`.acl\\`, and the few that do mostly accept JSON-LD.\n\nBut the latent bug is real: JSS writes \\`.acl\\` as JSON-LD via \\`serializeAcl()\\` → \\`JSON.stringify()\\`. A strict-Turtle ACL editor pointed at any existing JSS pod today would hit the exact same parser error.\n\n## Fix\n\nTwo-line change to \\`getContentType\\`:\n\n\\`\\`\\`diff\n const types = {\n   '.jsonld': 'application/ld+json',\n   '.json':   'application/json',\n   ...\n+  '.meta':   'application/ld+json',   // Solid container metadata\n+  '.acl':    'application/ld+json',   // WAC access control\n };\n\\`\\`\\`\n\nWe tag them as \\`application/ld+json\\` (not \\`text/turtle\\`) because:\n\n1. JSS's stance is JSON-LD native (see #282 / #283). That's the format we actually write these files in (\\`serializeAcl()\\`, \\`createPodStructure()\\`).\n2. Conneg handles the translation for Turtle-native clients automatically — \\`handleGet\\` already has a working \\`fromJsonLd(jsonLd, 'text/turtle', ...)\\` path for JSON-LD-stored files.\n3. The PUT side already handles the inverse: \\`handlePut:639\\` converts \\`text/turtle\\` bodies to JSON-LD before storing when \\`--conneg\\` is enabled.\n\nSo the round-trip lands for both client families with no further code change:\n\n| Client request | Today | After fix |\n|---|---|---|\n| umai: \\`PUT text/turtle .meta\\` | Stored as Turtle bytes (silent) | Converted to JSON-LD, stored |\n| umai: \\`GET .meta Accept: text/turtle\\` | Gets JSON-LD, parser errors | Gets Turtle, parser happy |\n| pilot: \\`GET .meta Accept: application/ld+json\\` | Served raw (happens to be JSON-LD) | Served raw (explicit) |\n\n## Back-compat\n\nExisting pods have JSON-LD \\`.acl\\` files on disk (written by \\`createPodStructure\\` via \\`serializeAcl\\`). Zero migration: the fix recognises them, conneg reads them correctly, Turtle clients start working immediately.\n\n## Scope\n\nTwo lines. Tests around \\`conneg.test.js\\` / \\`ldp.test.js\\` can add a case per file type (PUT Turtle, GET Turtle, both succeed; PUT JSON-LD, GET Turtle, convert) — straightforward to bolt onto existing fixtures.\n\nHappy to PR.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-04-22T11:09:30Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/294"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1695b51c-667a-aab7-4be8-f0628a61cbf5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB3E0:1E05DF:109E057:162FE0D:6B03CBF3
html-safe-nonce38a43ba7309d269dda4e112037cac48f1b76c74ac59b064bc9142a8d3466925e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0UwOjFFMDVERjoxMDlFMDU3OjE2MkZFMEQ6NkIwM0NCRjMiLCJ2aXNpdG9yX2lkIjoiMzYwNDg4OTU1NTExMjgwNzQxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb14dc47cebb225ad46a0727a5469fbf9c9b75a24b0e95b547b2125bcd8ba1c4d
hovercard-subject-tagissue:4308548225
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/294/issue_layout
twitter:imagehttps://opengraph.githubassets.com/11348213faedba6893fdf52fd64d95bb51093e1a957da9b52d01eaed9105091b/JavaScriptSolidServer/JavaScriptSolidServer/issues/294
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/11348213faedba6893fdf52fd64d95bb51093e1a957da9b52d01eaed9105091b/JavaScriptSolidServer/JavaScriptSolidServer/issues/294
og:image:altSymptom A Turtle-native Solid client (e.g. umai) fetching `//.meta` from a JSS pod (conneg enabled) gets JSON-LD back instead of Turtle, and errors with `MalformedSolidDocumentError: Malformed Turt...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemelvincarvalho
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git
octolytics-dimension-user_id205442424
octolytics-dimension-user_loginJavaScriptSolidServer
octolytics-dimension-repository_id958025407
octolytics-dimension-repository_nwoJavaScriptSolidServer/JavaScriptSolidServer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id958025407
octolytics-dimension-repository_network_root_nwoJavaScriptSolidServer/JavaScriptSolidServer
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/294#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2F294
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2F294
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=JavaScriptSolidServer%2FJavaScriptSolidServer
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/294
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/294
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/294
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Codehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Issues165 (165)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues
Pull requests14 (14)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pulls
Actionshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/actions
Projectshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/projects
Security and qualityhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/security
Insightshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/insights
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/294
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/294
#296https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/296
Conneg: .meta and .acl files are not recognized as RDF, break Turtle-native clientshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/294#top
#296https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/296
https://github.com/melvincarvalho
melvincarvalhohttps://github.com/melvincarvalho
on Apr 22, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/294#issue-4308548225
umaihttps://github.com/noeldemartin/umai
createPodStructure should write .jsonld (not .ttl) for prefs and TypeIndexes #282https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/282
Use .jsonld for all generated pod files (#282) #283https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/283
melvincarvalhohttps://github.com/melvincarvalho
completedhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#296https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/296
on Apr 22, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/294#event-24752970390
melvincarvalhohttps://github.com/melvincarvalho
on Apr 22, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/294#event-24752970413
Recognise .acl and .meta as RDF resources for conneg (#294)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/de02f15674da3c8b1fdcd337410e1272f0056809
#294https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/294
de02f15https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/de02f15674da3c8b1fdcd337410e1272f0056809
Merge pull request #296 from melvincarvalho/issue-294-meta-acl-conneghttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/a0a9ccdeefac234e2300d16b24f5ed2371637923
#296https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/296
a0a9ccdhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/a0a9ccdeefac234e2300d16b24f5ed2371637923
Sign up for freehttps://github.com/signup?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/294
Sign in to commenthttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/294
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.