Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17031

When adding a JSON "Custom file" double quotes are added breaking syntax

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When adding a JSON "Custom file" double quotes are added before the first and last squiggly brackets and syntax breaks.

      For example, when adding the following composer.json to install mockery in a project,

      {
      "require":

      { "mockery/mockery": "dev-master" }

      }

      first and last quotes are added like,

      "{
      "require":

      { "mockery/mockery": "dev-master" }

      }"

      and when running "php composer.phar install" it fails with,

      [Seld\JsonLint\ParsingException]
      "composer.json" does not contain valid JSON

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: imod
          Path:
          src/main/java/org/jenkinsci/plugins/configfiles/json/JsonConfig.java
          src/main/resources/org/jenkinsci/plugins/configfiles/Messages.properties
          src/main/resources/org/jenkinsci/plugins/configfiles/json/JsonConfig/JsonConfigProvider/newInstanceDetail.jelly
          src/main/resources/org/jenkinsci/plugins/configfiles/json/JsonConfig/JsonConfigProvider/newInstanceDetail.properties
          src/main/resources/org/jenkinsci/plugins/configfiles/json/JsonConfig/edit-config.jelly
          http://jenkins-ci.org/commit/config-file-provider-plugin/046add319839b7006e0fa0f6e694ebcdbca2766a
          Log:
          [FIXED JENKINS-17031] add new provider for Json files


          You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
          For more options, visit https://groups.google.com/groups/opt_out.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: imod Path: src/main/java/org/jenkinsci/plugins/configfiles/json/JsonConfig.java src/main/resources/org/jenkinsci/plugins/configfiles/Messages.properties src/main/resources/org/jenkinsci/plugins/configfiles/json/JsonConfig/JsonConfigProvider/newInstanceDetail.jelly src/main/resources/org/jenkinsci/plugins/configfiles/json/JsonConfig/JsonConfigProvider/newInstanceDetail.properties src/main/resources/org/jenkinsci/plugins/configfiles/json/JsonConfig/edit-config.jelly http://jenkins-ci.org/commit/config-file-provider-plugin/046add319839b7006e0fa0f6e694ebcdbca2766a Log: [FIXED JENKINS-17031] add new provider for Json files – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .
          Hide
          domi Dominik Bartholdi added a comment -

          I added a special file type for json, will be available with the next version.

          Show
          domi Dominik Bartholdi added a comment - I added a special file type for json, will be available with the next version.
          Hide
          amoreton Agustín Moretón added a comment -

          Nice! Many thanks.-

          Show
          amoreton Agustín Moretón added a comment - Nice! Many thanks.-

            People

            • Assignee:
              domi Dominik Bartholdi
              Reporter:
              amoreton Agustín Moretón
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: