Skip to content

Commit

Permalink
fixed piggyback command sending
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed Jul 15, 2022
1 parent 8a27fbe commit 1636e7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ protected static Optional<URI> getHref(final JsonObject jsonObject) {

@Override
public String toString() {
return getClass().getName() + " [" +
return getClass().getSimpleName() + " [" +
"message='" + getMessage() + '\'' +
", errorCode=" + errorCode +
", httpStatus=" + httpStatus +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.eclipse.ditto.base.api.devops.signals.commands.RetrieveLoggerConfig;
import org.eclipse.ditto.base.model.exceptions.DittoJsonException;
import org.eclipse.ditto.base.model.headers.DittoHeaders;
import org.eclipse.ditto.base.model.signals.commands.Command;
import org.eclipse.ditto.base.service.devops.DevOpsCommandsActor;
import org.eclipse.ditto.gateway.service.endpoints.directives.auth.DevOpsOAuth2AuthenticationDirective;
import org.eclipse.ditto.gateway.service.endpoints.directives.auth.DevopsAuthenticationDirective;
Expand Down Expand Up @@ -216,6 +217,7 @@ private Route routePiggyback(final RequestContext ctx,
piggybackCommandJson -> {
JsonObject parsedJson = DittoJsonException.wrapJsonRuntimeException(() ->
JsonFactory.readFrom(piggybackCommandJson).asObject());
parsedJson = parsedJson.set(Command.JsonFields.TYPE, ExecutePiggybackCommand.TYPE);

// serviceName and instance from URL are preferred
if (null != serviceName) {
Expand Down

0 comments on commit 1636e7a

Please sign in to comment.