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
939 stars 441 forks source link

OBS allows to have packages with a too long description that cannot be branched anymore #15279

Open dcermak opened 1 year ago

dcermak commented 1 year ago

Issue Description

The package rubygem-mspec has a very long description (probably created via osc updatepacmetafromspec), but the package can now no longer be branched:

❯ osc branch devel:languages:ruby:extensions rubygem-mspec
BuildService API error: failed to branch: Title is too long (maximum is 250 characters)

Expected Result

How to Reproduce

  1. osc branch devel:languages:ruby:extensions rubygem-mspec
hennevogel commented 12 months ago

There are 2 records on production that have longer titles than the Package.title length validation allows...

Package.where(id: Package.limit(5).order("CHAR_LENGTH(title) desc").pluck(:id)).map { |p| p.title.length } 
=> [255, 255, 249, 250, 250]