Skip to content

Bug: extra getStorclass() call incorrectly sets mgntclass in DsnCreate #492

@Eshaan-byte

Description

@Eshaan-byte

In DsnCreate.create(), line 102 uses getStorclass() to set the mgntclass key:

createInputData.getStorclass().ifPresent(v -> createMap.put("storclass", v)); // line 101
createInputData.getStorclass().ifPresent(v -> createMap.put("mgntclass", v)); // line 102 bug
createInputData.getMgntclass().ifPresent(v -> createMap.put("mgntclass", v)); // line 103

When storclass is set but mgntclass is not provided, line 102 sets mgntclass to the storclass value. Line 103's getMgntclass() returns empty, so ifPresent does not execute and the incorrect value from line 102 persists in the request body.

Fix: Remove line 102.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions