You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a736338
Browse filesBrowse the repository at this point in the historyBrowse files
The ACL parser now correctly resolves relative URLs like "./" and "../"
in accessTo and default fields against the ACL document's base URL.
This allows ACL files to use relative paths as per WAC spec.
Added tests for relative URL resolution.
`Expected accessTo to include 'https://alice.example/folder/', got: ${auths[0].accessTo}`);
`Expected default to include 'https://alice.example/folder/', got: ${auths[0].default}`);
135
+
});
136
+
137
+
it('should resolve parent-relative URLs like ../other/',async()=>{
`Expected accessTo to include 'https://alice.example/other/', got: ${auths[0].accessTo}`);
`Expected accessTo to include 'https://other.example/resource', got: ${auths[0].accessTo}`);
0 commit comments