From ac7bdbe3a749e89c2e179830a982d70db06d98d9 Mon Sep 17 00:00:00 2001 From: Chris Nauroth Date: Fri, 7 Mar 2025 18:31:55 +0000 Subject: [PATCH] HDFS-17754: Add uriparser2 to notices --- NOTICE-binary | 9 ++++++++- .../uriparser2/uriparser/UriQuery.c | 1 + licenses-binary/LICENSE-uriparser2.txt | 19 +++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 licenses-binary/LICENSE-uriparser2.txt diff --git a/NOTICE-binary b/NOTICE-binary index 7389a31fd5a11..407f6c25d997a 100644 --- a/NOTICE-binary +++ b/NOTICE-binary @@ -809,7 +809,7 @@ This product includes software developed by Apache PureJavaCrc32C from apache-hadoop-common http://hadoop.apache.org/ (Apache 2.0 license) -This library containd statically linked libstdc++. This inclusion is allowed by +This library contains statically linked libstdc++. This inclusion is allowed by "GCC RUntime Library Exception" http://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html @@ -825,3 +825,10 @@ Copyright 2009-2018 The Apache Software Foundation This product includes software developed at The Apache Software Foundation (http://www.apache.org/). + +This product includes code from uriparser2, a C and C++ library for URI parsing. + + * LICENSE: + * license/LICENSE-uriparser2.txt (MIT License) + * HOMEPAGE: + * https://github.com/bnoordhuis/uriparser2 diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/third_party/uriparser2/uriparser2/uriparser/UriQuery.c b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/third_party/uriparser2/uriparser2/uriparser/UriQuery.c index 7cb031dda5c16..35793d20ef13b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/third_party/uriparser2/uriparser2/uriparser/UriQuery.c +++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/third_party/uriparser2/uriparser2/uriparser/UriQuery.c @@ -219,6 +219,7 @@ int URI_FUNC(ComposeQueryEngine)(URI_CHAR * dest, /* Copy key */ if (firstItem == URI_TRUE) { + ampersandLen = 1; firstItem = URI_FALSE; } else { write[0] = _UT('&'); diff --git a/licenses-binary/LICENSE-uriparser2.txt b/licenses-binary/LICENSE-uriparser2.txt new file mode 100644 index 0000000000000..c662ad5d20e44 --- /dev/null +++ b/licenses-binary/LICENSE-uriparser2.txt @@ -0,0 +1,19 @@ +Copyright (c) 2010 Ben Noordhuis + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE.