From b69db0f89e8655f083860484e4f473604e784cfc Mon Sep 17 00:00:00 2001 From: ayeshLK Date: Tue, 13 Dec 2022 11:07:39 +0530 Subject: [PATCH 1/4] [Automated] Update the native jar versions --- ballerina/Ballerina.toml | 6 +++--- ballerina/Dependencies.toml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ballerina/Ballerina.toml b/ballerina/Ballerina.toml index 891873f6..bbefddbb 100644 --- a/ballerina/Ballerina.toml +++ b/ballerina/Ballerina.toml @@ -1,7 +1,7 @@ [package] org = "ballerina" name = "mime" -version = "2.5.0" +version = "2.5.1" authors = ["Ballerina"] keywords = ["mime", "multipart", "entity"] repository = "https://github.com/ballerina-platform/module-ballerina-mime" @@ -12,8 +12,8 @@ distribution = "2201.3.0" [[platform.java11.dependency]] groupId = "io.ballerina.stdlib" artifactId = "mime-native" -version = "2.5.0" -path = "../native/build/libs/mime-native-2.5.0.jar" +version = "2.5.1" +path = "../native/build/libs/mime-native-2.5.1-SNAPSHOT.jar" [[platform.java11.dependency]] diff --git a/ballerina/Dependencies.toml b/ballerina/Dependencies.toml index 8b4592f7..fc783f72 100644 --- a/ballerina/Dependencies.toml +++ b/ballerina/Dependencies.toml @@ -85,7 +85,7 @@ modules = [ [[package]] org = "ballerina" name = "mime" -version = "2.5.0" +version = "2.5.1" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, @@ -101,7 +101,7 @@ modules = [ [[package]] org = "ballerina" name = "observe" -version = "1.0.5" +version = "1.0.6" scope = "testOnly" dependencies = [ {org = "ballerina", name = "jballerina.java"} From e52aa88761526a469518a083af27f04555ffa6c1 Mon Sep 17 00:00:00 2001 From: ayeshLK Date: Tue, 13 Dec 2022 11:49:15 +0530 Subject: [PATCH 2/4] Fix string-utils usage in mime-module --- .../stdlib/mime/nativeimpl/MimeDataSourceBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/src/main/java/io/ballerina/stdlib/mime/nativeimpl/MimeDataSourceBuilder.java b/native/src/main/java/io/ballerina/stdlib/mime/nativeimpl/MimeDataSourceBuilder.java index 353913c6..e36b8791 100644 --- a/native/src/main/java/io/ballerina/stdlib/mime/nativeimpl/MimeDataSourceBuilder.java +++ b/native/src/main/java/io/ballerina/stdlib/mime/nativeimpl/MimeDataSourceBuilder.java @@ -75,10 +75,10 @@ protected static Object getAlreadyBuiltByteArray(BObject entityObj, Object messa String charsetValue = MimeUtil.getContentTypeParamValue(contentTypeValue, CHARSET); if (isNotNullAndEmpty(charsetValue)) { return ValueCreator.createArrayValue( - StringUtils.getJsonString(messageDataSource).getBytes(charsetValue)); + StringUtils.getStringValue(messageDataSource, null).getBytes(charsetValue)); } return ValueCreator.createArrayValue( - StringUtils.getJsonString(messageDataSource).getBytes(Charset.defaultCharset())); + StringUtils.getStringValue(messageDataSource, null).getBytes(Charset.defaultCharset())); } return ValueCreator.createArrayValue(new byte[0]); } From 0541e9d8755f1d8bfaafe8615018bc84a88ed80e Mon Sep 17 00:00:00 2001 From: ayeshLK Date: Tue, 13 Dec 2022 14:12:11 +0530 Subject: [PATCH 3/4] Update change log --- changelog.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/changelog.md b/changelog.md index 9a561912..450f892e 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,11 @@ This file contains all the notable changes done to the Ballerina MIME package th The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] +- [Binary payload retrieved from the `http:Request` has different content-length than the original payload](https://github.com/ballerina-platform/ballerina-standard-library/issues/3662) + +## Fixed + ## [2.5.0] - 2022-11-29 ### Changed From 4047c9497edf54c385fea1af1022e8c317e871a4 Mon Sep 17 00:00:00 2001 From: ayeshLK Date: Tue, 13 Dec 2022 14:24:15 +0530 Subject: [PATCH 4/4] Fix change log --- changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 450f892e..870592c4 100644 --- a/changelog.md +++ b/changelog.md @@ -5,9 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] -- [Binary payload retrieved from the `http:Request` has different content-length than the original payload](https://github.com/ballerina-platform/ballerina-standard-library/issues/3662) ## Fixed +- [Binary payload retrieved from the `http:Request` has different content-length than the original payload](https://github.com/ballerina-platform/ballerina-standard-library/issues/3662) ## [2.5.0] - 2022-11-29