Title: Fix .acl lookup for paths with spaces by RubenVerborgh · Pull Request #660 · nodeSolidServer/node-solid-server · GitHub
Open Graph Title: Fix .acl lookup for paths with spaces by RubenVerborgh · Pull Request #660 · nodeSolidServer/node-solid-server
X Title: Fix .acl lookup for paths with spaces by RubenVerborgh · Pull Request #660 · nodeSolidServer/node-solid-server
Description: In #656, we found that looking up .acl files breaks when the path contains spaces. The root cause is that the translation code from URLs to filenames is duplicated all over the codebase, and sometimes implemented incorrectly—as apparently was the case for ACLs. This pull request does the following: It introduces a LegacyResourceMapper, which implements the URL to filename mapping that is currently used in v4.x, and now incorporates an URL encoding fix. I have wired up this mapper into the faulty .acl lookup component, such that it now properly decodes percent escapes. The LegacyResourceMapper extends the new ResourceMapper introduced in #643, which captures the future URL to filename mapping. This new mapper has not been wired up yet, since it breaks compatibility and needs to be part of the 5.x release. In the future, we want to wire up this LegacyResourceMapper to get rid of the error-prone inline mapping code (#661), which will allow us to transition easily to the new ResourceMapper (#662).
Open Graph Description: In #656, we found that looking up .acl files breaks when the path contains spaces. The root cause is that the translation code from URLs to filenames is duplicated all over the codebase, and someti...
X Description: In #656, we found that looking up .acl files breaks when the path contains spaces. The root cause is that the translation code from URLs to filenames is duplicated all over the codebase, and someti...
Opengraph URL: https://github.com/nodeSolidServer/node-solid-server/pull/660
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6003ec43-98b3-44a3-7eb1-7bf644a38617 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E1DC:18DE62:7031634:9092A6A:6976A8E6 |
| html-safe-nonce | 3c2c3934ed7401777de90653ff0e2734b1156f9677e6ad745d5f0a14c101ca84 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMURDOjE4REU2Mjo3MDMxNjM0OjkwOTJBNkE6Njk3NkE4RTYiLCJ2aXNpdG9yX2lkIjoiODIxMTQzMzY3MzAyNzEzNTcxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 399998e1ac179ed597a2531f018a18f7d255cd075221b76bc1e4696416ddeeff |
| hovercard-subject-tag | pull_request:185593486 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/nodeSolidServer/node-solid-server/pull/660/files |
| twitter:image | https://avatars.githubusercontent.com/u/675313?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/675313?s=400&v=4 |
| og:image:alt | In #656, we found that looking up .acl files breaks when the path contains spaces. The root cause is that the translation code from URLs to filenames is duplicated all over the codebase, and someti... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/nodeSolidServer/node-solid-server git https://github.com/nodeSolidServer/node-solid-server.git |
| octolytics-dimension-user_id | 104446421 |
| octolytics-dimension-user_login | nodeSolidServer |
| octolytics-dimension-repository_id | 24306004 |
| octolytics-dimension-repository_nwo | nodeSolidServer/node-solid-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24306004 |
| octolytics-dimension-repository_network_root_nwo | nodeSolidServer/node-solid-server |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5b577f6be6482e336e3c30e8daefa30144947b17 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width