Skip to content

Commit 36c7b20

Browse files
authored
Merge branch 'master' into new-header
2 parents 3f92937 + 6fbea1d commit 36c7b20

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+187
-376
lines changed

.github/workflows/announce-lts-rc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
discourse-author-username: jenkins-release-bot
1717
discourse-category: 23
1818
- name: Post on mailing list
19-
uses: dawidd6/action-send-mail@v3
19+
uses: dawidd6/action-send-mail@v4
2020
with:
2121
server_address: smtp.gmail.com
2222
server_port: 465

bom/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ THE SOFTWARE.
4141
<commons-fileupload2.version>2.0.0-M2</commons-fileupload2.version>
4242
<groovy.version>2.4.21</groovy.version>
4343
<jelly.version>1.1-jenkins-20250108</jelly.version>
44-
<stapler.version>1955.vdb_2736b_480e3</stapler.version>
44+
<stapler.version>1961.vd0a_a_60970a_a_2</stapler.version>
4545
</properties>
4646

4747
<dependencyManagement>
@@ -63,7 +63,7 @@ THE SOFTWARE.
6363
<dependency>
6464
<groupId>org.springframework</groupId>
6565
<artifactId>spring-framework-bom</artifactId>
66-
<version>6.2.3</version>
66+
<version>6.2.4</version>
6767
<type>pom</type>
6868
<scope>import</scope>
6969
</dependency>

core/src/main/java/hudson/Functions.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1810,6 +1810,7 @@ public static <T> T defaulted(T value, T defaultValue) {
18101810
return s.toString();
18111811
}
18121812

