Skip to content

Commit

Permalink
Do not allow a linktobranch for metapackages like _pattern
Browse files Browse the repository at this point in the history
Fixes #17305
  • Loading branch information
danidoni committed Jan 30, 2025
1 parent 29e0459 commit 0500eac
Show file tree
Hide file tree
Showing 4 changed files with 611 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/app/controllers/source_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,10 @@ def package_command_deleteuploadrev

# POST /source/<project>/<package>?cmd=linktobranch
def package_command_linktobranch
if @package.nil?
render_error status: 400, message: 'package is not a link'
return
end
pkg_rev = params[:rev]
pkg_linkrev = params[:linkrev]

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0500eac

Please sign in to comment.