AbsaOSS / AbsaOSS/enceladus

handleMappingRule from DatasetMongoRepository should throw proper error on conformance receiving null

オープン
#825 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug Menas priority: medium
主要言語
Scala
スター
33
フォーク
16
PR マージ指標
30日以内にマージされた PR はありません

説明

## 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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。