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

can't parse argument number: changelog.url

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins version 2.214
      Linux VM (Ubuntu 16.04.6 LTS)
    • Similar Issues:
    • Released As:
      2.217

      Description

      Hello,

      since the update of our jenkins to version 2.214 we encounter problems when being logged in as an administrative user (using the german language requested by the browser, this ist important).

      The update indicator (showing jenkins update) produces an error:

       

      org.apache.commons.jelly.JellyTagException: jar:file:/usr/local/jenkins/jenkins-home/war/WEB-INF/lib/jenkins-core-2.214.jar!/hudson/model/UpdateCenter/CoreUpdateMonitor/message.jelly:53:20: <j:otherwise> can't parse argument number: changelog.url
      {{ at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:726)}}
      {{ at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:281)}}
      {{ at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)}}

       

      My guess is, that the following commit is the reason for this:

      https://github.com/jenkinsci/jenkins/commit/0ba0ea93d5fc36f1ecb2183cfdbcbec1f93b33ac#diff-98cf1bef361bc3e72fed2160bf895f40

       

      Maybe, all message properties should be changed to use "{2}" instead of "${changelog.url}" ?

      The standard properties file contains the following message pattern:
      {{NewVersionAvailable=<strong>New version of Jenkins ({0}) is available</strong> for <a href="{1}">download</a> }}
      {{ (<a href="{2}">changelog</a>).}}

      The german properties file producing the error contains the following pattern instead:

      NewVersionAvailable=Eine neue Version von Jenkins ({0}) kann <a href="{1}">hier heruntergeladen</a> werden (<a href="${changelog.url}">Was ist neu?</a>).

      As far as I saw there we additional files having the same pattern like the german one. Maybe they produce issues as well?

       

      Best regards,

      Heiko

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jnz_topdanmark Jon Brohauge
                Reporter:
                webwart H. Feldker
              • Votes:
                3 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: