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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
    • Similar Issues:

      Description

      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 :

        Attachments

          Issue Links

            Activity

            Hide
            davidrutqvist 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."
            
            Show
            davidrutqvist 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 ."
            Hide
            andrealaura Andrea Gerster added a comment -

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

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

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

            Show
            batmat Baptiste Mathus added a comment - Andrea Gerster I wanted to, but times goes by. So feel very free to look into it if you can.
            Hide
            scm_issue_link 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.
            Show
            scm_issue_link 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.

              People

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

                Dates

                Created:
                Updated:
                Resolved: