Overview
Users attempting to log in to Artifactory version 7.98.x and above using SAML accounts may encounter the following error:
{"errors":[{"code":"INTERNAL_SERVER_ERROR","message":"HTTP 500 Internal Server Error","detail":"entityId cannot be empty"}]}This article provides insight into the cause of this issue and the steps needed to resolve it.
Cause of the Error
This error arises due to a breaking change implemented in our codebase. Specifically, it is associated with the SAML authentication mechanism within Artifactory.
Important Update
As outlined in our documentation under the Breaking Change for SAML SSO section:
"Starting from Artifactory version 7.98.7, As notified in SAML SSO configuration, if you have configured SAML authentication in your environment, make sure to configure a Custom Base URL to prevent a 500 error."
Steps to Resolve the Issue
1. Verify Custom Base URL Configuration
To resolve the error, it is essential to check whether the Custom Base URL has been configured in the Artifactory settings.
If you have not yet configured the Custom Base URL, please do so by following these general steps:
- Access Artifactory Administration : Log in to your Artifactory instance with administrative privileges.
- Navigate to Administration > General Management > Settings then add the Custom Base URL under the General Settings field.
- Set the Custom Base URL : Enter the appropriate Custom Base URL as required for your environment. Make sure this URL is correctly formatted and accessible.
For detailed instructions on configuring the Custom Base URL, please refer to our Knowledge Base Article.
2. Test the Configuration
After configuring the Custom Base URL, attempt to log in again using your SAML account. The login should proceed without the aforementioned error.
Conclusion
By ensuring the correct configuration of the Custom Base URL, you can avoid the "entityId cannot be empty" error when logging in with SAML accounts in Artifactory.