Actions
Bug #31105
closedcan't publish a CV if the description is longer than 255 chars
Fixed in Releases:
Found in Releases:
Description
Katello allows CV descriptions to have an arbitrary length, but Candlepin does not.
Steps to reproduce:- create a CV with the following description:
this is a very long description. really. it's huge. you wouldn't believe it. this is a very long description. really. it's huge. you wouldn't believe it. this is a very long description. really. it's huge. you wouldn't believe it. this is a very long description. really. it's huge. you wouldn't believe it. this is a very long description. really. it's huge. you wouldn't believe it.
- publish the CV
Result:
2020-10-20T09:10:43 [I|app|2e7ca83c] Completed 500 Internal Server Error in 23ms (Views: 7.0ms | ActiveRecord: 5.4ms | Allocations: 4510) 2020-10-20T09:10:43 [E|bac|] description: size must be between 0 and 255 (Katello::Errors::CandlepinError) /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/lib/actions/middleware/propagate_candlepin_errors.rb:21:in `rescue in propagate_candlepin_errors' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/lib/actions/middleware/propagate_candlepin_errors.rb:18:in `propagate_candlepin_errors' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/lib/actions/middleware/propagate_candlepin_errors.rb:9:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:23:in `call' /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:27:in `pass' /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:19:in `pass' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/lib/actions/middleware/remote_action.rb:16:in `block in run' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/lib/actions/middleware/remote_action.rb:40:in `block in as_remote_user' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/models/katello/concerns/user_extensions.rb:21:in `cp_config' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/lib/actions/middleware/remote_action.rb:27:in `as_cp_user' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/lib/actions/middleware/remote_action.rb:39:in `as_remote_user' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/lib/actions/middleware/remote_action.rb:16:in `run' …
Actions