{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/6571","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/6571/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/6571/comments","events_url":"https://api.github.com/repos/composer/composer/issues/6571/events","html_url":"https://github.com/composer/composer/issues/6571","id":246099156,"number":6571,"title":"Composer install generates composer.json with slashes escaped.","user":{"login":"stefgosselin","id":359041,"avatar_url":"https://avatars2.githubusercontent.com/u/359041?v=4","gravatar_id":"","url":"https://api.github.com/users/stefgosselin","html_url":"https://github.com/stefgosselin","followers_url":"https://api.github.com/users/stefgosselin/followers","following_url":"https://api.github.com/users/stefgosselin/following{/other_user}","gists_url":"https://api.github.com/users/stefgosselin/gists{/gist_id}","starred_url":"https://api.github.com/users/stefgosselin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefgosselin/subscriptions","organizations_url":"https://api.github.com/users/stefgosselin/orgs","repos_url":"https://api.github.com/users/stefgosselin/repos","events_url":"https://api.github.com/users/stefgosselin/events{/privacy}","received_events_url":"https://api.github.com/users/stefgosselin/received_events","type":"User","site_admin":false},"labels":[{"id":66814887,"url":"https://api.github.com/repos/composer/composer/labels/Support","name":"Support","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-07-27T16:33:36Z","updated_at":"2018-04-13T09:28:43Z","closed_at":"2018-04-13T09:28:43Z","author_association":"NONE","body":"I am not certain if this is expected behavior,  `composer.json` is modified ( escaped json) after running composer install.\r\n\r\n\r\n\r\nMy initial `composer.json`:\r\n\r\n\r\n\r\n```json\r\n{\r\n    \"name\": \"digitalstate/platform-application\",\r\n    \"description\": \"DigitalState Platform Application\",\r\n    \"homepage\": \"https://github.com/DigitalState/Platform-Application.git\",\r\n    \"keywords\": [\"DigitalState\"],\r\n    \"license\": \"MIT\",\r\n    \"autoload\": {\r\n        \"psr-4\": {\r\n            \"\": \"src/\"\r\n        }\r\n    },\r\n    \"repositories\": {\r\n        \"composer\": {\r\n            \"type\": \"composer\",\r\n            \"url\": \"https://packagist.orocrm.com\"\r\n        },\r\n        \"dsplatform\": {\r\n            \"type\": \"vcs\",\r\n            \"url\": \"git@bitbucket.org:villemontreal/dsplatform.git\"\r\n        }\r\n    },\r\n    \"require\": {\r\n        \"oro/platform\": \"2.0.5\",\r\n        \"oro/platform-serialised-fields\": \"2.0.2\",\r\n        \"knplabs/knp-time-bundle\": \"dev-master#272b9d6c127db1a648d2729bc821f0ed19a274d4\",\r\n        \"craue/formflow-bundle\": \"dev-master#47b2b7af9b4385f97470ecb858f3a9c03e431587\",\r\n        \"digitalstate/bpm-camunda-sdk\": \"dev-master\",\r\n        \"lexik/jwt-authentication-bundle\": \"^2.2\",\r\n        \"mandrill/mandrill\": \"^1.0\",\r\n        \"aws/aws-sdk-php\": \"^3.28\",\r\n        \"dunglas/doctrine-json-odm\": \" dev-master\",\r\n        \"ramsey/uuid\": \"^3.6\"\r\n    },\r\n    \"require-dev\": {\r\n        \"sensio/generator-bundle\": \"3.1.2\",\r\n        \"behat/behat\": \"3.2.2\",\r\n        \"behat/mink-extension\": \"2.2.*\",\r\n        \"behat/mink-selenium2-driver\": \"1.*\",\r\n        \"behat/symfony2-extension\": \"2.1.1\",\r\n        \"nelmio/alice\": \"2.2.*\",\r\n        \"phpunit/phpunit\": \"5.7.*\",\r\n        \"phpunit/phpunit-selenium\": \"3.0.*\",\r\n        \"johnkary/phpunit-speedtrap\": \"1.0.*\",\r\n        \"mybuilder/phpunit-accelerator\": \"1.2.*\",\r\n        \"squizlabs/php_codesniffer\": \"2.7.*\",\r\n        \"phpmd/phpmd\": \"2.5.*\",\r\n        \"sebastian/phpcpd\": \"2.0.*\",\r\n        \"leaphub/phpcs-symfony2-standard\": \"~2.0.0\",\r\n        \"league/factory-muffin\": \"^3.0\",\r\n        \"league/factory-muffin-faker\": \"^2.0\",\r\n        \"codeception/codeception\": \"^2.2\",\r\n        \"phploc/phploc\": \"^3.0\"\r\n    },\r\n    \"config\": {\r\n        \"component-dir\": \"web/bundles/components\",\r\n        \"bin-dir\": \"bin\"\r\n    },\r\n    \"scripts\": {\r\n        \"post-install-cmd\": [\r\n            \"Oro\\\\Bundle\\\\InstallerBundle\\\\Composer\\\\ScriptHandler::checkComposerPlugin\",\r\n            \"Incenteev\\\\ParameterHandler\\\\ScriptHandler::buildParameters\",\r\n            \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::buildBootstrap\",\r\n            \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::installRequirementsFile\",\r\n            \"Oro\\\\Bundle\\\\InstallerBundle\\\\Composer\\\\ScriptHandler::setPermissions\",\r\n            \"Oro\\\\Bundle\\\\InstallerBundle\\\\Composer\\\\ScriptHandler::installAssets\",\r\n            \"Oro\\\\Bundle\\\\InstallerBundle\\\\Composer\\\\ScriptHandler::setAssetsVersion\"\r\n        ],\r\n        \"post-update-cmd\": [\r\n            \"Oro\\\\Bundle\\\\InstallerBundle\\\\Composer\\\\ScriptHandler::checkComposerPlugin\",\r\n            \"Incenteev\\\\ParameterHandler\\\\ScriptHandler::buildParameters\",\r\n            \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::buildBootstrap\",\r\n            \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::installRequirementsFile\",\r\n            \"Oro\\\\Bundle\\\\InstallerBundle\\\\Composer\\\\ScriptHandler::setPermissions\",\r\n            \"Oro\\\\Bundle\\\\InstallerBundle\\\\Composer\\\\ScriptHandler::installAssets\",\r\n            \"Oro\\\\Bundle\\\\InstallerBundle\\\\Composer\\\\ScriptHandler::setAssetsVersion\"\r\n        ]\r\n    },\r\n    \"minimum-stability\": \"dev\",\r\n    \"prefer-stable\": true,\r\n    \"extra\": {\r\n        \"symfony-app-dir\": \"app\",\r\n        \"symfony-web-dir\": \"web\",\r\n        \"incenteev-parameters\": {\r\n            \"env-map\": {\r\n                \"server\": \"SERVER\",\r\n                \"database_host\": \"APP_DB_HOST\",\r\n                \"database_user\": \"APP_DB_USER\",\r\n                \"database_password\": \"APP_DB_PASSWORD\",\r\n                \"database_name\": \"APP_DB_NAME\"\r\n            },\r\n            \"file\": \"app/config/parameters.yml\"\r\n        },\r\n        \"asset-installer-paths\": {\r\n            \"npm-asset-library\": \"web/bundles/npmassets\",\r\n            \"bower-asset-library\": \"web/bundles/bowerassets\"\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nOutput of `composer.json ` after running composer install:\r\n\r\n```json\r\n\r\n{\r\n    \"name\": \"digitalstate\\/platform-application\",\r\n    \"description\": \"DigitalState Platform Application\",\r\n    \"homepage\": \"https:\\/\\/github.com\\/DigitalState\\/Platform-Application.git\",\r\n    \"keywords\": [\r\n        \"DigitalState\"\r\n    ],\r\n    \"license\": \"MIT\",\r\n    \"autoload\": {\r\n        \"psr-4\": {\r\n            \"\": \"src\\/\"\r\n        }\r\n    },\r\n    \"repositories\": {\r\n        \"composer\": {\r\n            \"type\": \"composer\",\r\n            \"url\": \"https:\\/\\/packagist.orocrm.com\"\r\n        },\r\n        \"dsplatform\": {\r\n            \"type\": \"vcs\",\r\n            \"url\": \"git@bitbucket.org:villemontreal\\/dsplatform.git\"\r\n        }\r\n    },\r\n    \"require\": {\r\n        \"oro\\/platform\": \"2.0.5\",\r\n        \"oro\\/platform-serialised-fields\": \"2.0.2\",\r\n        \"knplabs\\/knp-time-bundle\": \"dev-master#272b9d6c127db1a648d2729bc821f0ed19a274d4\",\r\n        \"craue\\/formflow-bundle\": \"dev-master#47b2b7af9b4385f97470ecb858f3a9c03e431587\",\r\n        \"digitalstate\\/bpm-camunda-sdk\": \"dev-master\",\r\n        \"lexik\\/jwt-authentication-bundle\": \"^2.2\",\r\n        \"mandrill\\/mandrill\": \"^1.0\",\r\n        \"aws\\/aws-sdk-php\": \"^3.28\",\r\n        \"dunglas\\/doctrine-json-odm\": \" dev-master\",\r\n        \"ramsey\\/uuid\": \"^3.6\"\r\n    },\r\n    \"require-dev\": {\r\n        \"sensio\\/generator-bundle\": \"3.1.2\",\r\n        \"behat\\/behat\": \"3.2.2\",\r\n        \"behat\\/mink-extension\": \"2.2.*\",\r\n        \"behat\\/mink-selenium2-driver\": \"1.*\",\r\n        \"behat\\/symfony2-extension\": \"2.1.1\",\r\n        \"nelmio\\/alice\": \"2.2.*\",\r\n        \"phpunit\\/phpunit\": \"5.7.*\",\r\n        \"phpunit\\/phpunit-selenium\": \"3.0.*\",\r\n        \"johnkary\\/phpunit-speedtrap\": \"1.0.*\",\r\n        \"mybuilder\\/phpunit-accelerator\": \"1.2.*\",\r\n        \"squizlabs\\/php_codesniffer\": \"2.7.*\",\r\n        \"phpmd\\/phpmd\": \"2.5.*\",\r\n        \"sebastian\\/phpcpd\": \"2.0.*\",\r\n        \"leaphub\\/phpcs-symfony2-standard\": \"~2.0.0\",\r\n        \"league\\/factory-muffin\": \"^3.0\",\r\n        \"league\\/factory-muffin-faker\": \"^2.0\",\r\n        \"codeception\\/codeception\": \"^2.2\",\r\n        \"phploc\\/phploc\": \"^3.0\"\r\n    },\r\n    \"config\": {\r\n        \"component-dir\": \"web\\/bundles\\/components\",\r\n        \"bin-dir\": \"bin\"\r\n    },\r\n    \"scripts\": {\r\n        \"post-install-cmd\": [\r\n            \"Oro\\\\Bundle\\\\InstallerBundle\\\\Composer\\\\ScriptHandler::checkComposerPlugin\",\r\n            \"Incenteev\\\\ParameterHandler\\\\ScriptHandler::buildParameters\",\r\n            \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::buildBootstrap\",\r\n            \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::installRequirementsFile\",\r\n            \"Oro\\\\Bundle\\\\InstallerBundle\\\\Composer\\\\ScriptHandler::setPermissions\",\r\n            \"Oro\\\\Bundle\\\\InstallerBundle\\\\Composer\\\\ScriptHandler::installAssets\",\r\n            \"Oro\\\\Bundle\\\\InstallerBundle\\\\Composer\\\\ScriptHandler::setAssetsVersion\"\r\n        ],\r\n        \"post-update-cmd\": [\r\n            \"Oro\\\\Bundle\\\\InstallerBundle\\\\Composer\\\\ScriptHandler::checkComposerPlugin\",\r\n            \"Incenteev\\\\ParameterHandler\\\\ScriptHandler::buildParameters\",\r\n            \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::buildBootstrap\",\r\n            \"Sensio\\\\Bundle\\\\DistributionBundle\\\\Composer\\\\ScriptHandler::installRequirementsFile\",\r\n            \"Oro\\\\Bundle\\\\InstallerBundle\\\\Composer\\\\ScriptHandler::setPermissions\",\r\n            \"Oro\\\\Bundle\\\\InstallerBundle\\\\Composer\\\\ScriptHandler::installAssets\",\r\n            \"Oro\\\\Bundle\\\\InstallerBundle\\\\Composer\\\\ScriptHandler::setAssetsVersion\"\r\n        ]\r\n    },\r\n    \"minimum-stability\": \"dev\",\r\n    \"prefer-stable\": true,\r\n    \"extra\": {\r\n        \"symfony-app-dir\": \"app\",\r\n        \"symfony-web-dir\": \"web\",\r\n        \"incenteev-parameters\": {\r\n            \"env-map\": {\r\n                \"database_driver\": \"APP_DB_DRIVER\",\r\n                \"database_host\": \"APP_DB_HOST\",\r\n                \"database_port\": \"APP_DB_PORT\",\r\n                \"database_name\": \"APP_DB_NAME\",\r\n                \"database_user\": \"APP_DB_USER\",\r\n                \"database_password\": \"APP_DB_PASSWORD\",\r\n                \"mailer_transport\": \"APP_MAILER_TRANSPORT\",\r\n                \"mailer_host\": \"APP_MAILER_HOST\",\r\n                \"mailer_port\": \"APP_MAILER_PORT\",\r\n                \"mailer_encryption\": \"APP_MAILER_ENCRYPTION\",\r\n                \"mailer_user\": \"APP_MAILER_USER\",\r\n                \"mailer_password\": \"APP_MAILER_PASSWORD\",\r\n                \"websocket_bind_port\": \"APP_WEBSOCKET_BACKEND_PORT\",\r\n                \"websocket_backend_port\": \"APP_WEBSOCKET_BACKEND_PORT\",\r\n                \"websocket_frontend_port\": \"APP_WEBSOCKET_FRONTEND_PORT\",\r\n                \"installed\": \"APP_IS_INSTALLED\",\r\n                \"secret\": \"APP_SECRET\"\r\n            },\r\n            \"file\": \"app\\/config\\/parameters.yml\"\r\n        },\r\n        \"asset-installer-paths\": {\r\n            \"npm-asset-library\": \"web\\/bundles\\/npmassets\",\r\n            \"bower-asset-library\": \"web\\/bundles\\/bowerassets\"\r\n        }\r\n    }\r\n}%\r\n\r\n```\r\n\r\n\r\nIs this exepected behavior? \r\n\r\nAlso, quite certain the % should not be there at the end, but it is also generated by the composer install .\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/381079792","html_url":"https://github.com/composer/composer/issues/6571#issuecomment-381079792","issue_url":"https://api.github.com/repos/composer/composer/issues/6571","id":381079792,"user":{"login":"Seldaek","id":183678,"avatar_url":"https://avatars1.githubusercontent.com/u/183678?v=4","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"created_at":"2018-04-13T09:28:43Z","updated_at":"2018-04-13T09:28:43Z","author_association":"OWNER","body":"Automatically closing as this has not received any updates in a while. Please re-open if it is still relevant."}}
{"actor":{"display_login":"Seldaek"}}