On 14/11/2023 10:28, Naber, Peter wrote:
Hi,


I get this WARN Message by using the  
org.apache.hc.client5.http.impl.cache.DefaultCacheInvalidator

14 Nov. 2023 09:17:06.445- DefaultCacheInvalidator [ips2edition-pages-article] 
WARN  org.apache.hc.client5.http.impl.cache.DefaultCacheInvalidator 106 
flushCacheEntriesInvalidatedByRequest - http://acs.alfa.zvdp.net:1155/mic is 
not a valid URI

I have analysed the source code and found this message at line 104

91             final String cacheKey = uri != null ? 
cacheKeyResolver.resolve(uri) : s;
...
104            if (uri != null) {
105               if (LOG.isWarnEnabled()) {
106                    LOG.warn("{} is not a valid URI", s);

Shouldn't this warning be issued earlier if uri == null ?

The same issue at DefaultAsyncCacheInvalidator.java

Regards,

Peter


Hi Peter

The caching module is presently being massively refactored in the 5.4.x branch. The offending test may well have been fixed or removed by now. If not please do feel free to raise a PR with the fix against the 5.4.x branch.

Cheers

Oleg

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org

Reply via email to