{"record":{"id":"f0ac6b6d26751eed","repo":"OtterMind/Chat2DB","slug":"mysql-account-actionrequired","errorCode":"mysql.account.actionRequired","errorMessage":"mysql.account.actionRequired","messagePattern":"mysql\\.account\\.actionRequired","errorType":"exception","errorClass":"BusinessException","httpStatus":null,"severity":"error","filePath":"chat2db-community-server/chat2db-community-domain/chat2db-community-domain-api/src/main/java/ai/chat2db/community/domain/api/enums/plugin/AccountActionTypeEnum.java","lineNumber":16,"sourceCode":"package ai.chat2db.community.domain.api.enums.plugin;\n\nimport ai.chat2db.community.tools.exception.BusinessException;\n\npublic enum AccountActionTypeEnum {\n    CREATE_USER,\n    ALTER_PASSWORD,\n    LOCK_ACCOUNT,\n    UNLOCK_ACCOUNT,\n    DROP_USER,\n    GRANT_PRIVILEGE,\n    REVOKE_PRIVILEGE;\n\n    public static AccountActionTypeEnum from(String value) {\n        if (value == null) {\n            throw new BusinessException(\"mysql.account.actionRequired\");\n        }\n        try {\n            return valueOf(value);\n        } catch (IllegalArgumentException e) {\n            throw new BusinessException(\"mysql.account.actionUnsupported\", null, e);\n        }\n    }\n}\n","sourceCodeStart":1,"sourceCodeEnd":25,"githubUrl":"https://github.com/OtterMind/Chat2DB/blob/5ee1e990e73fbcae1969dc554be254fedb3ab888/chat2db-community-server/chat2db-community-domain/chat2db-community-domain-api/src/main/java/ai/chat2db/community/domain/api/enums/plugin/AccountActionTypeEnum.java#L1-L25","documentation":"Error \"mysql.account.actionRequired\" thrown in OtterMind/Chat2DB.","triggerScenarios":"A MySQL account-management request arrived without an action type.","commonSituations":"See trigger scenarios.","solutions":["Pass an explicit account action (create, alter, drop, grant, revoke, etc.) in the request.","Check the client call site to ensure actionType is always populated."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ee1e990e73fbcae1969dc554be254fedb3ab888","analyzedAt":"2026-08-14T07:05:03.077Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}