AbsaOSS / AbsaOSS/enceladus

handleMappingRule from DatasetMongoRepository should throw proper error on conformance receiving null

未关闭
#825 1 条评论 0 个 reaction 已指派 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 摘要。