[CP] DDS and DevTools server change: fix an issue with serving static DevTools assets. #54428
Labels
area-pkg
Used for miscellaneous pkg/ packages not associated with specific area- teams.
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-review
Issue that need cherry pick triage to approve
pkg-dds
For issues related to the Dart Development Service
Commit(s) to merge
https://dart-review.googlesource.com/c/sdk/+/343000
Target
stable
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/343002
Issue Description
There was an issue when serving static assets from DevTools. If we could not find the file, the devtools server would just crash instead of handling the failure gracefully.
What is the fix
The fix was to add try catch blocks around the problematic code and return a
Response.notfound
in the event that we could not find the file.Why cherry-pick
This is preventing DevTools extensions from loading properly.
Risk
low
Issue link(s)
n/a
Extra Info
No response
The text was updated successfully, but these errors were encountered: