Altinn / Altinn/app-lib-dotnet

Utvidet filvalidering blir kun kjørt ved POST data og ikke på PUT

Open
#614 2 comments 0 reactions 0 assignees View on GitHub
status/for-consideration
Dominant language
C#
Stars
8
Forks
27
Avg merge
1h 21m
Merged PRs (30d)
7

Description

### Description

Vi har implementert utvidet filvalidering, FileAnalyser og FileValidator, men ser at de kun blir kjørt ved POST og ikke ved PUT på data.
Man kan da potensielt laste opp data som er analysert og validert OK, for så erstatte de med noe som ikke er ok.

### Additional Information

_No response_

### Tasks

_No response_

### Acceptance Criterias

_No response_

Contributor guide

Open the contributing guide

Research direction

Locate the existing POST data path where FileAnalyser and FileValidator run, then compare it with the PUT path for data replacement. Confirm how validation is invoked in each path and ensure the completed behavior rejects invalid replacement data on PUT as it does on POST; add or update coverage for both operations if the relevant tests are found.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.