Skip to content

Develop#281

Merged
namedgraph merged 8 commits intomasterfrom
develop
Apr 5, 2026
Merged

Develop#281
namedgraph merged 8 commits intomasterfrom
develop

Conversation

@namedgraph
Copy link
Copy Markdown
Member

No description provided.

namedgraph and others added 5 commits April 1, 2026 23:58
)

* Exempt proxy requests from local ACL checks in AuthorizationFilter

Document-centric ACL (acl:accessTo <document>) is semantically wrong for
the proxy, which is a global transport function. Requiring acl:Write on a
local document to forward a DELETE to a remote target would be a security
anti-pattern — the target endpoint enforces its own access control, and
SSRF protection via URLValidator is the appropriate security layer.

Extends the existing mapped-URI bypass to cover all methods and all URIs
when ?uri= is present. Adds a regression test that verifies an agent with
acl:Append only on /sparql (not on the root URL) can POST via proxy.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Move proxy logic from ProxiedGraph into ProxyRequestFilter

Replace the JAX-RS sub-resource (ProxiedGraph) and Dispatcher routing
with a @PreMatching ContainerRequestFilter (priority 4050) that intercepts
all proxy requests — both explicit ?uri= params and lapp:Dataset matches —
before AuthorizationFilter runs. ACL is no longer checked for proxy
requests; access control is enforced by the target endpoint.

Removes the proxy bypass hack from AuthorizationFilter and simplifies
Dispatcher (no more getProxyClass()). ProxiedGraph is deleted entirely.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Set REQUEST_URI_HEADER on proxy client response before entity read

ModelProvider / HtmlJsonLDReader requires a base URI hint (set via
REQUEST_URI_HEADER on the response) to resolve relative references when
parsing HTML+JSON-LD. Without it jsoup throws a NullPointerException.
Mirrors the header injection done in the old ProxiedGraph.get().

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Disable proxy test suite run (test removed, no proxy tests remain)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
The ldh:RenderFacets named template was unconditionally appending a
div.well.well-small into div.left-nav even when the SPARQL query had no
qualifying BGP triples, causing an empty grey box to appear. The fix
moves bgp-triples-map computation before the guard and conditions the
append on exists($bgp-triples-map), leaving the server-rendered empty
div.left-nav unstyled when there are no facets to show.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@namedgraph namedgraph marked this pull request as draft April 5, 2026 19:25
namedgraph and others added 3 commits April 5, 2026 22:27
Reverts the accidental commenting-out of test suites introduced in
2c82919.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@namedgraph namedgraph merged commit 34fd87a into master Apr 5, 2026
1 check passed
Sign up for free to 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.

1 participant