Altinn / Altinn/app-frontend-react

XML opplasting feiler når liste med vedlegg inneholder ugyldige filreferanser

Open
#3,851 0 comments 1 reaction 0 assignees View on GitHub
kind/bug status/triage
Dominant language
TypeScript
Stars
21
Forks
33
Avg merge
6d 23h
Merged PRs (30d)
3

Description

### Description of the bug

Når jeg laster opp en XML av et skjema som inneholder en liste med vedlegg får jeg feilmelding når jeg så prøver å laste opp vedlegg til den komponenten:
```
Exception thrown when generating node "FileUpload-Vitnemaal":
Error: Trying to redefine non-empty obj['VitnemålFil']
```

### Steps To Reproduce

- Fyll inn et skjema som har liste med vedlegg, som er koblet til en property i datamodellen
- Last opp flere vedlegg i den samme vedleggskomponenten
- Last ned XML av skjemaet
- Last opp igjen XML av skjemaet
Når du nå prøver å laste opp en fil i vedleggskomponenten får du feilmelding

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the XML upload and attachment flow described in the issue: upload multiple attachments, download the form XML, upload it again, and try another attachment. Trace the frontend handling of attachment lists and invalid file references; done means attachments can be uploaded after the XML round trip without the redefinition error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.