skrawcz commented on PR #946:
URL: https://github.com/apache/burr/pull/946#issuecomment-6052539286

   One remaining integration gap: the bundled demo routers pass URL `app_id` 
values into `LocalTrackingClient`. This PR correctly rejects invalid IDs at the 
filesystem sink, but the resulting `ValueError` currently escapes the demo 
endpoint as HTTP 500.
   
   Before merging, please:
   
   1. Add route-level validation or exception translation so invalid demo 
`project_id`/`app_id` values return HTTP 400.
   2. Add an integration test covering an encoded `..` app ID against at least 
the counter create endpoint and asserting both HTTP 400 and no writes outside 
the project application directory.
   3. Fix the regex to use `fullmatch()` (or `\Z`) so trailing newlines cannot 
pass validation.
   
   Keeping validation in `LocalTrackingClient` is correct—the filesystem sink 
must remain protected even outside HTTP usage. The route layer should 
additionally translate that validation failure into the appropriate response.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to