[
https://issues.apache.org/jira/browse/TS-581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leif Hedstrom updated TS-581:
-----------------------------
Assignee: Jon Sime
> API: Doc changes for no NULL terminated strings, and one API rename
> -------------------------------------------------------------------
>
> Key: TS-581
> URL: https://issues.apache.org/jira/browse/TS-581
> Project: Traffic Server
> Issue Type: Bug
> Components: Documentation, TS API
> Reporter: Leif Hedstrom
> Assignee: Jon Sime
> Fix For: Docs
>
>
> We have eliminated the code that allowed a few APIs to assume that strings
> were NULL terminated, when we really don't make any such promises. Below is
> the list of APIs that are affected, we should make sure all documentation
> makes a point that the strings are not NULL terminated, and that the length
> pointer argument must not be NULL. In particular these two APIs have the
> wrong (old) documentation:
> INKHttpHdrMethodGet()
> INKMimeHdrFieldValueStringGet()
> -- Leif
> const char * TSUrlSchemeGet(TSMBuffer bufp, TSMLoc obj, int *length);
> const char *TSUrlUserGet(TSMBuffer bufp, TSMLoc obj, int *length);
> const char *TSUrlPasswordGet(TSMBuffer bufp, TSMLoc obj, int *length);
> const char *TSUrlHostGet(TSMBuffer bufp, TSMLoc obj, int *length);
> const char *TSUrlPathGet(TSMBuffer bufp, TSMLoc obj, int *length);
> const char *TSUrlHttpParamsGet(TSMBuffer bufp, TSMLoc obj, int *length);
> const char *TSUrlHttpQueryGet(TSMBuffer bufp, TSMLoc obj, int *length);
> const char *TSUrlHttpFragmentGet(TSMBuffer bufp, TSMLoc obj, int *length);
> const char *TSMimeHdrFieldNameGet(TSMBuffer bufp, TSMLoc hdr, TSMLoc field,
> int *length);
> const char *TSHttpHdrMethodGet(TSMBuffer bufp, TSMLoc obj, int *length);
> const char *TSHttpHdrReasonGet(TSMBuffer bufp, TSMLoc obj, int *length);
> TSReturnCode TSMimeHdrFieldValueStringGet(TSMBuffer bufp, TSMLoc hdr, TSMLoc
> field, int idx, const char **value_ptr, int *value_len_ptr);
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)