Skip to content

Commit 645ac78

Browse files
committed
Use HTTPS in URL
1 parent 16755a9 commit 645ac78

File tree

10 files changed

+35
-35
lines changed

10 files changed

+35
-35
lines changed

commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/AbstractFileUpload.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* High level API for processing file uploads.
3434
* <p>
3535
* This class handles multiple files per single HTML widget, sent using {@code multipart/mixed} encoding type, as specified by
36-
* <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>. Use {@link #parseRequest(RequestContext)} to acquire a list of {@link FileItem}s associated with
36+
* <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>. Use {@link #parseRequest(RequestContext)} to acquire a list of {@link FileItem}s associated with
3737
* a given HTML widget.
3838
* </p>
3939
* <p>
@@ -279,7 +279,7 @@ public Charset getHeaderCharset() {
279279
public abstract FileItemInputIterator getItemIterator(R request) throws FileUploadException, IOException;
280280

281281
/**
282-
* Gets an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
282+
* Gets an <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
283283
*
284284
* @param requestContext The context for the request to be parsed.
285285
* @return An iterator to instances of {@code FileItemInput} parsed from the request, in the order that they were transmitted.
@@ -430,7 +430,7 @@ private void parseHeaderLine(final FileItemHeaders headers, final String header)
430430
}
431431

432432
/**
433-
* Parses an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
433+
* Parses an <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
434434
*
435435
* @param request The servlet request to be parsed.
436436
* @return A map of {@code FileItem} instances parsed from the request.
@@ -439,7 +439,7 @@ private void parseHeaderLine(final FileItemHeaders headers, final String header)
439439
public abstract Map<String, List<I>> parseParameterMap(R request) throws FileUploadException;
440440

441441
/**
442-
* Parses an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
442+
* Parses an <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
443443
*
444444
* @param ctx The context for the request to be parsed.
445445
* @return A map of {@code FileItem} instances parsed from the request.
@@ -459,7 +459,7 @@ public Map<String, List<I>> parseParameterMap(final RequestContext ctx) throws F
459459
}
460460

461461
/**
462-
* Parses an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
462+
* Parses an <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
463463
*
464464
* @param request The servlet request to be parsed.
465465
* @return A list of {@code FileItem} instances parsed from the request, in the order that they were transmitted.
@@ -468,7 +468,7 @@ public Map<String, List<I>> parseParameterMap(final RequestContext ctx) throws F
468468
public abstract List<I> parseRequest(R request) throws FileUploadException;
469469

470470
/**
471-
* Parses an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
471+
* Parses an <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
472472
*
473473
* @param requestContext The context for the request to be parsed.
474474
* @return A list of {@code FileItem} instances parsed from the request, in the order that they were transmitted.

commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/MultipartInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* Low-level API for processing file uploads.
3535
*
3636
* <p>
37-
* This class can be used to process data streams conforming to MIME 'multipart' format as defined in <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC
37+
* This class can be used to process data streams conforming to MIME 'multipart' format as defined in <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC
3838
* 1867</a>. Arbitrarily large amounts of data in the stream can be processed under constant memory usage.
3939
* </p>
4040
* <p>

commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
/**
1919
* <p>
20-
* A component for handling HTML file uploads as specified by <a href="http://www.ietf.org/rfc/rfc1867.txt" target="_top">RFC&nbsp;1867</a>. This component
20+
* A component for handling HTML file uploads as specified by <a href="https://www.ietf.org/rfc/rfc1867.txt" target="_top">RFC&nbsp;1867</a>. This component
2121
* provides support for uploads within both servlets (JSR 53) and portlets (JSR 168).
2222
* </p>
2323
* <p>

commons-fileupload2-jakarta-servlet5/src/main/java/org/apache/commons/fileupload2/jakarta/servlet5/JakartaServletFileUpload.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* High level API for processing file uploads.
3333
* <p>
3434
* This class handles multiple files per single HTML widget, sent using {@code multipart/mixed} encoding type, as specified by
35-
* <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>. Use {@link #parseRequest(HttpServletRequest)} to acquire a list of {@link FileItem}s associated
35+
* <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>. Use {@link #parseRequest(HttpServletRequest)} to acquire a list of {@link FileItem}s associated
3636
* with a given HTML widget.
3737
* </p>
3838
* <p>
@@ -79,7 +79,7 @@ public JakartaServletFileUpload(final F fileItemFactory) {
7979
}
8080

8181
/**
82-
* Gets an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} file item iterator.
82+
* Gets an <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} file item iterator.
8383
*
8484
* @param request The servlet request to be parsed.
8585
* @return An iterator to instances of {@code FileItemInput} parsed from the request, in the order that they were transmitted.
@@ -93,7 +93,7 @@ public FileItemInputIterator getItemIterator(final HttpServletRequest request) t
9393
}
9494

9595
/**
96-
* Parses an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
96+
* Parses an <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
9797
*
9898
* @param request The servlet request to be parsed.
9999
* @return A map of {@code FileItem} instances parsed from the request.
@@ -105,7 +105,7 @@ public Map<String, List<I>> parseParameterMap(final HttpServletRequest request)
105105
}
106106

107107
/**
108-
* Parses an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
108+
* Parses an <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
109109
*
110110
* @param request The servlet request to be parsed.
111111
* @return A list of {@code FileItem} instances parsed from the request, in the order that they were transmitted.

commons-fileupload2-jakarta-servlet6/src/main/java/org/apache/commons/fileupload2/jakarta/servlet6/JakartaServletFileUpload.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* High level API for processing file uploads.
3333
* <p>
3434
* This class handles multiple files per single HTML widget, sent using {@code multipart/mixed} encoding type, as specified by
35-
* <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>. Use {@link #parseRequest(HttpServletRequest)} to acquire a list of {@link FileItem}s associated
35+
* <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>. Use {@link #parseRequest(HttpServletRequest)} to acquire a list of {@link FileItem}s associated
3636
* with a given HTML widget.
3737
* </p>
3838
* <p>
@@ -79,7 +79,7 @@ public JakartaServletFileUpload(final F fileItemFactory) {
7979
}
8080

8181
/**
82-
* Gets an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} file item iterator.
82+
* Gets an <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} file item iterator.
8383
*
8484
* @param request The servlet request to be parsed.
8585
* @return An iterator to instances of {@code FileItemInput} parsed from the request, in the order that they were transmitted.
@@ -93,7 +93,7 @@ public FileItemInputIterator getItemIterator(final HttpServletRequest request) t
9393
}
9494

9595
/**
96-
* Parses an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
96+
* Parses an <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
9797
*
9898
* @param request The servlet request to be parsed.
9999
* @return A map of {@code FileItem} instances parsed from the request.
@@ -105,7 +105,7 @@ public Map<String, List<I>> parseParameterMap(final HttpServletRequest request)
105105
}
106106

107107
/**
108-
* Parses an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
108+
* Parses an <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
109109
*
110110
* @param request The servlet request to be parsed.
111111
* @return A list of {@code FileItem} instances parsed from the request, in the order that they were transmitted.

commons-fileupload2-javax/src/main/java/org/apache/commons/fileupload2/javax/JavaxServletFileUpload.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* High level API for processing file uploads.
3333
* <p>
3434
* This class handles multiple files per single HTML widget, sent using {@code multipart/mixed} encoding type, as specified by
35-
* <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>. Use {@link #parseRequest(HttpServletRequest)} to acquire a list of {@link FileItem}s associated
35+
* <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>. Use {@link #parseRequest(HttpServletRequest)} to acquire a list of {@link FileItem}s associated
3636
* with a given HTML widget.
3737
* </p>
3838
* <p>
@@ -79,7 +79,7 @@ public JavaxServletFileUpload(final F fileItemFactory) {
7979
}
8080

8181
/**
82-
* Gets an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} file item iterator.
82+
* Gets an <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} file item iterator.
8383
*
8484
* @param request The servlet request to be parsed.
8585
* @return An iterator to instances of {@code FileItemInput} parsed from the request, in the order that they were transmitted.
@@ -93,7 +93,7 @@ public FileItemInputIterator getItemIterator(final HttpServletRequest request) t
9393
}
9494

9595
/**
96-
* Parses an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
96+
* Parses an <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
9797
*
9898
* @param request The servlet request to be parsed.
9999
* @return A map of {@code FileItem} instances parsed from the request.
@@ -105,7 +105,7 @@ public Map<String, List<I>> parseParameterMap(final HttpServletRequest request)
105105
}
106106

107107
/**
108-
* Parses an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
108+
* Parses an <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
109109
*
110110
* @param request The servlet request to be parsed.
111111
* @return A list of {@code FileItem} instances parsed from the request, in the order that they were transmitted.

commons-fileupload2-portlet/src/main/java/org/apache/commons/fileupload2/portlet/JavaxPortletFileUpload.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* High level API for processing file uploads.
3434
* <p>
3535
* This class handles multiple files per single HTML widget, sent using {@code multipart/mixed} encoding type, as specified by
36-
* <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>. Use {@link JavaxServletFileUpload#parseRequest(javax.servlet.http.HttpServletRequest)} to acquire
36+
* <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>. Use {@link JavaxServletFileUpload#parseRequest(javax.servlet.http.HttpServletRequest)} to acquire
3737
* a list of {@link FileItem}s associated with a given HTML widget.
3838
* </p>
3939
* <p>
@@ -75,7 +75,7 @@ public JavaxPortletFileUpload(final F fileItemFactory) {
7575
}
7676

7777
/**
78-
* Gets an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} file item iterator.
78+
* Gets an <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} file item iterator.
7979
*
8080
* @param request The portlet request to be parsed.
8181
* @return An iterator to instances of {@code FileItemInput} parsed from the request, in the order that they were transmitted.
@@ -89,7 +89,7 @@ public FileItemInputIterator getItemIterator(final ActionRequest request) throws
8989
}
9090

9191
/**
92-
* Parses an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
92+
* Parses an <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
9393
*
9494
* @param request The portlet request to be parsed.
9595
* @return A map of {@code FileItem} instances parsed from the request.
@@ -101,7 +101,7 @@ public Map<String, List<I>> parseParameterMap(final ActionRequest request) throw
101101
}
102102

103103
/**
104-
* Parses an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
104+
* Parses an <a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a> compliant {@code multipart/form-data} stream.
105105
*
106106
* @param request The portlet request to be parsed.
107107
* @return A list of {@code FileItem} instances parsed from the request, in the order that they were transmitted.

src/site/xdoc/index.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</p>
3434
<p>
3535
FileUpload parses HTTP requests which conform to
36-
<a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>,
36+
<a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>,
3737
"Form-based File Upload in HTML". That is, if an HTTP request is
3838
submitted using the POST method, and with a content type of
3939
"multipart/form-data", then FileUpload can parse that request, and

src/site/xdoc/security.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
<subsection name="Fixed in Apache Commons FileUpload 2.0.0-M4">
5656
<p><b>Important: Denial of Service</b> <a
57-
href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-48976">CVE-2025-48976</a></p>
57+
href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-48976">CVE-2025-48976</a></p>
5858

5959
<p>Apache Commons FileUpload 2.x before 2.0.0-M4 provides a hard-coded
6060
limit of 10kB for the size of the headers associated with a multipart
@@ -78,7 +78,7 @@
7878

7979
<subsection name="Fixed in Apache Commons FileUpload 1.6.0">
8080
<p><b>Important: Denial of Service</b> <a
81-
href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-48976">CVE-2025-48976</a></p>
81+
href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-48976">CVE-2025-48976</a></p>
8282

8383
<p>Apache Commons FileUpload 1.x before 1.6.0 provides a hard-coded
8484
limit of 10kB for the size of the headers associated with a multipart
@@ -96,7 +96,7 @@
9696

9797
<subsection name="Fixed in Apache Commons FileUpload 1.5">
9898
<p><b>Important: Denial of Service</b> <a
99-
href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-24998">CVE-2023-24998</a></p>
99+
href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-24998">CVE-2023-24998</a></p>
100100

101101
<p>Apache Commons FileUpload before 1.5 does not provide an option to
102102
limit the number of request parts to be processed resulting in the
@@ -139,21 +139,21 @@
139139

140140
<subsection name="Fixed in Apache Commons FileUpload 1.3.2">
141141
<p><b>Low: Denial of Service</b> <a
142-
href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-3092">CVE-2016-3092</a></p>
142+
href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-3092">CVE-2016-3092</a></p>
143143

144144
<p>Specially crafted input can trigger a DoS (slow uploads), if the size of the MIME
145145
boundary is close to the size of the buffer in MultipartStream. This is also fixed
146146
for <a href="https://tomcat.apache.org/security.html">Apache Tomcat</a>.</p>
147147

148148
<p>This was fixed in revision
149-
<a href="http://svn.apache.org/viewvc?view=revision&amp;revision=1743480">1743480</a>.</p>
149+
<a href="https://svn.apache.org/viewvc?view=revision&amp;revision=1743480">1743480</a>.</p>
150150

151151
<p>Affects: 1.0? - 1.3.1</p>
152152
</subsection>
153153

154154
<subsection name="Fixed in Apache Commons FileUpload 1.3.1">
155155
<p><b>Low: Denial of Service</b> <a
156-
href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=2014-0050">CVE-2014-0050</a></p>
156+
href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=2014-0050">CVE-2014-0050</a></p>
157157

158158
<p>MultipartStream.java in Apache Commons FileUpload before 1.3.1, as used in
159159
<a href="https://tomcat.apache.org/security.html">Apache Tomcat</a>,
@@ -162,21 +162,21 @@
162162
exit conditions.</p>
163163

164164
<p>This was fixed in revision
165-
<a href="http://svn.apache.org/viewvc?view=revision&amp;revision=1565143">1565143</a>.</p>
165+
<a href="https://svn.apache.org/viewvc?view=revision&amp;revision=1565143">1565143</a>.</p>
166166

167167
<p>Affects: 1.0? - 1.3</p>
168168
</subsection>
169169

170170
<subsection name="Fixed in Apache Commons FileUpload 1.3">
171171

172172
<p><b>Low: Improved Documentation for Multitenancy</b> <a
173-
href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=2013-0248">CVE-2013-0248</a></p>
173+
href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=2013-0248">CVE-2013-0248</a></p>
174174

175175
<p>Update the Javadoc and documentation to make it clear that setting a repository
176176
is required for a secure configuration if there are local, untrusted users.</p>
177177

178178
<p>This was fixed in revision
179-
<a href="http://svn.apache.org/viewvc?view=revision&amp;revision=1453273">1453273</a>.</p>
179+
<a href="https://svn.apache.org/viewvc?view=revision&amp;revision=1453273">1453273</a>.</p>
180180

181181
<p>Affects: 1.0 - 1.2.2</p>
182182
</subsection>

src/site/xdoc/using.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<p>
5454
A file upload request comprises an ordered list of <em>items</em> that
5555
are encoded according to
56-
<a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>,
56+
<a href="https://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>,
5757
"Form-based File Upload in HTML". FileUpload can parse such a request
5858
and provide your application with a list of the individual uploaded
5959
items. Each such item implements the <code>FileItem</code> interface,

0 commit comments

Comments
 (0)