[JIRA] (JENKINS-54772) computer/<name>/systemInfo doesn't report full Environment

0 görüntüleme
İlk okunmamış mesaja atla

pjanouse@redhat.com (JIRA)

okunmadı,
22 Kas 2018 07:24:0222.11.2018
alıcı jenkinsc...@googlegroups.com
Pavel Janoušek created an issue
 
Jenkins / Bug JENKINS-54772
computer/<name>/systemInfo doesn't report full Environment
Issue Type: Bug Bug
Assignee: Pavel Janoušek
Components: core
Created: 2018-11-22 12:23
Priority: Minor Minor
Reporter: Pavel Janoušek

computer/<name>/systemInfo page gather values for the table of environment variables from EnvVarsSlaveInfo class which uses Computer.getEnvVars() resp. Computer.getEnvironment() for obtaining an EnvVars structure.

The EnvVars class stores values as a TreeMap with the case-insensitive comparator. When the keys are different, but the difference is only in character cases, it stores all such keys in one key. It is un-deterministic which environment variable name you will see, it depends on the order returned by System.getenv() (the first occurrence is used as the key for map) - it's a natural behavior of TreeMap.

In case you have more keys with a difference in the case character(s) only you don't have a real view what is exactly the running environment.

EnvVars is used in many cases in the core hence I don't want to break a backward-compatibility so I'd propose a fix that don't use EnvVars for display this output, but obtain a full real environment variable collection from the agent at the time of page generation.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

pjanouse@redhat.com (JIRA)

okunmadı,
22 Kas 2018 08:55:0222.11.2018
alıcı jenkinsc...@googlegroups.com
Pavel Janoušek started work on Bug JENKINS-54772
 
Change By: Pavel Janoušek
Status: Open In Progress

pjanouse@redhat.com (JIRA)

okunmadı,
23 Kas 2018 04:43:0123.11.2018
alıcı jenkinsc...@googlegroups.com

pjanouse@redhat.com (JIRA)

okunmadı,
23 Kas 2018 04:43:0223.11.2018
alıcı jenkinsc...@googlegroups.com

dbeck@cloudbees.com (JIRA)

okunmadı,
20 Ağu 2019 12:27:0420.08.2019
alıcı jenkinsc...@googlegroups.com
Change By: Daniel Beck
Status: In Review Resolved
Resolution: Fixed
Released As: 2.190
Tümünü yanıtla
Yazarı yanıtla
Yönlendir
0 yeni ileti