Skip to content

Commit

Permalink
fix(gate): write output without legal name
Browse files Browse the repository at this point in the history
- Gate is now able to write business partner having no legal name to the output stage (BPNL is enough)
  • Loading branch information
nicoprow committed Nov 21, 2024
1 parent 28e8a3f commit c0d9e97
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ For changes to the BPDM Helm charts please consult the [changelog](charts/bpdm/C
- BPDM Cleaning Service Dummy: Removed assignment of uncategorized identifier while performing cleaning task process. ([#1098](https://github.com/eclipse-tractusx/bpdm/pull/1098))
- BPDM Pool: Fix error querying legal forms when non-gleif legacy legal forms are present in the database ([#1107](https://github.com/eclipse-tractusx/bpdm/issues/1107))
- BPDM: Fix denial of service attack vulnerability CVE-2024-47535 ([#1112](https://github.com/eclipse-tractusx/bpdm/issues/1112))
- BPDM Gate: Fix error on writing golden record task result missing legal name into output stage. Result is now correctly written. ([#1115](https://github.com/eclipse-tractusx/bpdm/issues/1115))

## [6.1.0] - [2024-07-15]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ data class OutputUpsertData(
val roles: Collection<BusinessPartnerRole>,
val isOwnCompanyData: Boolean,
val legalEntityBpn: String,
val legalName: String,
val legalName: String?,
val shortName: String?,
val legalForm: String?,
val siteBpn: String?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class OrchestratorMappings(
identifiers = uncategorized.identifiers.mapNotNull { toIdentifier(it, BusinessPartnerType.GENERIC) }
.plus(legalEntity.identifiers.mapNotNull { toIdentifier(it, BusinessPartnerType.LEGAL_ENTITY) })
.plus(postalAddress.identifiers.mapNotNull { toIdentifier(it, BusinessPartnerType.ADDRESS) }),
legalName = legalEntity.legalName ?: throw BpdmNullMappingException(BusinessPartner::class, OutputUpsertData::class, LegalEntity::legalName),
legalName = legalEntity.legalName,
siteName = site?.siteName,
addressName = postalAddress.addressName,
legalForm = legalEntity.legalForm,
Expand Down
12 changes: 6 additions & 6 deletions charts/bpdm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ apiVersion: v2
name: bpdm
type: application
description: A Helm chart for Kubernetes that deploys the BPDM applications
version: 5.2.0-rc4
appVersion: "6.2.0-rc4"
version: 5.2.0-SNAPSHOT
appVersion: "6.2.0-SNAPSHOT"
home: https://github.com/eclipse-tractusx/bpdm
sources:
- https://github.com/eclipse-tractusx/bpdm
Expand All @@ -33,19 +33,19 @@ maintainers:

dependencies:
- name: bpdm-gate
version: 6.2.0-rc4
version: 6.2.0-SNAPSHOT
alias: bpdm-gate
condition: bpdm-gate.enabled
- name: bpdm-pool
version: 7.2.0-rc4
version: 7.2.0-SNAPSHOT
alias: bpdm-pool
condition: bpdm-pool.enabled
- name: bpdm-cleaning-service-dummy
version: 3.2.0-rc4
version: 3.2.0-SNAPSHOT
alias: bpdm-cleaning-service-dummy
condition: bpdm-cleaning-service-dummy.enabled
- name: bpdm-orchestrator
version: 3.2.0-rc4
version: 3.2.0-SNAPSHOT
alias: bpdm-orchestrator
condition: bpdm-orchestrator.enabled
- name: bpdm-common
Expand Down
4 changes: 2 additions & 2 deletions charts/bpdm/charts/bpdm-cleaning-service-dummy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
apiVersion: v2
type: application
name: bpdm-cleaning-service-dummy
appVersion: "6.2.0-rc4"
version: 3.2.0-rc4
appVersion: "6.2.0-SNAPSHOT"
version: 3.2.0-SNAPSHOT
description: A Helm chart for deploying the BPDM cleaning service
home: https://eclipse-tractusx.github.io/docs/kits/Business%20Partner%20Kit/Adoption%20View
sources:
Expand Down
4 changes: 2 additions & 2 deletions charts/bpdm/charts/bpdm-gate/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
apiVersion: v2
type: application
name: bpdm-gate
appVersion: "6.2.0-rc4"
version: 6.2.0-rc4
appVersion: "6.2.0-SNAPSHOT"
version: 6.2.0-SNAPSHOT
description: A Helm chart for deploying the BPDM gate service
home: https://eclipse-tractusx.github.io/docs/kits/Business%20Partner%20Kit/Adoption%20View
sources:
Expand Down
4 changes: 2 additions & 2 deletions charts/bpdm/charts/bpdm-orchestrator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
apiVersion: v2
type: application
name: bpdm-orchestrator
appVersion: "6.2.0-rc4"
version: 3.2.0-rc4
appVersion: "6.2.0-SNAPSHOT"
version: 3.2.0-SNAPSHOT
description: A Helm chart for deploying the BPDM Orchestrator service
home: https://eclipse-tractusx.github.io/docs/kits/Business%20Partner%20Kit/Adoption%20View
sources:
Expand Down
4 changes: 2 additions & 2 deletions charts/bpdm/charts/bpdm-pool/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
apiVersion: v2
type: application
name: bpdm-pool
appVersion: "6.2.0-rc4"
version: 7.2.0-rc4
appVersion: "6.2.0-SNAPSHOT"
version: 7.2.0-SNAPSHOT
description: A Helm chart for deploying the BPDM pool service
home: https://eclipse-tractusx.github.io/docs/kits/Business%20Partner%20Kit/Adoption%20View
sources:
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</modules>

<properties>
<revision>6.2.0-rc4</revision>
<revision>6.2.0-SNAPSHOT</revision>
<java.version>21</java.version>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
Expand Down

0 comments on commit c0d9e97

Please sign in to comment.