1813+
@SuppressFBWarnings(value = "INFORMATION_EXPOSURE_THROUGH_AN_ERROR_MESSAGE", justification = "Jenkins handles this issue differently or doesn't care about it")
18131814
private static void doPrintStackTrace(@NonNull StringBuilder s, @NonNull Throwable t, @CheckForNull Throwable higher, @NonNull String prefix, @NonNull Set<Throwable> encountered) {
18141815
if (!encountered.add(t)) {
18151816
s.append("<cycle to ").append(t).append(">\n");
@@ -1863,6 +1864,7 @@ private static void doPrintStackTrace(@NonNull StringBuilder s, @NonNull Throwab
18631864
* @param pw the log
18641865
* @since 2.43
18651866
*/
1867+
@SuppressFBWarnings(value = "XSS_SERVLET", justification = "TODO needs triage")
18661868
public static void printStackTrace(@CheckForNull Throwable t, @NonNull PrintWriter pw) {
18671869
pw.println(printThrowable(t).trim());
18681870
}

core/src/main/java/hudson/Launcher.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,7 @@ private File toFile(FilePath f) {
10001000
}
10011001

10021002
@Override
1003+
@SuppressFBWarnings(value = "COMMAND_INJECTION", justification = "TODO needs triage")
10031004
public Channel launchChannel(String[] cmd, OutputStream out, FilePath workDir, Map<String, String> envVars) throws IOException {
10041005
printCommandLine(cmd, workDir);
10051006

@@ -1437,11 +1438,15 @@ private static class RemoteChannelLaunchCallable extends MasterToSlaveCallable<O
14371438
this.envOverrides = envOverrides;
14381439
}
14391440

1441+
@SuppressFBWarnings(value = "COMMAND_INJECTION", justification = "TODO needs triage")
1442+
private Process launchProcess() throws IOException {
1443+
return Runtime.getRuntime()
1444+
.exec(cmd, Util.mapToEnv(inherit(envOverrides)), workDir == null ? null : new File(workDir));
1445+
}
1446+
14401447
@Override
14411448
public OutputStream call() throws IOException {
1442-
Process p = Runtime.getRuntime().exec(cmd,
1443-
Util.mapToEnv(inherit(envOverrides)),
1444-
workDir == null ? null : new File(workDir));
1449+
Process p = launchProcess();
14451450

14461451
List<String> cmdLines = Arrays.asList(cmd);
14471452
new StreamCopyThread("stdin copier for remote agent on " + cmdLines,

core/src/main/java/hudson/PluginManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ PluginManager doCreate(@NonNull Class<? extends PluginManager> klass,
363363
* This is used to report a message that Jenkins needs to be restarted
364364
* for new plugins to take effect.
365365
*/
366+
@SuppressFBWarnings(value = "PA_PUBLIC_PRIMITIVE_ATTRIBUTE", justification = "Preserve API compatibility")
366367
public volatile boolean pluginUploaded = false;
367368

368369
/**

core/src/main/java/hudson/ProxyConfiguration.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import com.thoughtworks.xstream.XStream;
2828
import edu.umd.cs.findbugs.annotations.CheckForNull;
2929
import edu.umd.cs.findbugs.annotations.NonNull;
30+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
3031
import hudson.model.AbstractDescribableImpl;
3132
import hudson.model.Descriptor;
3233
import hudson.model.Saveable;
@@ -113,6 +114,7 @@ public final class ProxyConfiguration extends AbstractDescribableImpl<ProxyConfi
113114
* @see #getNoProxyHostPatterns()
114115
*/
115116
@Restricted(NoExternalUse.class)
117+
@SuppressFBWarnings(value = "PA_PUBLIC_PRIMITIVE_ATTRIBUTE", justification = "Preserve API compatibility")
116118
public String noProxyHost;
117119

118120
@Deprecated

core/src/main/java/hudson/TcpSlaveAgentListener.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ public void run() {
206206
/**
207207
* Initiates the shuts down of the listener.
208208
*/
209+
@SuppressFBWarnings(value = "UNENCRYPTED_SOCKET", justification = "TODO needs triage")
209210
public void shutdown() {
210211
shuttingDown = true;
211212
try {

core/src/main/java/hudson/cli/CLICommand.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ public abstract class CLICommand implements ExtensionPoint, Cloneable {
124124
* (In contrast, calling {@code System.out.println(...)} would print out
125125
* the message to the server log file, which is probably not what you want.
126126
*/
127+
@SuppressFBWarnings(value = "PA_PUBLIC_PRIMITIVE_ATTRIBUTE", justification = "Preserve API compatibility")
127128
public transient PrintStream stdout, stderr;
128129

129130
/**
@@ -139,6 +140,7 @@ public abstract class CLICommand implements ExtensionPoint, Cloneable {
139140
* <p>
140141
* This input stream is buffered to hide the latency in the remoting.
141142
*/
143+
@SuppressFBWarnings(value = "PA_PUBLIC_PRIMITIVE_ATTRIBUTE", justification = "Preserve API compatibility")
142144
public transient InputStream stdin;
143145

144146
/**
@@ -150,6 +152,7 @@ public abstract class CLICommand implements ExtensionPoint, Cloneable {
150152
/**
151153
* The locale of the client. Messages should be formatted with this resource.
152154
*/
155+
@SuppressFBWarnings(value = "PA_PUBLIC_PRIMITIVE_ATTRIBUTE", justification = "Preserve API compatibility")
153156
public transient Locale locale;
154157

155158
/**

core/src/main/java/hudson/cli/Connection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ public Connection encryptConnection(SecretKey sessionKey, String algorithm) thro
208208
return new Connection(i, o);
209209
}
210210

211+
@SuppressFBWarnings(value = "STATIC_IV", justification = "TODO needs triage")
211212
private IvParameterSpec createIv(SecretKey sessionKey) {
212213
return new IvParameterSpec(sessionKey.getEncoded());
213214
}

core/src/main/java/hudson/cli/CopyJobCommand.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
package hudson.cli;
2626

27+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
2728
import hudson.Extension;
2829
import hudson.model.Item;
2930
import hudson.model.TopLevelItem;
@@ -47,6 +48,7 @@ public String getShortDescription() {
4748
public TopLevelItem src;
4849

4950
@Argument(metaVar = "DST", usage = "Name of the new job to be created.", index = 1, required = true)
51+
@SuppressFBWarnings(value = "PA_PUBLIC_PRIMITIVE_ATTRIBUTE", justification = "Preserve API compatibility")
5052
public String dst;
5153

5254
@Override

0 commit comments

Comments
 (0)