GitHub user Xuanwo added a comment to the discussion: What format should I use for the last-modified property in list API response when using scheme = azblob?
Hi, we are using `chrono` to parse `DateTime` by [DateTime::parse_from_rfc2822](https://docs.rs/chrono/latest/chrono/struct.DateTime.html#method.parse_from_rfc2822). I believe `Mon, 12 Aug 2024 11:16:46 UT` should be a valid date time for us. The error `Connection reset by peer (os error 54)` suggests there might be other network-related issues, such as the server closing the connection too early. --- I'm not an expert in Java, so I just skimmed the code at [AzureHttpHandler.java](https://github.com/crate/crate/blob/master/plugins/es-repository-azure/src/test/java/org/elasticsearch/repositories/azure/AzureHttpHandler.java) to give you some inspiration. For example, the content length of the response could be incorrect if we have multi-byte characters like Chinese in the response: https://github.com/crate/crate/blob/9ecf9b81515cb336683f62fc22b44d6876456e03/plugins/es-repository-azure/src/test/java/org/elasticsearch/repositories/azure/AzureHttpHandler.java#L189-L192 ```java byte[] response = list.toString().getBytes(StandardCharsets.UTF_8); exchange.getResponseHeaders().add("Content-Type", "application/xml"); exchange.sendResponseHeaders(RestStatus.OK.getStatus(), response.length); exchange.getResponseBody().write(response); ``` GitHub link: https://github.com/apache/opendal/discussions/4998#discussioncomment-10326752 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
