Skip to content

[JENKINS-36757] incorrect logging formats in setup wizard. #17351

Description

@jenkins-infra-bot

In 2.7.1 there are several incorrect logging statements which causes the message to be slightly less than useful.

$ grep -r -E -n "[^']'{[[:digit:]]"
hudson/model/UpdateCenter.java:1453:    LOGGER.log(WARNING, "Update site '{0}' does not declare the connection check URL. "
jenkins/install/InstallState.java:176:    LOGGER.log(Level.WARNING, "Read install state with blank name: '{0}'. It will be ignored", name);
jenkins/install/InstallState.java:182:    LOGGER.log(Level.WARNING, "Cannot locate an extension point for the state '{0}'. It will be ignored", name);

The idea here was presumable to put something in single quotes - however a message format requires a quote to be escaped - or it means use whatever is between the quotes without interpretation.

So you end up with log messages like:

Jul 18, 2016 1:52:58 PM hudson.model.UpdateCenter$ConnectionCheckJob run
WARNING: Update site {0} does not declare the connection check URL. Skipping the network availability check.


Originally reported by teilo, imported from: incorrect logging formats in setup wizard.
  • status: Resolved
  • priority: Minor
  • component(s): core
  • label(s): 2.7.3-fixed
  • resolution: Fixed
  • resolved: 2020-07-06T14:11:42+00:00
  • votes: 0
  • watchers: 4
  • imported: 2025-11-24
Raw content of original issue

In 2.7.1 there are several incorrect logging statements which causes the message to be slightly less than useful.

$ grep -r -E -n "[^']'{[[:digit:]]"
hudson/model/UpdateCenter.java:1453:                    LOGGER.log(WARNING, "Update site '{0}' does not declare the connection check URL. "
jenkins/install/InstallState.java:176:            LOGGER.log(Level.WARNING, "Read install state with blank name: '{0}'. It will be ignored", name);
jenkins/install/InstallState.java:182:            LOGGER.log(Level.WARNING, "Cannot locate an extension point for the state '{0}'. It will be ignored", name);

The idea here was presumable to put something in single quotes - however a message format requires a quote to be escaped - or it means use whatever is between the quotes without interpretation.

So you end up with log messages like:

Jul 18, 2016 1:52:58 PM hudson.model.UpdateCenter$ConnectionCheckJob run
WARNING: Update site {0} does not declare the connection check URL. Skipping the network availability check.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions