You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "adutra (via GitHub)" <gi...@apache.org> on 2025/03/17 18:34:23 UTC

[PR] REST: HTTPRequest.baseUri() should be nullable [iceberg]

adutra opened a new pull request, #12556:
URL: https://github.com/apache/iceberg/pull/12556

   Before the introduction of `HTTPRequest`, it was technically possible, although unlikely, to create an `HTTPClient` without base URI. In such cases, all requests must have an absolute path.
   
   This is currently not possible anymore, because `HTTPRequest.baseUri()` cannot be null.
   
   This PR fixes this small behavioral regression by allowing `HTTPRequest.baseUri()` to return null, when the request path is absolute.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] REST: HTTPRequest.baseUri() should be nullable [iceberg]

Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra merged PR #12556:
URL: https://github.com/apache/iceberg/pull/12556


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] REST: HTTPRequest.baseUri() should be nullable [iceberg]

Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on PR #12556:
URL: https://github.com/apache/iceberg/pull/12556#issuecomment-2737322494

   no need to add it, since it's already merged and the 1.9.0 RC will take whatever is on `main` when the RC is created


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] REST: HTTPRequest.baseUri() should be nullable [iceberg]

Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on code in PR #12556:
URL: https://github.com/apache/iceberg/pull/12556#discussion_r2000458253


##########
core/src/test/java/org/apache/iceberg/rest/TestHTTPRequest.java:
##########
@@ -107,6 +105,18 @@ public void malformedPath() {
             "Received a malformed path for a REST request: /v1/namespaces. Paths should not start with /");
   }
 
+  @Test
+  public void relativePathWithoutBaseUri() {
+    assertThatThrownBy(
+            () ->
+                ImmutableHTTPRequest.builder()
+                    .method(HTTPRequest.HTTPMethod.GET)
+                    .path("v1/namespaces") // wrong leading slash

Review Comment:
   does the comment apply here?



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] REST: HTTPRequest.baseUri() should be nullable [iceberg]

Posted by "adutra (via GitHub)" <gi...@apache.org>.
adutra commented on PR #12556:
URL: https://github.com/apache/iceberg/pull/12556#issuecomment-2737282769

   @nastra should this be added to 1.9.0 milestone?


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org