openSUSE / open-build-service

Build and distribute Linux packages from sources in an automatic, consistent and reproducible way #obs
https://openbuildservice.org
GNU General Public License v2.0
936 stars 440 forks source link

obs-server: buildhist and rbl commands not proxied to other instance #14415

Open jengelh opened 1 year ago

jengelh commented 1 year ago

Issue Description

Given a portal project such as

$ osc meta prj packman
<project name="packman">
  <title/>
  <description/>
  <remoteurl>https://pmbs-api.links2linux.de/public</remoteurl>
  <person userid="admin" role="maintainer"/>
</project>

not all requests are properly forwarded to the other instance as follows:

Observed

$ osc r packman:Multimedia/gxine
openSUSE_Tumbleweed  x86_64     succeeded*
...

$ osc buildhist packman:Multimedia/gxine openSUSE_Tumbleweed  x86_64
Server returned an error: HTTP Error 404: Not Found
project 'packman:Multimedia' does not exist

$ osc rbl Multimedia/gxine openSUSE_Tumbleweed  x86_64
Server returned an error: HTTP Error 404: Not Found
project 'packman:Multimedia' does not exist

Expected Result

Show the build history and build log.

Further Information

bmwiedemann commented 1 year ago

relevant sources: https://github.com/openSUSE/open-build-service/blob/f0b97cd519/src/backend/bs_repserver#L1146 https://github.com/openSUSE/open-build-service/blob/f0b97cd519/src/backend/bs_srcserver#L4820