Project

General

Profile

Actions

Bug #31105

closed

can't publish a CV if the description is longer than 255 chars

Added by Evgeni Golov over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Fixed 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 #1

Updated by Samir Jha over 3 years ago

  • Target version set to Katello 3.18.0
  • Triaged changed from No to Yes
Actions #2

Updated by Jonathon Turel over 3 years ago

  • Category changed from Container to Content Views
  • Target version changed from Katello 3.18.0 to Katello 4.0.0
Actions #3

Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Samir Jha
  • Pull request https://github.com/Katello/katello/pull/9089 added
Actions #4

Updated by The Foreman Bot over 3 years ago

  • Fixed in Releases Katello 4.1.0 added
Actions #5

Updated by Samir Jha over 3 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF