{"record":{"id":"9edb678e061582db","repo":"apache/hadoop","slug":"invalid-xml","errorCode":null,"errorMessage":"Invalid XML","messagePattern":"Invalid XML","errorType":"exception","errorClass":"SAXException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/contracts/services/BlobListXmlParser.java","lineNumber":134,"sourceCode":"\n  /**\n   * <pre>Receive notification of the end of an element.</pre>\n   * Whenever an XML-tag is closed, the parent-tag and current-tag shall be\n   * checked and correct property shall be set in the active {@link #currentBlobEntry}.\n   * If the current-tag is \"Blob\", it means that there are no more properties to\n   * be set in the  the active {@link #currentBlobEntry}, and it shall be the\n   * {@link #listResultSchema}.\n   */\n  @Override\n  public void endElement(final String uri,\n      final String localName,\n      final String qName)\n      throws SAXException {\n    String currentNode = elements.pop();\n\n    // Check if the ending tag is correct to the starting tag in the stack.\n    if (!currentNode.equals(localName)) {\n      throw new SAXException(AbfsHttpConstants.XML_TAG_INVALID_XML);\n    }\n\n    String parentNode = EMPTY_STRING;\n    if (elements.size() > 0) {\n      parentNode = elements.peek();\n    }\n\n    String value = bld.toString();\n    if (value.isEmpty()) {\n      value = null;\n    }\n\n    /*\n     * If the closing tag is Blob, there are no more properties to be set in\n     * currentBlobEntry.\n     */\n    if (AbfsHttpConstants.XML_TAG_BLOB.equals(currentNode)) {\n      listResultSchema.addBlobListEntry(currentBlobEntry);","sourceCodeStart":116,"sourceCodeEnd":152,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/contracts/services/BlobListXmlParser.java#L116-L152","documentation":"Error \"Invalid XML\" thrown in apache/hadoop.","triggerScenarios":"Listing blobs over the Blob endpoint returns malformed or truncated XML, often under network interference or service-side errors.","commonSituations":"See trigger scenarios.","solutions":["Verify the storage account returned a well-formed XML list response; enable DEBUG logging for AbfsBlobClient to capture the raw payload.","Check for proxy or firewall appliances altering the response body.","Retry the request; if persistent, capture the response and report it to the storage service."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-22T20:17:22.307Z"}