Skip to content

Commit

Permalink
Check if space is set to readOnly before import
Browse files Browse the repository at this point in the history
Signed-off-by: Ansari, Mujammil <[email protected]>
  • Loading branch information
mujammil10 committed Oct 15, 2024
1 parent 9d02616 commit b2c9373
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ public boolean validate() throws ValidationException {
try {
logAndSetPhase(Phase.VALIDATE);
//Check if the space is actually existing
space();
Space space = space();
if(space.isReadOnly())
throw new ValidationException("The target resource " + space.getId() + " for the import step cannot be set to readOnly.");

if (entityPerLine == FeatureCollection && format == CSV_JSON_WKB)
throw new ValidationException("Combination of entityPerLine 'FeatureCollection' and type 'Csv' is not supported!");
Expand Down

0 comments on commit b2c9373

Please sign in to comment.