From 072e37b871471c11640afef889bc6c445a0833d8 Mon Sep 17 00:00:00 2001 From: Shivam Pandey Date: Sat, 30 Mar 2019 16:55:29 +0530 Subject: [PATCH] fixed container name update when migration files --- README.md | 2 +- build.gradle | 2 +- changelog.md | 5 +++++ .../com/causecode/fileuploader/FileUploaderService.groovy | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4e94947..a5e3374 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# File-Uploader Plugin (Latest 4.0.2) +# File-Uploader Plugin (Latest 4.0.3) [![Maintainability](https://api.codeclimate.com/v1/badges/13bfee73c29ecd2ea4b2/maintainability)](https://codeclimate.com/github/causecode/grails-file-uploader/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/13bfee73c29ecd2ea4b2/test_coverage)](https://codeclimate.com/github/causecode/grails-file-uploader/test_coverage) diff --git a/build.gradle b/build.gradle index 420f86d..2a10607 100644 --- a/build.gradle +++ b/build.gradle @@ -15,7 +15,7 @@ buildscript { } } -version "4.0.2" +version "4.0.3" group "com.causecode.plugins" apply plugin: "idea" diff --git a/changelog.md b/changelog.md index 4e2b9aa..e9a9207 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # ChangeLog +## Version 4.0.3 [28-03-2019] + +### Fixed +- Update container name when file moved to another CDN. + ## Version 4.0.2 [27-03-2019] ### Changed diff --git a/grails-app/services/com/causecode/fileuploader/FileUploaderService.groovy b/grails-app/services/com/causecode/fileuploader/FileUploaderService.groovy index 164542e..8005a2e 100644 --- a/grails-app/services/com/causecode/fileuploader/FileUploaderService.groovy +++ b/grails-app/services/com/causecode/fileuploader/FileUploaderService.groovy @@ -500,6 +500,7 @@ class FileUploaderService { uFileHistory.status = MoveStatus.SUCCESS uFile.name = fileName uFile.path = savedUrlPath + uFile.containerName = uFile.containerFromConfig uFile.provider = toCDNProvider uFile.expiresOn = new Date(new Date().time + expirationPeriod * 1000) uFile.type = makePublic ? UFileType.CDN_PUBLIC : UFileType.CDN_PRIVATE