Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 error when handling already exsisting child entites #1088

Closed
Fargekritt opened this issue Sep 5, 2024 · 0 comments
Closed

500 error when handling already exsisting child entites #1088

Fargekritt opened this issue Sep 5, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Fargekritt
Copy link
Contributor

Reproduction

  1. Create any dialog containing transmission and or activities
  2. Get the dialog using serviceOwner API
  3. Attempt to update the dialog using the output from the get

Expected behavior

Error explaining that the transmission and or activities already exsists

Actual behavior

500 error

@Fargekritt Fargekritt added the bug Something isn't working label Sep 5, 2024
@oskogstad oskogstad self-assigned this Sep 7, 2024
oskogstad added a commit that referenced this issue Sep 9, 2024
…alog update (#1094)

<!--- Provide a general summary of your changes in the Title above -->

## Description

Regression(?), or missed bug from when transmissions where introduced.
* Added missing return when finding existing IDs
* Adjusted the log message for existing activities to use the same
extension method as transmissions
* Added tests for both existing activities and existing transmissions 

## Related Issue(s)

- #1088 

## Verification

- [ ] **Your** code builds clean without any errors or warnings
- [ ] Manual testing done (required)
- [ ] Relevant automated test added (if you find this hard, leave it and
we'll help out)

## Documentation

- [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
or a separate linked PR in
[altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
applicable)
@elsand elsand closed this as completed Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

3 participants