katello 4.16.0.rc2 → 4.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

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: f6ecb6347baf2c799dbe9d379a919b386d066fb16447ebdb7b5b940a9ae7329e
4
- data.tar.gz: dea48f30f60751b97523e93e5d9dfa35b516d66feaeceb31808ba9b0ed0fed7b
3
+ metadata.gz: '0997eb8bebf1634749cb6a1962723661ec39670ec86f8e1c1a370562c20c7b83'
4
+ data.tar.gz: 90c2757c2e68f89fdded5602aca7ea29e78f8dc7d236d4f0449dcb40196cc630
5
5
  SHA512:
6
- metadata.gz: a1dfd988175ae50e81a44dd84aa9fd5bc725ed5d8f53a89c15534fae391d2f50958077ba4c8b2c809287f14b50a3339594fabcf593d9aca20ffbeb446d6375cf
7
- data.tar.gz: 4feb89b53b4727e8344ac7e03335e7dea113c3cf496430a6309116f4552e6a404b5d68df8d1a58a04c3d0a27e9125c8736ad1148f16cc746b63829145f4398d4
6
+ metadata.gz: f53e29dd5208bd178dae867d64d859051240727e1ef072f44de7a49878b8ec52649cb5e54eaaae6c5a3c28dcb958ebe0a876f1a86baf604f5c2e28ded569d7e8
7
+ data.tar.gz: 7c0a67d078504f496e1d160a2058539873bbcdd4293f3e47f815e745583a77d14ac601d328f8ad24693032091478e30a5267c2e7de708b0b7666aeb2c2ecfc1c
@@ -36,11 +36,17 @@ KT.hosts.fetchEnvironments = function () {
36
36
  select.find('option').remove();
37
37
  if (content_source_id) {
38
38
  var url = tfm.tools.foremanUrl('/katello/api/capsules/' + content_source_id);
39
- var orgIds = $("#hostgroup_organization_ids").val();
40
- if(orgIds === undefined || orgIds === null || orgIds.length === 0) {
39
+ var orgIdsElem = $("#hostgroup_organization_ids");
40
+ var orgIds = orgIdsElem.val();
41
+ if (orgIds === undefined || orgIds === null || orgIds.length === 0) {
42
+ orgIds = orgIdsElem.data('useds');
43
+ }
44
+ if (orgIds === undefined || orgIds === null || orgIds.length === 0) {
41
45
  orgIds = [$("#host_organization_id").val()];
42
46
  };
43
- orgIds = orgIds.map(id => Number(id));
47
+ orgIds = orgIds.map(function (id) {
48
+ return Number(id);
49
+ });
44
50
  $.get(url, function (content_source) {
45
51
  $.each(content_source.lifecycle_environments, function(index, env) {
46
52
  // Don't show environments that aren't in the selected org. See jQuery.each() docs
@@ -1,6 +1,9 @@
1
1
  module Katello
2
2
  class Api::V2::FlatpakRemotesController < Katello::Api::V2::ApiController
3
3
  include Katello::Concerns::FilteredAutoCompleteSearch
4
+ include ::Foreman::Controller::FilterParameters
5
+
6
+ filter_parameters :token
4
7
 
5
8
  before_action :find_authorized_katello_resource, :except => [:index, :create, :auto_complete_search]
6
9
  before_action :find_optional_organization, :only => [:index, :auto_complete_search]
@@ -5,7 +5,8 @@ module Katello
5
5
 
6
6
  def prepare_host
7
7
  if params['uuid']
8
- @host = Katello::Host::SubscriptionFacet.find_by(uuid: params['uuid'])&.host
8
+ host_id = Katello::Host::SubscriptionFacet.find_by(uuid: params['uuid'])&.host_id
9
+ @host = ::Host::Managed.unscoped.find_by(id: host_id)
9
10
  if @host.nil?
10
11
  msg = _("Host was not found by the subscription UUID: '%s', this can happen if the host is registered already, but not to this instance") % params['uuid']
11
12
  fail ActiveRecord::RecordNotFound, msg
@@ -27,4 +27,6 @@ template_inputs:
27
27
  %>
28
28
 
29
29
  sudo podman login <%= server_url %> --username <%= username %> --password <%= password %>
30
- sudo cp /run/containers/0/auth.json /etc/flatpak/oci-auth.json
30
+ if test -f "/run/containers/0/auth.json"; then
31
+ sudo cp --update /run/containers/0/auth.json /etc/flatpak/oci-auth.json
32
+ fi
@@ -1,3 +1,3 @@
1
1
  module Katello
2
- VERSION = "4.16.0.rc2".freeze
2
+ VERSION = "4.16.0".freeze
3
3
  end
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.16.0.rc2
4
+ version: 4.16.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: 2025-03-04 00:00:00.000000000 Z
11
+ date: 2025-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails