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

A test (disallowed DOCTYPE) fails due to a localization error

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core

      I've just tried to compile jenkins on my machine and faced an error while running tests.
      I've followed the steps from this link : https://wiki.jenkins-ci.org/display/JENKINS/Building+Jenkins
      It seems to be linked to my locale which is fr_FR.

      The error :

      Expected: a string containing "DOCTYPE is disallowed" 
      but: was "DOCTYPE n'est pas autorisé lorsque la fonctionnalité "http://apache.org/xml/features/disallow-doctype-decl" est définie sur True.".
      

      Full log here : http://dufour.tk/~quentin/logs/mvnlogs3.log

      How to reproduce ? Not sure but :

          [JENKINS-36044] A test (disallowed DOCTYPE) fails due to a localization error

          David Rutqvist added a comment - - edited

          Also got this with Windows 10, Oracle JDK 1.8 and locale sv_SE.

          Expected: a string containing "DOCTYPE is disallowed"
          but: was "DOCTYPE är inte tillåtet om funktionen "http://apache.org/xml/features/disallow-doctype-decl" anges som true."
          

          David Rutqvist added a comment - - edited Also got this with Windows 10, Oracle JDK 1.8 and locale sv_SE. Expected: a string containing "DOCTYPE is disallowed" but: was "DOCTYPE är inte tillåtet om funktionen " http: //apache.org/xml/features/disallow-doctype-decl " anges som true ."

          Hi batmat, are you working on this? Otherwise I'll take a look at it.

          Andrea Gerster added a comment - Hi batmat , are you working on this? Otherwise I'll take a look at it.

          andrealaura I wanted to, but times goes by. So feel very free to look into it if you can.

          Baptiste Mathus added a comment - andrealaura I wanted to, but times goes by. So feel very free to look into it if you can.

          Code changed in jenkins
          User: andrealaura
          Path:
          core/src/test/java/jenkins/xml/XMLUtilsTest.java
          http://jenkins-ci.org/commit/jenkins/ba2900b27dba97c70d2bdbce043b752907ea7ea3
          Log:
          [FIX JENKINS-36044]: Added default locale to XMLUtilsTest so that it … (#2649)

          • [FIX JENKINS-36044]: Added default locale to XMLUtilsTest so that it runs independent from the host OS locale.
          • [FIX JENKINS-36044]: Cleanup default-locale after test, to avoid impact to other tests.
          • [FIX JENKINS-36044]: Make test language indepedent.
          • [FIX JENKINS-36044]: Cleanup unused imports.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: andrealaura Path: core/src/test/java/jenkins/xml/XMLUtilsTest.java http://jenkins-ci.org/commit/jenkins/ba2900b27dba97c70d2bdbce043b752907ea7ea3 Log: [FIX JENKINS-36044] : Added default locale to XMLUtilsTest so that it … (#2649) [FIX JENKINS-36044] : Added default locale to XMLUtilsTest so that it runs independent from the host OS locale. [FIX JENKINS-36044] : Cleanup default-locale after test, to avoid impact to other tests. [FIX JENKINS-36044] : Make test language indepedent. [FIX JENKINS-36044] : Cleanup unused imports.

            andrealaura Andrea Gerster
            superboum Quentin Dufour
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: