Showing task details while the task is in planning can lead to misleading messages
|Triaged:||Fixed in Releases:|
|Bugzilla link:||1532211||Found in Releases:|
Description of problem:
When kicking off Capsule sync and clicking to the Actions::Katello::CapsuleContent::Sync task details still during Planning phase, Params show confusing error:
Params: undefined method `' for nil:NilClass (NoMethodError) /opt/theforeman/tfm/root/usr/share/gems/gems/katello-220.127.116.11/app/lib/actions/katello/capsule_content/sync.rb:18:in `humanized_input' ..
(very long backtrace follows, attached in next comment)
That error is confusing / red herring since it appears during any Caps sync, even if the task proceeds well.
Steps to Reproduce:
1. Have external Capsule
2. Ideally have many repos to be synced to the Caps (to make planning phase longer)
3. Trigger Caps sync
4. As soon as possible, refresh task list and click to details of the CapsuleContent::Sync task
Params: undefined method `' for nil:NilClass (NoMethodError)
Params to be empty / at least without the error
We should probably not try to render the humanized_input/output during the planning phase,
when input is empty, as it's most porbably not available yet.
#1 Updated by Ivan Necas 5 months ago
- Status changed from New to Rejected
- Subject changed from Showing task details while the task is in planning can lead to misleading messages to Showing task details while the task is in planning can lead to misleading messages
Should be provably resolved on katello actions side. Tracked at http://projects.theforeman.org/issues/21182