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

ASF subversion and git services commented on HTTPCORE-745:
----------------------------------------------------------

Commit 9f8cdb17c85defb267fc814d6094bfda3c8ff1a7 in httpcomponents-core's branch 
refs/heads/master from Gary Gregory
[ https://gitbox.apache.org/repos/asf?p=httpcomponents-core.git;h=9f8cdb17c ]

[HTTPCORE-745] ContentType.create(String, NameValuePair...) should make (#404)

a defensive copy of its input array

Co-authored-by: Gary Gregory <[email protected]>

> ContentType.create(String, NameValuePair...) should make a defensive copy of 
> its input array
> --------------------------------------------------------------------------------------------
>
>                 Key: HTTPCORE-745
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-745
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore
>    Affects Versions: 5.2.1
>         Environment: Apache Maven 3.9.1 
> (2e178502fcdbffc201671fb2537d0cb4b4cc58f8)
> Maven home: C:\java\apache-maven-3.9.1
> Java version: 1.8.0_372, vendor: Temurin, runtime: C:\Program Files\Eclipse 
> Adoptium\jdk-8.0.372.7-hotspot\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
>            Reporter: Gary D. Gregory
>            Priority: Major
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The factory method {{ContentType.create(String, NameValuePair...)}} should 
> make a defensive copy of its input array.
> Other code paths already do so, intentionally or by side-effect: 
> {{ContentType.withParameters(NameValuePair...)}}
> PR: https://github.com/apache/httpcomponents-core/pull/404



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to