AbsaOSS / AbsaOSS/enceladus

handleMappingRule from DatasetMongoRepository should throw proper error on conformance receiving null

Đang mở
#825 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug Menas priority: medium
Ngôn ngữ chính
Scala
Star
33
Fork
16
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## Describe the bug
When `handleMappingRule` from `DatasetMongoRepository` method receives `null` in `dataset.conformance` it throws a NullPointer in users face. This can happen when a user sends a null conformance rule value to update of the dataset, although this is a valid value since you don't have to have anything in conformance.

## To Reproduce
Steps to reproduce the behavior OR commands run:
1. Try updating dataset through rest and leave out conformance or set it to null
2. Throws 500

## Expected behaviour
Throw propper error

Even better. Accept null as an empty array

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.