mengw15 opened a new issue, #5455:
URL: https://github.com/apache/texera/issues/5455

   ### Task Summary
   
   `blob-error-http-interceptor.service.ts` 
([frontend/.../common/service/blob-error-http-interceptor.service.ts](https://github.com/apache/texera/blob/a820f6727/frontend/src/app/common/service/blob-error-http-interceptor.service.ts))
 is a 61-LOC `HttpInterceptor` that converts `Blob` responses on error (e.g., 
downloaded files that returned an HTTP error wrapping a JSON error body) into 
structured `HttpErrorResponse` objects so callers see a typed message instead 
of a raw blob. It currently has no `.spec.ts`.
   
   ### Suggested coverage
   
   - Non-error response → interceptor passes through unmodified
   - Error response with JSON `Blob` body → blob is parsed and the error 
message surfaces in `HttpErrorResponse.error`
   - Error response with non-JSON `Blob` body → graceful fallback (no parse 
crash)
   - Error response with no body → interceptor still emits a clean 
`HttpErrorResponse`
   
   ### Acceptance
   
   - New `blob-error-http-interceptor.service.spec.ts` next to the interceptor
   - Use Angular's `HttpClientTestingModule` to feed responses
   - All new tests green under default jsdom target


-- 
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