This is pretty bad as no file will show in the Files section of the Admin. The 
unit tests for SOLR-15678 only tested the http endpoint, but the Admin UI 
should also have been tested.
A workaround for SolrCloud deployments is to use 
Cloud->Tree->Configs->COLLECTION_NAME->FILE

A draft patch is here https://github.com/apache/solr/pull/418 - will try to get 
this into 8.11.1 and release fairly soon.

Jan

> 16. nov. 2021 kl. 17:09 skrev Jan Høydahl <jan....@cominvent.com>:
> 
> Thanks, I believe it to be a regression caused by 
> https://issues.apache.org/jira/browse/SOLR-15678.
> Please file a JIRA bug report for it for fixing in 8.11.1
> 
> Jan
> 
>> 16. nov. 2021 kl. 15:47 skrev Karl Stoney 
>> <karl.sto...@autotrader.co.uk.INVALID>:
>> 
>> Hi,
>> Just discussing here before I raise a bug.
>> 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
>> 
>> It won’t load, and in the console you see:
>> 
>> {"data":"{\n  \"responseHeader\":{\n    \"status\":400,\n    \"QTime\":2},\n 
>>  \"error\":{\n    \"metadata\":[\n      
>> \"error-class\",\"org.apache.solr.common.SolrException\",\n      
>> \"root-error-class\",\"org.apache.solr.common.SolrException\"],\n    
>> \"msg\":\"Requested content type 'text/xml;charset=utf-8' is not 
>> supported.\",\n    
>> \"code\":400}}\n","status":400,"config":{"method":"GET","transformRequest":[null],"jsonpCallbackParam":"callback","url":"at-uk/admin/file","params":{"wt":"json","_":1637070926091,"file":"solrconfig.xml","contentType":"text/xml;charset=utf-8"},"headers":{"Accept":"application/json,
>>  text/plain, 
>> */*","X-Requested-With":"XMLHttpRequest"},"timeout":10000},"statusText":"","xhrStatus":"complete","resource":{}}
>> 
>> Feels like a bug?
>> 
>> Happy to raise it on Jira if required.
>> 
>> Karl
>> Unless expressly stated otherwise in this email, this e-mail is sent on 
>> behalf of Auto Trader Limited Registered Office: 1 Tony Wilson Place, 
>> Manchester, Lancashire, M15 4FN (Registered in England No. 03909628). Auto 
>> Trader Limited is part of the Auto Trader Group Plc group. This email and 
>> any files transmitted with it are confidential and may be legally 
>> privileged, and intended solely for the use of the individual or entity to 
>> whom they are addressed. If you have received this email in error please 
>> notify the sender. This email message has been swept for the presence of 
>> computer viruses.
> 

Reply via email to