Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JCL-402: HTTP error handling in JenaBodyHandlers #1159

Merged
merged 5 commits into from
Apr 23, 2024

Conversation

NSeydoux
Copy link
Contributor

@NSeydoux NSeydoux commented Apr 14, 2024

This is based on #1160, which should be reviewed first.

This deprecates the current methods in JenaBodyHandlers, and replaces them with similar method throwing an appropriate exception with error details on HTTP error instead of returning an empty dataset. This makes use of the composable throwing body handler now exposed by the Response interface of the api module. The new method now have Jena in their name for this not to be a breaking change: ofModel becomes ofJenaModel, etc.

@NSeydoux NSeydoux force-pushed the JCL-463/solid-client-throws-pd-exception branch from da62735 to aa53b0e Compare April 14, 2024 21:22
@NSeydoux NSeydoux force-pushed the JCL-457/jena-body-handler branch 3 times, most recently from f6243cb to f4b5906 Compare April 14, 2024 21:55
@NSeydoux NSeydoux marked this pull request as ready for review April 14, 2024 22:08
@NSeydoux NSeydoux requested a review from a team as a code owner April 14, 2024 22:08
@NSeydoux NSeydoux force-pushed the JCL-457/jena-body-handler branch from f4b5906 to 4b37262 Compare April 14, 2024 22:14
@NSeydoux NSeydoux changed the title JCL-457: HTTP error handling in JenaBodyHandlers JCL-402: HTTP error handling in JenaBodyHandlers Apr 14, 2024
@NSeydoux NSeydoux force-pushed the JCL-463/solid-client-throws-pd-exception branch 4 times, most recently from fda4bb3 to d722196 Compare April 17, 2024 07:25
@NSeydoux NSeydoux force-pushed the JCL-457/jena-body-handler branch from 4b37262 to 39299b6 Compare April 17, 2024 07:59
@NSeydoux NSeydoux changed the base branch from JCL-463/solid-client-throws-pd-exception to JCL-460/problem-details-class-http-status April 17, 2024 07:59
Base automatically changed from JCL-460/problem-details-class-http-status to main April 18, 2024 11:53
@NSeydoux NSeydoux force-pushed the JCL-457/jena-body-handler branch from 39299b6 to f92ed37 Compare April 18, 2024 12:35
@NSeydoux NSeydoux changed the base branch from main to JCL-463/solid-client-throws-pd-exception April 18, 2024 12:36
@NSeydoux NSeydoux force-pushed the JCL-463/solid-client-throws-pd-exception branch 2 times, most recently from a03f434 to 9e0967d Compare April 23, 2024 07:45
@NSeydoux NSeydoux force-pushed the JCL-457/jena-body-handler branch 2 times, most recently from ffef3bc to b8e402f Compare April 23, 2024 07:51
Base automatically changed from JCL-463/solid-client-throws-pd-exception to main April 23, 2024 08:09
This deprecates the current methods in `JenaBodyHandlers`, and replaces them with similar method throwing an appropriate exception with error details on HTTP error instead of returning an empty dataset. The new method now have `Jena` in their name for this not to be a breaking change: `ofModel` becomes `ofJenaModel`, etc.
@NSeydoux NSeydoux force-pushed the JCL-457/jena-body-handler branch from b8e402f to 63be5e6 Compare April 23, 2024 08:13
@NSeydoux NSeydoux enabled auto-merge (squash) April 23, 2024 08:13
@NSeydoux NSeydoux merged commit 89534b4 into main Apr 23, 2024
8 checks passed
@NSeydoux NSeydoux deleted the JCL-457/jena-body-handler branch April 23, 2024 08:29
acoburn added a commit that referenced this pull request May 8, 2024
acoburn added a commit that referenced this pull request May 13, 2024
acoburn added a commit that referenced this pull request May 15, 2024
* Revert "JCL-402: RDF4J body handlers http error handling (#1162)"

This reverts commit e03eb1e.

* Revert "JCL-402: JSONB test coverage (#1184)"

This reverts commit 52d485b.

* Revert "JCL-402: HTTP error handling in JenaBodyHandlers (#1159)"

This reverts commit 89534b4.

* Move ProblemDetails to solid module, remove ClientHttpException

* ProblemDetails to interface in API module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants