epugh commented on PR #5022: URL: https://github.com/apache/solr/pull/5022#issuecomment-5994796304
Okay, I did some testing, and with some ai help apparently event hoguh we have v2 apis, the code path is going via the v1 path! See this curl where we ask for xml but get back json? and we expect a 406 not a 200: ``` curl -sv "http://localhost:8983/api/collections/techproducts/config/overlay" -H "Accept: application/xml" * Host localhost:8983 was resolved. * IPv6: ::1 * IPv4: 127.0.0.1 * Trying [::1]:8983... * connect to ::1 port 8983 from ::1 port 55336 failed: Connection refused * Trying 127.0.0.1:8983... * Connected to localhost (127.0.0.1) port 8983 > GET /api/collections/techproducts/config/overlay HTTP/1.1 > Host: localhost:8983 > User-Agent: curl/8.7.1 > Accept: application/xml > * Request completely sent off < HTTP/1.1 200 OK < Vary: Accept-Encoding < Content-Type: application/json;charset=utf-8 < Content-Length: 99 < { "responseHeader":{ "status":0, "QTime":0 }, "overlay":{ "znodeVersion":-1 } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
