You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
The validation will fail if the user is not permitted to do an eval, but the user gets an Unauthorized error message, which isn't helpful. A helpful error will both inform the user as to what failed (e.g. "TDE validation failed") and suggest how to avoid the error - i.e. either permitting the user to call /v1/eval or disabling TDE validation.
The text was updated successfully, but these errors were encountered:
try {
schemasDatabaseClient.newServerEval().javascript(script.toString()).eval().close();
} catch (Exception ex) {
throw new RuntimeException("Unable to load and validate TDE templates via tde.templateBatchInsert; cause: " + ex.getMessage(), ex);
}
That's better than letting the FailedRequestException propagate, as that currently doesn't provide any helpful info - it just says "failed to apply resource at eval: Internal Server Error. Server Message: Server (not a REST instance?) did not respond with an expected REST Error message."
Unfortunately though... I'm not sure how to improve this because nothing is logged in the app server error log file, and the access log file only shows a 500.
The validation will fail if the user is not permitted to do an eval, but the user gets an Unauthorized error message, which isn't helpful. A helpful error will both inform the user as to what failed (e.g. "TDE validation failed") and suggest how to avoid the error - i.e. either permitting the user to call /v1/eval or disabling TDE validation.
The text was updated successfully, but these errors were encountered: