You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: core/control-plane/control-plane-aggregate-services/src/test/java/org/eclipse/edc/connector/controlplane/services/contractnegotiation/ContractNegotiationProtocolServiceImplTest.java
+1
Original file line number
Diff line number
Diff line change
@@ -488,6 +488,7 @@ public Stream<? extends Arguments> provideArguments(ExtensionContext extensionCo
Copy file name to clipboardexpand all lines: core/control-plane/control-plane-contract/src/main/java/org/eclipse/edc/connector/controlplane/contract/negotiation/ConsumerContractNegotiationManagerImpl.java
Copy file name to clipboardexpand all lines: core/control-plane/control-plane-contract/src/test/java/org/eclipse/edc/connector/controlplane/contract/negotiation/ConsumerContractNegotiationManagerImplTest.java
Copy file name to clipboardexpand all lines: core/control-plane/control-plane-transform/src/main/java/org/eclipse/edc/connector/controlplane/transform/odrl/to/JsonObjectToPolicyTransformer.java
+20-2
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,22 @@ public JsonObjectToPolicyTransformer(ParticipantIdMapper participantIdMapper) {
85
85
.error("Invalid type for ODRL policy, should be one of [%s, %s, %s]".formatted(ODRL_POLICY_TYPE_SET, ODRL_POLICY_TYPE_OFFER, ODRL_POLICY_TYPE_AGREEMENT))
86
86
.report();
87
87
returnnull;
88
+
} elseif (policyType == PolicyType.CONTRACT) {
89
+
if (object.get(ODRL_ASSIGNEE_ATTRIBUTE) == null) {
90
+
context.problem()
91
+
.missingProperty()
92
+
.property(ODRL_ASSIGNEE_ATTRIBUTE)
93
+
.report();
94
+
returnnull;
95
+
}
96
+
97
+
if (object.get(ODRL_ASSIGNER_ATTRIBUTE) == null) {
98
+
context.problem()
99
+
.missingProperty()
100
+
.property(ODRL_ASSIGNER_ATTRIBUTE)
101
+
.report();
102
+
returnnull;
103
+
}
88
104
}
89
105
90
106
builder.type(policyType);
@@ -94,8 +110,10 @@ public JsonObjectToPolicyTransformer(ParticipantIdMapper participantIdMapper) {
94
110
caseODRL_PROHIBITION_ATTRIBUTE -> v -> builder.prohibitions(transformArray(v, Prohibition.class, context));
95
111
caseODRL_OBLIGATION_ATTRIBUTE -> v -> builder.duties(transformArray(v, Duty.class, context));
96
112
caseODRL_TARGET_ATTRIBUTE -> v -> builder.target(transformString(v, context));
97
-
caseODRL_ASSIGNER_ATTRIBUTE -> v -> builder.assigner(participantIdMapper.fromIri(transformString(v, context)));
98
-
caseODRL_ASSIGNEE_ATTRIBUTE -> v -> builder.assignee(participantIdMapper.fromIri(transformString(v, context)));
113
+
caseODRL_ASSIGNER_ATTRIBUTE ->
114
+
v -> builder.assigner(participantIdMapper.fromIri(transformString(v, context)));
115
+
caseODRL_ASSIGNEE_ATTRIBUTE ->
116
+
v -> builder.assignee(participantIdMapper.fromIri(transformString(v, context)));
99
117
caseODRL_PROFILE_ATTRIBUTE -> v -> builder.profiles(transformProfile(v));
100
118
default -> v -> builder.extensibleProperty(key, transformGenericProperty(v, context));
Copy file name to clipboardexpand all lines: core/control-plane/control-plane-transform/src/test/java/org/eclipse/edc/connector/controlplane/transform/odrl/to/JsonObjectToPolicyTransformerTest.java
Copy file name to clipboardexpand all lines: data-protocols/dsp/dsp-http-core/src/main/java/org/eclipse/edc/protocol/dsp/http/dispatcher/DspHttpRemoteMessageDispatcherImpl.java
Copy file name to clipboardexpand all lines: data-protocols/dsp/dsp-http-core/src/main/java/org/eclipse/edc/protocol/dsp/http/message/DspRequestHandlerImpl.java
Copy file name to clipboardexpand all lines: data-protocols/dsp/dsp-negotiation/dsp-negotiation-transform/src/test/java/org/eclipse/edc/protocol/dsp/negotiation/transform/from/JsonObjectFromContractNegotiationEventMessageTransformerTest.java
Copy file name to clipboardexpand all lines: spi/control-plane/contract-spi/src/main/java/org/eclipse/edc/connector/controlplane/contract/spi/types/negotiation/ContractNegotiation.java
0 commit comments