tbonelee opened a new pull request, #5097:
URL: https://github.com/apache/zeppelin/pull/5097

   ### What is this PR for?
   
   After #5090, we started hiding unhandled error details from clients, which 
caused some tests that depended on those details to fail. The afffected cases 
are note imports/creations that should fail when the target note path already 
exists.
   
   This PR introduces a `ConflictException` and updates `NotebookRestApi` to 
return HTTP 409 (Conflict) when `NotebookService` throws or returns 
`NotePathAlreadyExistsException`.
   
   I chose to do this exception-to-HTTP mapping in `NotebookRestApi` because 
`NotebookService` is also used outside REST contexts, and assigning HTTP status 
codes belongs in the REST layer.
   
   
   ### What type of PR is it?
   Bug Fix
   
   ### What is the Jira issue?
   https://issues.apache.org/jira/browse/ZEPPELIN-6356
   
   ### How should this be tested?
   - Check if `zeppelin-integration-test` and other tests pass
   
   ### Screenshots (if appropriate)
   
   <img width="1609" height="100" alt="image" 
src="https://github.com/user-attachments/assets/a445f36c-0267-42df-a75e-9f9f05f94964";
 />
   
   
   ### Questions:
   * Does the license files need to update? No
   * Is there breaking changes for older versions? No
   * Does this needs documentation? No
   


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