{"record":{"id":"d41f771d4296c63e","repo":"apache/maven","slug":"authorization-failed-e-getmessage","errorCode":null,"errorMessage":"Authorization failed: \" + e.getMessage()","messagePattern":"Authorization failed: \" \\+ e\\.getMessage\\(\\)","errorType":"exception","errorClass":"TransferFailedException","httpStatus":null,"severity":"error","filePath":"compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java","lineNumber":434,"sourceCode":"                                    md5TryException);\n                        }\n                    }\n\n                    // reinstate the download monitor...\n                    if (downloadMonitor != null) {\n                        wagon.addTransferListener(downloadMonitor);\n                    }\n                }\n\n                // unset the firstRun flag, so we don't get caught in an infinite loop...\n                firstRun = false;\n            }\n        } catch (ConnectionException e) {\n            throw new TransferFailedException(\"Connection failed: \" + e.getMessage(), e);\n        } catch (AuthenticationException e) {\n            throw new TransferFailedException(\"Authentication failed: \" + e.getMessage(), e);\n        } catch (AuthorizationException e) {\n            throw new TransferFailedException(\"Authorization failed: \" + e.getMessage(), e);\n        } finally {\n            // Remove remaining TransferListener instances (checksum handlers removed in above finally clause)\n            if (downloadMonitor != null) {\n                wagon.removeTransferListener(downloadMonitor);\n            }\n\n            disconnectWagon(wagon);\n\n            releaseWagon(protocol, wagon);\n        }\n\n        if (downloaded) {\n            if (!temp.exists()) {\n                throw new ResourceDoesNotExistException(\"Downloaded file does not exist: \" + temp);\n            }\n\n            // The temporary file is named destination + \".tmp\" and is done this way to ensure\n            // that the temporary file is in the same file system as the destination because the","sourceCodeStart":416,"sourceCodeEnd":452,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java#L416-L452","documentation":"Error \"Authorization failed: \" + e.getMessage()\" thrown in apache/maven.","triggerScenarios":"Thrown at compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java:434 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e4093d4e120eac99d6bdce5ba67cace2f3085c97","analyzedAt":"2026-08-21T22:58:24.034Z","schemaVersion":2},"datasetVersion":"2026-08-22T04:17:13.399Z"}