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 +4 -4
- data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +2 -2
- data/app/lib/actions/katello/capsule_content/sync.rb +1 -0
- data/app/lib/actions/katello/repository/create_root.rb +9 -2
- data/app/models/katello/glue/pulp/repos.rb +3 -3
- data/app/models/katello/host/info_provider.rb +3 -0
- data/app/models/katello/repository.rb +3 -1
- data/db/migrate/20240729192228_add_convert2rhel_to_host_facets.rb +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/new/views/new-content-credential.html +3 -3
- data/lib/katello/permission_creator.rb +6 -1
- data/lib/katello/version.rb +1 -1
- data/webpack/components/extensions/Hosts/BulkActions/BulkErrataWizard/02_BulkErrataTable.js +0 -2
- data/webpack/components/extensions/Hosts/BulkActions/BulkPackagesWizard/02_BulkPackagesTable.js +0 -2
- data/webpack/components/extensions/Hosts/BulkActions/HostReview.js +0 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21ce45d5f478e1cbfce9d978a25ac49d78cb24ae72b60df06d0d040f0a9ad22f
|
4
|
+
data.tar.gz: c7051ac4f64ee8815b4df564973146d24254a4af0dbadfc719228ddb1343543b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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
|
-
|
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.
|
141
|
-
|
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.
|
278
|
+
!self.root.docker? || (self.root.is_container_push && self.library_instance?)
|
277
279
|
end
|
278
280
|
|
279
281
|
def library_instance?
|
@@ -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
|
-
|
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"
|
data/lib/katello/version.rb
CHANGED
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
|
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-
|
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:
|
5456
|
+
version: '0'
|
5457
5457
|
requirements: []
|
5458
5458
|
rubygems_version: 3.2.33
|
5459
5459
|
signing_key:
|