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

James Peach commented on TS-1250:
---------------------------------

The truncation is because in ShowCache::ShowCache(), we use strlcpy instead of 
strncpy. strlcpy is supposed to get the size of the destination buffer but we 
use it to deal with the not null-terminated source string. Hence, strlcpy 
thinks the buffer has a size of strlen(url) and the last byte is chopped off by 
the null termination.
                
> Cache inspector does not seem to work properly
> ----------------------------------------------
>
>                 Key: TS-1250
>                 URL: https://issues.apache.org/jira/browse/TS-1250
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP
>            Reporter: Leif Hedstrom
>            Priority: Critical
>             Fix For: 3.1.4
>
>
> It seems the cache inspector is not functioning properly. Regex lookups 
> mostly works, but individual URLs does not. When it displays the error 
> results page from a lookup, it also tends to truncate the URL by one 
> character.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to