refactor(manager-api-beans): ignore unknown fields in TagDto if provided when saving (due to leakage
of Tag entity in some situations).
MODIFY
manager/api/beans/src/main/java/io/apiman/manager/api/beans/apis/dto/KeyValueTagDto.java
manager/api/beans/src/main/java/io/apiman/manager/api/beans/apis/dto/KeyValueTagDto.java
@@ -4,10 +4,14 @@ import java.util.StringJoiner;
import javax.annotation.Nullable;
import javax.validation.constraints.NotNull;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+
/**
*
* @author Marc Savy {@literal <marc@blackparrotlabs.io>}
*/
+@JsonIgnoreProperties(ignoreUnknown = true)
public class KeyValueTagDto {
@NotNull
private String key;

MODIFY
manager/ui/war/plugins/api-manager/html/api/api-devportal-cropper-modal.html
manager/ui/war/plugins/api-manager/html/api/api-devportal-cropper-modal.html
<button
class="btn btn-default"
type="button"
- ng-click="dismissModal()"
+ ng-click="dismissUibModal()"
apiman-i18n-key="cancel"
>
Cancel

MODIFY
manager/ui/war/plugins/api-manager/ts/api/api-devportal.ts
manager/ui/war/plugins/api-manager/ts/api/api-devportal.ts
@@ -356,7 +356,7 @@ _module.controller("Apiman.DevPortalImageCropper",
function($scope, BlobService, $uibModalInstance, Logger, Modals) {
$scope.uploadImage = uploadImage;
$scope.closeModal = closeModal;
- $scope.dismissModal = dismissModal;
+ $scope.dismissUibModal = dismissUibModal;
$scope.inputImage = inputImage;
$scope.uploading = false;
let cropper: Cropper = null;
@@ -442,8 +442,8 @@ _module.controller("Apiman.DevPortalImageCropper",
$uibModalInstance.close(returnValue);
}
- function dismissModal() {
- $uibModalInstance.dismiss();
+ function dismissUibModal() {
+ $uibModalInstance.dismissModal();
}
}]);

refactor(manager-api-beans): ignore unknown fields in TagDto if provided when saving (due to leakage
of Tag entity in some situations).