From ec4614784cb5bb0b8b2149dfec094cd53df93c37 Mon Sep 17 00:00:00 2001 From: zacYL Date: Tue, 4 Jul 2023 22:17:08 +0800 Subject: [PATCH] =?UTF-8?q?bug:=20feign=E8=AF=B7=E6=B1=82=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E8=BF=94=E5=9B=9E=E5=85=88=E8=BD=AC=E6=8D=A2=E6=88=90?= =?UTF-8?q?String=E5=86=8D=E8=BF=9B=E8=A1=8C=E7=B1=BB=E5=9E=8B=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=20#892?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/com/tencent/bkrepo/oci/pojo/node/NodeProperty.kt | 2 +- .../com/tencent/bkrepo/oci/service/impl/OciBlobServiceImpl.kt | 2 +- .../tencent/bkrepo/oci/service/impl/OciOperationServiceImpl.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/oci/api-oci/src/main/kotlin/com/tencent/bkrepo/oci/pojo/node/NodeProperty.kt b/src/backend/oci/api-oci/src/main/kotlin/com/tencent/bkrepo/oci/pojo/node/NodeProperty.kt index b9db729baf..1ab80a577d 100644 --- a/src/backend/oci/api-oci/src/main/kotlin/com/tencent/bkrepo/oci/pojo/node/NodeProperty.kt +++ b/src/backend/oci/api-oci/src/main/kotlin/com/tencent/bkrepo/oci/pojo/node/NodeProperty.kt @@ -30,5 +30,5 @@ package com.tencent.bkrepo.oci.pojo.node data class NodeProperty( var fullPath: String? = null, var md5: String? = null, - var size: Int? = null, + var size: Long? = null, ) diff --git a/src/backend/oci/biz-oci/src/main/kotlin/com/tencent/bkrepo/oci/service/impl/OciBlobServiceImpl.kt b/src/backend/oci/biz-oci/src/main/kotlin/com/tencent/bkrepo/oci/service/impl/OciBlobServiceImpl.kt index 10d5f5d0f6..07d76fa503 100644 --- a/src/backend/oci/biz-oci/src/main/kotlin/com/tencent/bkrepo/oci/service/impl/OciBlobServiceImpl.kt +++ b/src/backend/oci/biz-oci/src/main/kotlin/com/tencent/bkrepo/oci/service/impl/OciBlobServiceImpl.kt @@ -147,7 +147,7 @@ class OciBlobServiceImpl( val nodeCreateRequest = ObjectBuildUtils.buildNodeCreateRequest( projectId = projectId, repoName = repoName, - size = nodeProperty.size!!.toLong(), + size = nodeProperty.size!!, sha256 = ociDigest.hex, fullPath = OciLocationUtils.buildDigestBlobsPath(packageName, ociDigest), md5 = nodeProperty.md5!! diff --git a/src/backend/oci/biz-oci/src/main/kotlin/com/tencent/bkrepo/oci/service/impl/OciOperationServiceImpl.kt b/src/backend/oci/biz-oci/src/main/kotlin/com/tencent/bkrepo/oci/service/impl/OciOperationServiceImpl.kt index 407a223a62..b810b5a7a5 100644 --- a/src/backend/oci/biz-oci/src/main/kotlin/com/tencent/bkrepo/oci/service/impl/OciOperationServiceImpl.kt +++ b/src/backend/oci/biz-oci/src/main/kotlin/com/tencent/bkrepo/oci/service/impl/OciOperationServiceImpl.kt @@ -940,7 +940,7 @@ class OciOperationServiceImpl( return NodeProperty( fullPath = result.records[0][NODE_FULL_PATH] as String, md5 = result.records[0][MD5] as String?, - size = result.records[0][OCI_NODE_SIZE] as Int? + size = result.records[0][OCI_NODE_SIZE].toString().toLong() ) }