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

"settings: this value is not valid" error when saving new Executable #28

Closed
ivanmerta opened this issue Jan 16, 2019 · 11 comments
Closed

Comments

@ivanmerta
Copy link

Using v2.4.0 I am getting below error when saving an executable. It seems this is general issue for me when using any configuration - same error for CLI, ImportDefinitions etc., and any values that I put in.
Examples below.

image

image

image

image

@dpfaffenbauer
Copy link
Owner

can you post the raw request sent by the browser?

@ivanmerta
Copy link
Author

curl 'http://pimcore-dev2-6054cd5ec26285d7.elb.us-east-1.amazonaws.com/admin/process_manager/executables/save' -H 'Cookie: pimcore_admin_sid=1; PHPSESSID=k4jl9pe432sue2kmtmeuim91kt' -H 'Origin: http://pimcore-dev2-6054cd5ec26285d7.elb.us-east-1.amazonaws.com' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: cs-CZ,cs;q=0.9' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: */*' -H 'X-pimcore-extjs-version-major: 6' -H 'X-pimcore-extjs-version-minor: 0' -H 'X-Requested-With: XMLHttpRequest' -H 'Proxy-Connection: keep-alive' -H 'Referer: http://pimcore-dev2-6054cd5ec26285d7.elb.us-east-1.amazonaws.com/admin/' -H 'X-pimcore-csrf-token: 168b4f753aa843deb9a86795b6342f057ed4bc46' --data-binary '{"id":12,"type":"pimcore","name":"Test","description":"test","settings":{"command":"test"},"active":false,"cron":""}' -

@dpfaffenbauer
Copy link
Owner

that is not the same process as described above. can you give me the request for the exact same process?

@ivanmerta
Copy link
Author

curl 'http://pimcore-dev2-6054cd5ec26285d7.elb.us-east-1.amazonaws.com/admin/process_manager/executables/save' -H 'Cookie: pimcore_admin_sid=1; PHPSESSID=2ptdbspt1io3atl5ra7isadh23' -H 'Origin: http://pimcore-dev2-6054cd5ec26285d7.elb.us-east-1.amazonaws.com' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: cs-CZ,cs;q=0.9' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: */*' -H 'X-pimcore-extjs-version-major: 6' -H 'X-pimcore-extjs-version-minor: 0' -H 'X-Requested-With: XMLHttpRequest' -H 'Proxy-Connection: keep-alive' -H 'Referer: http://pimcore-dev2-6054cd5ec26285d7.elb.us-east-1.amazonaws.com/admin/?_dc=1547719352' -H 'X-pimcore-csrf-token: 51a9f5126a8be3804b00904f433dc14da8d87a6e' --data-binary '{"type":"importdefinition","settings":{"definition":45,"params":"{\"file\":\"web/var/assets/_default_upload_bucket/sap_profit_center.csv\"}"},"name":"Tibco - SAP Profit Center","description":"Tibco - SAP Profit Center import from CSV","cron":"","active":false,"id":4}' --compressed

@dpfaffenbauer
Copy link
Owner

honestly, I have no idea. It looks all good to me.

What Version of ImportDefinitions and Process Manager do you have installed?

@ivanmerta
Copy link
Author

Yeah, I also don't have a clue. I have process manager 2.4.0 and for import definitions I actually have dev-master - I can try to reinstall that with ^2.0.
Seems that the error comes from CoreShop\Bundle\ResourceBundle\Controller\ResourceController saveAction() where $handledForm->isValid() is not true. Might that be connected with CoreShop somehow? There I have 2.0.2 and only CoreShopPimcore and CoreShopResource enabled in extensions. Thanks

@dpfaffenbauer
Copy link
Owner

found it, its symfonys fault:

symfony/symfony#29307
symfony/symfony#29911

@dpfaffenbauer
Copy link
Owner

nevermind, fixed it: 89b1bcb

@ivanmerta
Copy link
Author

Thanks a lot!

@dpfaffenbauer
Copy link
Owner

2.4.1 and 2.3.1 has been released with this fix

@ivanmerta
Copy link
Author

Working well for me with 2.4.1 now 👍

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

2 participants