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

Error messages in RequestPartValidator prints typeof(DataType) instead of dataType.Id #6418

Closed
SandGrainOne opened this issue Jun 14, 2021 · 3 comments
Labels
kind/bug Used when there is a defect / something is not working as it should.
Milestone

Comments

@SandGrainOne
Copy link
Member

Describe the bug

Example error:
"Error when comparing content to application metadata: The multipart section named vedleggDriftsplan has a Content-Type 'text/plain' which is invalid for element type 'Altinn.Platform.Storage.Interface.Models.DataType'."

The message contains the type name of DataType instead of the dataType.Id value.

To Reproduce

Steps to reproduce the behavior:

  1. Perform a multipart request on POST {org}/{app}/instances where content type is invalid for at least one data element.
  2. Results in Bad Request with the faulty error message.

Expected behavior

Error message includes the correct data type identifier.

@SandGrainOne SandGrainOne added the kind/bug Used when there is a defect / something is not working as it should. label Jun 14, 2021
@lvbachmann lvbachmann added this to the 2021 - W25/26 milestone Jun 21, 2021
@acn-sbuad acn-sbuad assigned acn-sbuad and unassigned acn-sbuad Jun 29, 2021
@acn-sbuad acn-sbuad removed their assignment Jul 2, 2021
@acn-sbuad
Copy link
Member

nuget 4.9.1

@jeevananthank
Copy link
Contributor

fix is verified and regression test on 4.9.1-alpha is complete. issue can be closed once the final nugets are pushed.

@jeevananthank jeevananthank removed their assignment Jul 6, 2021
@SandGrainOne SandGrainOne self-assigned this Jul 7, 2021
@SandGrainOne
Copy link
Member Author

Final packages have been made and published.

@SandGrainOne SandGrainOne removed their assignment Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Used when there is a defect / something is not working as it should.
Projects
None yet
Development

No branches or pull requests

5 participants