[ 
https://issues.apache.org/jira/browse/SOLR-15804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17445855#comment-17445855
 ] 

ASF subversion and git services commented on SOLR-15804:
--------------------------------------------------------

Commit 46d2ad2ca9f200628d905aeab2378a1399ae25bb in solr's branch 
refs/heads/main from Jan Høydahl
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=46d2ad2 ]

SOLR-15804 Allow content-types with ;charset in ShowFileRequestHandler (#418)

* Allow content-types with charset in ShowFileRequestHandler
* Request .html as text/xml, .css as text/plain and .js as 
application/javascript
* Highlight css as txt (crashed browser)
* Set extension to 'xml' for managed-schema instead of 'text/xml'

> Unable to view XML files via the Solr Collection GUI
> ----------------------------------------------------
>
>                 Key: SOLR-15804
>                 URL: https://issues.apache.org/jira/browse/SOLR-15804
>             Project: Solr
>          Issue Type: Bug
>          Components: Admin UI
>    Affects Versions: 8.11
>            Reporter: Karl Stoney
>            Assignee: Jan Høydahl
>            Priority: Minor
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Hi, 
> Updated our cluster to 8.11.0 in testing this morning and noticed that the 
> “file” explorer is broken when viewing a file.
>  
> To recreate:
>  
> * Select a collection
> * Select files
> * Click on an XML file
> {code:java}
> 13:55:58.753 [qtp33233312-2347] ERROR 
> org.apache.solr.handler.RequestHandlerBase - 
> org.apache.solr.common.SolrException: Requested content type 
> 'text/xml;charset=utf-8' is not supported.
> org.apache.solr.common.SolrException: Requested content type 
> 'text/xml;charset=utf-8' is not supported.
>       at 
> org.apache.solr.handler.admin.ShowFileRequestHandler.getSafeContentType(ShowFileRequestHandler.java:269)
>  ~[solr-core-8.11.0.jar:8.11.0 e912fdd5b632267a9088507a2a6bcbc75108f381 - 
> jpountz - 2021-11-09 14:08:51]
>       at 
> org.apache.solr.handler.admin.ShowFileRequestHandler.showFromZooKeeper(ShowFileRequestHandler.java:186)
>  ~[solr-core-8.11.0.jar:8.11.0 e912fdd5b632267a9088507a2a6bcbc75108f381 - 
> jpountz - 2021-11-09 14:08:51]
>       at 
> org.apache.solr.handler.admin.ShowFileRequestHandler.handleRequestBody(ShowFileRequestHandler.java:137)
>  ~[solr-core-8.11.0.jar:8.11.0 e912fdd5b632267a9088507a2a6bcbc75108f381 - 
> jpountz - 2021-11-09 14:08:51]
>       at 
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:216)
>  ~[solr-core-8.11.0.jar:8.11.0 e912fdd5b632267a9088507a2a6bcbc75108f381 - 
> jpountz - 2021-11-09 14:08:51]
>       at org.apache.solr.core.SolrCore.execute(SolrCore.java:2637) 
> ~[solr-core-8.11.0.jar:8.11.0 e912fdd5b632267a9088507a2a6bcbc75108f381 - 
> jpountz - 2021-11-09 14:08:51]
>       at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:794) 
> ~[solr-core-8.11.0.jar:8.11.0 e912fdd5b632267a9088507a2a6bcbc75108f381 - 
> jpountz - 2021-11-09 14:08:51]
>       at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:567) 
> ~[solr-core-8.11.0.jar:8.11.0 e912fdd5b632267a9088507a2a6bcbc75108f381 - 
> jpountz - 2021-11-09 14:08:51]
>       at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:427)
>  ~[solr-core-8.11.0.jar:8.11.0 e912fdd5b632267a9088507a2a6bcbc75108f381 - 
> jpountz - 2021-11-09 14:08:51]
>       at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:357)
>  ~[solr-core-8.11.0.jar:8.11.0 e912fdd5b632267a9088507a2a6bcbc75108f381 - 
> jpountz - 2021-11-09 14:08:51]
>       at 
> org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:201) 
> ~[jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
>  ~[jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548) 
> ~[jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) 
> ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600) 
> ~[jetty-security-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
>  ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
>  ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
>  ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
>  ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
>  ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
>  ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) 
> ~[jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
>  ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
>  ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
>  ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) 
> ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)
>  ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:177)
>  ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
>  ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
>  ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322)
>  ~[jetty-rewrite-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:763)
>  ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
>  ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at org.eclipse.jetty.server.Server.handle(Server.java:516) 
> ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:400) 
> ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:645) 
> [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:392) 
> [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at org.eclipse.jetty.server.HttpChannel.run(HttpChannel.java:352) 
> [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
>  [jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
>  [jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
>  [jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
>  [jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)
>  [jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
>  [jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at 
> org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
>  [jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
>       at java.lang.Thread.run(Thread.java:833) [?:?]
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to