[
https://issues.apache.org/jira/browse/SOLR-14699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17542999#comment-17542999
]
Nazerke Seidan commented on SOLR-14699:
---------------------------------------
Thank you for your feedback! I have created a PR.
Example output:
{code:java}
{"webapp":"/solr","path":"/select","params":"q=*:*&indent=true&q.op=OR&_=1653661836091","hits":0,"status":0,"QTime":38}
{code}
{code:java}
{"prefix":"admin","webapp":null,"path":"/admin/info/system","params":"wt=json&_=1653661797425","status":0,"QTime":4}
{code}
Btw, even in the Solr 9 main branch, sometimes webapp is null.
> Solr request logs should escape names, values
> (SolrQueryResponse.getToLogAsString)
> ----------------------------------------------------------------------------------
>
> Key: SOLR-14699
> URL: https://issues.apache.org/jira/browse/SOLR-14699
> Project: Solr
> Issue Type: Improvement
> Components: logging
> Reporter: David Smiley
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {{SolrQueryResponse.getToLogAsString}} encodes the NamedList into a String
> with simple space-separated pairs with name=value. However, it does no
> escaping/encoding, and as-such a value might itself contain spaces and
> equals. This is a problem if these logs are being parsed, and we'd like to
> ensure we do so correctly. Note that SolrLogPostTool (aka "postlogs") parses
> these logs.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]