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

Recipe export does not properly quote non-ASCII characters in the job description field

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • recipe-plugin
    • None

      The job description field can have any HTML text. eg – that looks like the -
      The export works fine, but the import of the recipe fails with
      "
      Exception: Invalid byte 1 of 1-byte UTF-8 sequence.
      Stacktrace:
      com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
      at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source)
      ...
      "

          [JENKINS-22241] Recipe export does not properly quote non-ASCII characters in the job description field

          Jesse Glick added a comment -

          @ndeloof fixed the export in ec080a6 but I think the import is still broken.

          Jesse Glick added a comment - @ndeloof fixed the export in ec080a6 but I think the import is still broken.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/org/jenkinsci/plugins/recipe/Ingredient.java
          src/test/java/org/jenkinsci/plugins/recipe/IngredientTest.java
          http://jenkins-ci.org/commit/recipe-plugin/324f5ce022f537038920078e38d7c17ce86137e5
          Log:
          [FIXED JENKINS-22241] Ingredient.read should use UTF-8 encoding.

          Compare: https://github.com/jenkinsci/recipe-plugin/compare/ec080a650e9a...324f5ce022f5

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/org/jenkinsci/plugins/recipe/Ingredient.java src/test/java/org/jenkinsci/plugins/recipe/IngredientTest.java http://jenkins-ci.org/commit/recipe-plugin/324f5ce022f537038920078e38d7c17ce86137e5 Log: [FIXED JENKINS-22241] Ingredient.read should use UTF-8 encoding. Compare: https://github.com/jenkinsci/recipe-plugin/compare/ec080a650e9a...324f5ce022f5

            jglick Jesse Glick
            strand Markus Strand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: