SHA256
1
0
forked from pool/aws-sdk-java
Fridrich Strba 2024-03-09 21:05:07 +00:00 committed by Git OBS Bridge
parent 203eabe64f
commit e749e1c7fa
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,31 @@
--- aws-sdk-java-9883b981ab5103cc6944fbf8f3b973994777350f.orig/aws-java-sdk-core/src/main/java/com/amazonaws/transform/JsonErrorUnmarshaller.java 2024-03-09 21:54:01.485016575 +0100
+++ aws-sdk-java-9883b981ab5103cc6944fbf8f3b973994777350f/aws-java-sdk-core/src/main/java/com/amazonaws/transform/JsonErrorUnmarshaller.java 2024-03-09 21:58:25.501906164 +0100
@@ -20,7 +20,7 @@
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
-import com.fasterxml.jackson.databind.PropertyNamingStrategy.PascalCaseStrategy;
+import com.fasterxml.jackson.databind.PropertyNamingStrategy.UpperCamelCaseStrategy;
/**
* Unmarshaller for JSON error responses from AWS services.
@@ -34,7 +34,7 @@
private static final ObjectMapper MAPPER = new ObjectMapper().configure(
DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false).setPropertyNamingStrategy(
- new PascalCaseStrategy());
+ new UpperCamelCaseStrategy());
private final String handledErrorCode;
--- aws-sdk-java-9883b981ab5103cc6944fbf8f3b973994777350f.orig/aws-java-sdk-core/src/main/java/com/amazonaws/util/EC2MetadataUtils.java 2024-03-09 21:54:01.485016575 +0100
+++ aws-sdk-java-9883b981ab5103cc6944fbf8f3b973994777350f/aws-java-sdk-core/src/main/java/com/amazonaws/util/EC2MetadataUtils.java 2024-03-09 21:54:49.988390864 +0100
@@ -69,7 +69,7 @@
DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
mapper
- .setPropertyNamingStrategy(PropertyNamingStrategy.PASCAL_CASE_TO_CAMEL_CASE);
+ .setPropertyNamingStrategy(PropertyNamingStrategy.UPPER_CAMEL_CASE);
}
private static final Log log = LogFactory.getLog(EC2MetadataUtils.class);

View File

@ -1,7 +1,7 @@
#
# spec file for package aws-sdk-java
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -26,6 +26,7 @@ Group: Development/Libraries/Java
URL: https://aws.amazon.com/sdk-for-java/
Source0: https://github.com/aws/aws-sdk-java/archive/%{githash}/%{name}-%{githash}.tar.gz
Patch0: aws-sdk-java-ambiguous-Record.patch
Patch1: aws-sdk-java-jackson-databind.patch
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8