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

Verify Sonarr quality/rootfolder override #4116

Merged
merged 3 commits into from
Mar 28, 2021
Merged

Conversation

kitzin
Copy link
Contributor

@kitzin kitzin commented Mar 28, 2021

Ombi implicitly trusts that the quality/rootfolder override is set correctly, and causes issues downstream.

Line 258 in TvSender.cs it tries to add a series, but the AddSeries function in SonarrApi.cs fails to validate the NewSeries object since the qualityProfileId attribute is set to 0. In the end it assumes the series is added in Sonarr and causes a API request with series id set to 0 which causes the following error.

[Error] StatusCode: BadRequest, Reason: Bad Request, RequestUri: http://SONARR_HOST/sonarr/api/series/0

#3194 could be related to this.

kitzin added 3 commits March 28, 2021 04:42
Ombi implicitly trusts that the quality override is set correctly, and causes issues downstream.

Line 258 in [TvSender.cs](https://github.com/Ombi-app/Ombi/tree/develop/src/Ombi.Core/Senders/TvSender.cs#L258) it tries to add a series but the, `AddSeries` function in [SonarrApi.cs](https://github.com/Ombi-app/Ombi/blob/develop/src/Ombi.Api.Sonarr/SonarrApi.cs#L92) fails to validate the `NewSeries` object since the `qualityProfileId` attribute is set to `0`. In the end it assumes the series is added in Sonarr and causes a API request with series id set to `0` which causes the following error.

```
[Error] StatusCode: BadRequest, Reason: Bad Request, RequestUri: http://SONARR_HOST/sonarr/api/series/0
```
rootfolder override has the same issue
@kitzin kitzin changed the title Verify Sonarr quality override Verify Sonarr quality/rootfolder override Mar 28, 2021
@tidusjar
Copy link
Member

Nice work! thanks for this!

I think you are correct that it's related to that bug, but the new advanced options had made the bug more apparent. So thanks!

@tidusjar tidusjar merged commit 1bc1793 into Ombi-app:develop Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants