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 }}
Repository navigation
UploadAndExecuteAction is broken and unreachable #83
UploadAndExecuteAction (/process/upload-and-execute, route process_upload_and_execute) is broken and unreachable:
no link to it in the UI, not documented;
the process value resolver (ProcessConfigurationValueResolver) reads the process code from the POST body, so a GET always fails;
its template @CleverAgeUiProcess/admin/process/upload_and_execute.html.twig does not exist.
Uploading a file to run a process is already handled by LaunchAction (entrypoint_type: file UI option).
Reproduction
In process-bundle-demo, logged in:
GET /process/upload-and-execute
→ 500 No process with code :
POST /process/upload-and-execute (process=demo.upload_and_run)
→ 500 Unable to find template "@CleverAgeUiProcess/admin/process/upload_and_execute.html.twig"
Tested on main (9032210, v3.0.1) in process-bundle-demo, PHP 8.5, Symfony 7.4, EasyAdmin 5.
Proposed fix
Remove UploadAndExecuteAction, and ProcessUploadFileType / ProcessConfigurationValueResolver, only used by it.
Requirements
Documentation updates
Reference
Changelog
Unit tests
Breaking changes
The process_upload_and_execute route and these three classes are removed (the route always failed).
Activity
#83 #84 #85 Remove the broken UploadAndExecuteAction, add LogRecord::…
Merge pull request #86 from cleverage/83