Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workbench saving workflow of more than 255 chars does not work #95

Open
lucaslaurent04 opened this issue Jan 26, 2024 · 1 comment
Open

Comments

@lucaslaurent04
Copy link
Collaborator

If I create a workflow with Workbench and try to save it, it triggers an error because the core_meta.value column is limited to 255 chars.

So when I save, the php class is modified, but the workflow diagram is not saved in core_meta table.

Request from eQual console:

{
    "uri": "http:\/\/equal.local\/?do=core_model_create&entity=core\\Meta",
    "headers": {
        "Host": "equal.local:80",
        "Connection": "keep-alive",
        "Content-Length": "536",
        "Accept": "application\/json, text\/plain, *\/*",
        "User-Agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/120.0.0.0 Safari\/537.36",
        "Content-Type": "application\/json",
        "Origin": "http:\/\/equal.local",
        "Referer": "http:\/\/equal.local\/workbench\/",
        "Accept-Encoding": "gzip, deflate",
        "Accept-Language": "en-US,en;q=0.9",
        "Cookie": "access_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwiZXhwIjoxNzEzOTc2MDE1fQ.2bYlMZ5g6DGHhxoeAAJwTlMQ03ht3Dn-bBFF9YwsLMI",
        "ETag": "",
        "X-Forwarded-For": "172.20.0.1"
    },
    "body": {
        "fields": {
            "value": "{\"pending\":{\"position\":{\"x\":192,\"y\":193},\"transitions\":{\"request_validation\":{\"anchorFrom\":4,\"anchorTo\":3}}},\"ready\":{\"position\":{\"x\":292,\"y\":293},\"transitions\":{\"refuse\":{\"anchorFrom\":4,\"anchorTo\":3},\"validate\":{\"anchorFrom\":4,\"anchorTo\":3}}},\"validated\":{\"position\":{\"x\":392,\"y\":393},\"transitions\":{\"bill\":{\"anchorFrom\":4,\"anchorTo\":3}}},\"billed\":{\"position\":{\"x\":492,\"y\":493},\"transitions\":{}}}",
            "code": "workflow",
            "reference": "timetrack.TimeEntry"
        },
        "do": "core_model_create",
        "entity": "core\\Meta"
    }
}

Error sent:

{
  "errors": {
    "INVALID_PARAM": {
      "value": {
        "size_overflow": "String length must be maximum 255 chars."
      }
    }
  }
}
@lucaslaurent04
Copy link
Collaborator Author

Handled in pull request #96

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant