katello 4.14.0.rc3 → 4.14.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of katello might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59babbb3cb7836e9eb0567c1dea29d720eaa3b96968f4d078eeaf98d4e3177a1
4
- data.tar.gz: d57019bdcc781e11d389669b393f5ea8a8b144f09a6f87dbddac773a346b3257
3
+ metadata.gz: 21ce45d5f478e1cbfce9d978a25ac49d78cb24ae72b60df06d0d040f0a9ad22f
4
+ data.tar.gz: c7051ac4f64ee8815b4df564973146d24254a4af0dbadfc719228ddb1343543b
5
5
  SHA512:
6
- metadata.gz: 0f668a837bd14561a7da7712b31b9f59df257276ea8b96224e9ca4bbd655cd799ae47474d98f7cb60a716765c41db9837730ead8499671799316bf24c2baf3ad
7
- data.tar.gz: 726e63b52258f087bcbf640d8a01c398e23a683fec281aeddfc3b2ac97383eff599d593f78ac638c3d4443e60b55f45de132966cab505ad0de3f07cdb87521f9
6
+ metadata.gz: bca7d73c35c724f8f8b19d1b2311f05ea0eb2b1f56ea9c74f9ba61743d85665deca7887ba8f1d218ceb92f08e732a37fb457c9eb16ef5aac2c21e5ed9e1c9fb6
7
+ data.tar.gz: 9f0018048dd7dd5639ce6665e2aff7dfa040407067efc6c484a4eac6e1c960e21902892cdd446d008eab0afccf06bdd50c9d96d0e4367c0a96b5372da6540981
@@ -332,9 +332,9 @@ module Katello
332
332
  end
333
333
  elsif params.key?(:organization_id) && !params.key?(:environment_id) && !params.key?(:environments)
334
334
  organization = Organization.current
335
- environments = organization.library.content_view_environment
335
+ environments = [organization.library.content_view_environment]
336
336
  elsif User.current.default_organization.present?
337
- environments = User.current.default_organization.library.content_view_environment
337
+ environments = [User.current.default_organization.library.content_view_environment]
338
338
  else
339
339
  fail HttpErrors::NotFound, _("User '%s' did not specify an organization ID and does not have a default organization.") % current_user.login
340
340
  end
@@ -2,6 +2,7 @@ module Actions
2
2
  module Katello
3
3
  module CapsuleContent
4
4
  class Sync < ::Actions::EntryAction
5
+ middleware.do_not_use Dynflow::Middleware::Common::Transaction
5
6
  include ::Actions::ObservableAction
6
7
  def resource_locks
7
8
  :link
@@ -3,11 +3,18 @@ module Actions
3
3
  module Repository
4
4
  class CreateRoot < Actions::EntryAction
5
5
  def plan(root, relative_path = nil)
6
- root.save!
6
+ begin
7
+ root.save!
8
+ rescue ActiveRecord::RecordInvalid
9
+ if root.is_container_push
10
+ logger.warn("Skipping repository creation as container push repository already exists: #{root.container_push_name}")
11
+ return
12
+ end
13
+ end
7
14
  repository = ::Katello::Repository.new(:environment => root.organization.library,
8
15
  :content_view_version => root.organization.library.default_content_view_version,
9
16
  :root => root)
10
- repository.container_repository_name = relative_path
17
+ repository.container_repository_name = relative_path if root.docker? && root.is_container_push
11
18
  repository.relative_path = relative_path || repository.custom_repo_path
12
19
  repository.save!
13
20
 
@@ -137,10 +137,10 @@ module Katello
137
137
 
138
138
  # Container push may concurrently call root add several times before the db can update.
139
139
  if repo_param[:is_container_push]
140
- RootRepository.create_or_find_by!(repo_param)
141
- else
142
- RootRepository.new(repo_param)
140
+ root = RootRepository.find_by(repo_param)
141
+ return root if root
143
142
  end
143
+ RootRepository.new(repo_param)
144
144
  end
145
145
  end
146
146
  end
@@ -35,8 +35,11 @@ module Katello
35
35
  end
36
36
 
37
37
  def content_view_info(content_view_environment)
38
+ return {} if content_view_environment.blank?
39
+
38
40
  content_view = content_view_environment.content_view
39
41
  return {} if content_view.blank?
42
+
40
43
  {
41
44
  'label' => content_view.try(:label),
42
45
  'latest-version' => content_view.try(:latest_version),
@@ -272,8 +272,10 @@ module Katello
272
272
  self.content_view_version.content_view
273
273
  end
274
274
 
275
+ # Skip setting container name if the repository is not container type or
276
+ # if it's a library instance of a container-push repo, indicating that the container name is set by the user.
275
277
  def skip_container_name?
276
- self.library_instance? && self.root.docker? && self.root.is_container_push
278
+ !self.root.docker? || (self.root.is_container_push && self.library_instance?)
277
279
  end
278
280
 
279
281
  def library_instance?
@@ -4,6 +4,6 @@ class AddConvert2rhelToHostFacets < ActiveRecord::Migration[6.1]
4
4
  end
5
5
 
6
6
  def down
7
- remove_column :subscription_facets, :convert2rhel_through_foreman
7
+ remove_column :katello_subscription_facets, :convert2rhel_through_foreman
8
8
  end
9
9
  end
@@ -9,7 +9,7 @@
9
9
  ng-upload="uploadContent(content)"
10
10
  upload-options-enable-rails-csrf>
11
11
 
12
- <div bst-form-group label="{{ 'Name' | translate }}">
12
+ <div bst-form-group label="{{ 'Name *' | translate }}">
13
13
  <input id="name"
14
14
  name="name"
15
15
  ng-model="contentCredential.name"
@@ -28,7 +28,7 @@
28
28
  </select>
29
29
  </div>
30
30
 
31
- <div bst-form-group label="{{ 'Content Credential Contents' | translate }}">
31
+ <div bst-form-group label="{{ 'Content Credential Contents *' | translate }}">
32
32
  <textarea name="content"
33
33
  ng-model="contentCredential.pastedContent"
34
34
  tabindex="1"
@@ -36,7 +36,7 @@
36
36
  style="font-family: monospace"
37
37
  rows="15"
38
38
  placeholder="{{ 'Paste contents of Content Credential' | translate }}"
39
- required>
39
+ >
40
40
  </textarea>
41
41
  </div>
42
42
 
@@ -51,6 +51,11 @@ module Katello
51
51
  end
52
52
 
53
53
  def capsule_content_permissions
54
+ @plugin.permission :view_smart_proxies,
55
+ {
56
+ 'katello/api/v2/capsules' => [:index, :show]
57
+ },
58
+ :resource_type => "SmartProxy"
54
59
  @plugin.permission :manage_capsule_content,
55
60
  {
56
61
  'katello/api/v2/capsule_content' => [:add_lifecycle_environment, :remove_lifecycle_environment,
@@ -62,7 +67,7 @@ module Katello
62
67
  @plugin.permission :view_capsule_content,
63
68
  {
64
69
  'katello/api/v2/capsule_content' => [:counts, :lifecycle_environments, :available_lifecycle_environments, :sync_status],
65
- 'smart_proxies' => [:pulp_storage, :pulp_status, :show_with_content],
70
+ 'smart_proxies' => [:pulp_storage, :pulp_status, :show_with_content, :index],
66
71
  'katello/api/v2/capsules' => [:index, :show]
67
72
  },
68
73
  :resource_type => "SmartProxy"
@@ -1,3 +1,3 @@
1
1
  module Katello
2
- VERSION = "4.14.0.rc3".freeze
2
+ VERSION = "4.14.0".freeze
3
3
  end
@@ -148,8 +148,6 @@ const BulkErrataTable = () => {
148
148
  showCheckboxes
149
149
  apiUrl={ERRATA_URL}
150
150
  apiOptions={apiOptions}
151
- headerText={__('Errata')}
152
- header={null}
153
151
  controller="errata"
154
152
  customSearchProps={customSearchProps}
155
153
  creatable={false}
@@ -133,8 +133,6 @@ const BulkPackagesTable = ({
133
133
  showCheckboxes
134
134
  apiUrl={PACKAGES_URL}
135
135
  apiOptions={apiOptions}
136
- headerText={__('Packages')}
137
- header={null}
138
136
  controller="packages"
139
137
  customSearchProps={customSearchProps}
140
138
  creatable={false}
@@ -122,8 +122,6 @@ const HostReview = ({
122
122
  showCheckboxes
123
123
  apiUrl={HOSTS_API_PATH}
124
124
  apiOptions={apiOptions}
125
- headerText={__('Hosts')}
126
- header={null}
127
125
  controller="hosts"
128
126
  creatable={false}
129
127
  replacementResponse={response}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katello
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.14.0.rc3
4
+ version: 4.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - N/A
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-12 00:00:00.000000000 Z
11
+ date: 2024-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -5451,9 +5451,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
5451
5451
  version: '4'
5452
5452
  required_rubygems_version: !ruby/object:Gem::Requirement
5453
5453
  requirements:
5454
- - - ">"
5454
+ - - ">="
5455
5455
  - !ruby/object:Gem::Version
5456
- version: 1.3.1
5456
+ version: '0'
5457
5457
  requirements: []
5458
5458
  rubygems_version: 3.2.33
5459
5459
  signing_key: