Skip to content

Commit b27fb5a

Browse files
authored
SOLR-17956 Deprecate the XLSXResponseWriter in v9.10 (branch_9x) (#3775)
Backported from main branch dead9b6
1 parent 377f66d commit b27fb5a

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

solr/CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ Other Changes
6262

6363
* SOLR-17952: Stream decorator test refactoring - use underscore rather than dot in aliases (Andy Webb)
6464

65+
* SOLR-17956: XLSXResponseWriter has been deprecated and will be removed in a future release. (Jan Høydahl)
66+
6567
================== 9.9.1 ==================
6668
Bug Fixes
6769
---------------------

solr/modules/extraction/src/java/org/apache/solr/handler/extraction/XLSXResponseWriter.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@
4848
import org.apache.solr.schema.StrField;
4949
import org.apache.solr.search.ReturnFields;
5050

51+
/**
52+
* A .XLSX spreadsheet format {@link org.apache.solr.response.QueryResponseWriter}.
53+
*
54+
* @deprecated This class will be removed in a future release.
55+
*/
56+
@Deprecated(since = "9.10", forRemoval = true)
5157
public class XLSXResponseWriter extends RawResponseWriter {
5258

5359
@Override

solr/modules/extraction/src/test/org/apache/solr/handler/extraction/TestXLSXResponseWriter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import org.junit.BeforeClass;
4141
import org.junit.Test;
4242

43+
@SuppressWarnings("removal")
4344
public class TestXLSXResponseWriter extends SolrTestCaseJ4 {
4445

4546
private static XLSXResponseWriter writerXlsx;

solr/solr-ref-guide/modules/query-guide/pages/response-writers.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,3 +480,8 @@ cp modules/extraction/lib/*.jar server/solr-webapp/webapp/WEB-INF/lib/
480480
----
481481

482482
Once the libraries are in place, you can add `wt=xlsx` to your request, and results will be returned as an XLSX sheet.
483+
484+
[IMPORTANT]
485+
====
486+
The `XLSXResponseWriter` is deprecated and will be removed in a future release.
487+
====

solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-9.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ SolrJ users not using SolrClients that use Jetty HttpClient can safely exclude t
8686

8787
Java has removed support for the Security Manager starting with Java 24; therefore, Solr will disable this feature when run with Java 24 or later. Solr previously used the Security Manager to provide an additional layer of protection against unintended file system access, network access, and process execution. Users upgrading to Java 24 or later should review their security practices and consider alternative measures, such as running Solr in containers or implementing additional operating system-level controls.
8888

89+
=== Deprecations
90+
91+
The `XLSXResponseWriter` is now deprecated.
92+
8993
== Solr 9.9
9094

9195
=== SolrJ

0 commit comments

Comments
 (0)