Skip to content

Commit

Permalink
fix: Improvement on Raw cloud connection (#5490)
Browse files Browse the repository at this point in the history
Fixed factory hiding
Fixed Error message if missing body in payload

Signed-off-by: MMaiero <[email protected]>
  • Loading branch information
MMaiero authored Oct 31, 2024
1 parent a626685 commit dac4507
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@
policy="dynamic"
unbind="unsetNetworkStatusService"/>
<property name="kura.ui.service.hide" type="Boolean" value="true"/>
<property name="kura.ui.factory.hide" type="String" value="true"/>
<property name="kura.ui.factory.hide" type="Boolean" value="true"/>
</scr:component>
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@
bind="setDataService"
unbind="unsetDataService"/>
<property name="kura.ui.service.hide" type="Boolean" value="true"/>
<property name="kura.ui.factory.hide" type="Boolean" value="true"/>
<reference bind="setEventAdmin" cardinality="1..1" interface="org.osgi.service.event.EventAdmin" name="EventAdmin" policy="static" unbind="unsetEventAdmin"/>
</scr:component>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2019, 2020 Eurotech and/or its affiliates and others
* Copyright (c) 2019, 2024 Eurotech and/or its affiliates and others
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -144,7 +144,7 @@ public String publish(final PublishOptions options, final KuraPayload kuraPayloa
final byte[] body = kuraPayload.getBody();

if (body == null) {
throw new KuraException(KuraErrorCode.INVALID_PARAMETER, null, null, "missing message body");
throw new KuraException(KuraErrorCode.INVALID_PARAMETER, "Missing message body in received payload.");
}

final int qos = options.getQos().getValue();
Expand Down

0 comments on commit dac4507

Please sign in to comment.