bhattmanish98 commented on code in PR #7496: URL: https://github.com/apache/hadoop/pull/7496#discussion_r2021061911
########## hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsHttpOperation.java: ########## @@ -776,15 +777,16 @@ public AbfsHttpOperationWithFixedResultForGetFileStatus(final URL url, @Override public String getResponseHeader(final String httpHeader) { // Directories on FNS-Blob are identified by a special metadata header. - if (httpHeader.equals(X_MS_META_HDI_ISFOLDER)) { + if (httpHeader.equalsIgnoreCase(X_MS_META_HDI_ISFOLDER)) { return TRUE; } return EMPTY_STRING; } @Override public Map<String, List<String>> getResponseHeaders() { - return new HashMap<>(); + return Collections.singletonMap(X_MS_META_HDI_ISFOLDER, Review Comment: AbfsHttpOperationWithFixedResultForGetFileStatus is used in one place where we are checking for an implicit directory. In the case of an implicit directory, I am applying the same logic as in the method httpHeader.equalsIgnoreCase(X_MS_META_HDI_ISFOLDER), where we return true if the header is X_MS_META_HDI_ISFOLDER. -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org