Skip to content

Commit

Permalink
Merge pull request #1171 from jfrog/GH-1169-fix-int-parsing-error-for…
Browse files Browse the repository at this point in the history
…-artifact-resource

Fix incorrect bit size for int parsing
  • Loading branch information
alexhung authored Jan 13, 2025
2 parents b4c1b27 + 32b1d94 commit a32ce6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 12.8.1 (January 13, 2025). Tested on Artifactory 7.98.13 with Terraform 1.10.4 and OpenTofu 1.9.0

BUG FIXES:

* resource/artifactory_artifact: Fix incorrect integer parsing for `size` attribute. Issue: [#1169](https://github.com/jfrog/terraform-provider-artifactory/issues/1169) PR: [#1171](https://github.com/jfrog/terraform-provider-artifactory/pull/1171)

## 12.8.0 (January 8, 2025). Tested on Artifactory 7.98.13 with Terraform 1.10.3 and OpenTofu 1.8.8

FEATURES:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (r *ArtifactResourceModel) fromAPIModel(apiModel ArtifactAPIModel) diag.Dia
r.DownloadURI = types.StringValue(apiModel.DownloadURI)
r.MimeType = types.StringValue(apiModel.MimeType)

size, err := strconv.ParseInt(apiModel.Size, 10, 16)
size, err := strconv.ParseInt(apiModel.Size, 10, 64)
if err != nil {
return diag.Diagnostics{
diag.NewErrorDiagnostic(
Expand Down

0 comments on commit a32ce6a

Please sign in to comment.