Repository navigation
fix(harp): send the route verb to HaRP - #1138
Conversation
Signed-off-by: Oleksandr Piskun <oleksandr2088@icloud.com>
|
/backport to stable35 |
|
/backport to stable34 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
AppAPI sends HaRP the routes of each ExApp so HaRP can check the access level of requests to
/exapps/..., but it left out the route'sverb. The PHP proxy uses the first route that matches both the path and the verb, while HaRP can only match the path, so an ExApp that declares the same URL with different verbs and access levels is handled differently on the two paths.The routes sent to HaRP now include
verb, in the comma-separated form AppAPI stores. No HaRP release rejects unknown fields, so this changes nothing until HaRP starts using it. A unit test covers the route list sent to HaRP.