New features
* If package does exist in SLE, decline the submission
Note: release manager can override it by commenting on reviewbot and reopen the request
* Decline the submission if package does not exist in devel-baseproject and the
source project does not exist in check-source-valid-source-origins attribute
* check_source adding a review-team group review if source project does not exist in check-source-valid-source-origins attribute
* If submitter is not maintainer adding an additional devel project review
New added attributes
* check-source-ensure-source-exist-in-baseproject: bool
* check-source-devel-baseproject: str
* check-source-allow-source-in-sle: bool
* check-source-sle-project: str
* check-source-allow-valid-source-origin: bool
* check-source-valid-source-origins: strlist
* check-source-add-devel-project-review: bool
This API endpoint is currently accepting the GET and POST methods, but
the POST method will be deprecated soon. After looking at the logs from
build.opensuse.org, I noticed that the `licensedigger` user is heavily
relying on this endpoint with the POST method. Using the GET method is
also fine as noted by the W3C[1] in "URIs, Addressability, and the use
of HTTP GET and POST", under the section "5.2 Ephemeral Limitations":
> **URIs cannot be longer than 256 characters**
> This was a limitation in some server implementations, and while
servers continue to have limitations to prevent denial-of-service
attacks, they are generally at least 4000 characters, and they evolve as
the legitimate uses of application developers evolve.
According to the logs, all calls to the /search/request/id API endpoint
coming from this code, with the query string included, are well under
4000 characters long.
[1]: https://www.w3.org/2001/tag/doc/whenToUseGet-20030922#ephemeral
While the project is building, the unresolvables may be temporarily but
more important packages that failed before, can become blocked and then
fail again. But we don't want to remove it from 'failed' because it had
an interim state of blocked
Fixes#2838
obs-service-source_validator recently gained the feature to reject
empty or garbled patches, and hence this was failing. Use a validly
formatted patch instead.