Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package SUSEConnect for openSUSE:Factory 
checked in at 2021-07-22 22:42:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/SUSEConnect (Old)
 and      /work/SRC/openSUSE:Factory/.SUSEConnect.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "SUSEConnect"

Thu Jul 22 22:42:56 2021 rev:24 rq:907443 version:0.3.31

Changes:
--------
--- /work/SRC/openSUSE:Factory/SUSEConnect/SUSEConnect.changes  2020-11-29 
12:24:57.969792078 +0100
+++ /work/SRC/openSUSE:Factory/.SUSEConnect.new.1899/SUSEConnect.changes        
2021-07-22 22:43:23.579197260 +0200
@@ -1,0 +2,13 @@
+Sun Jul 21 10:00:00 UTC 2021 - Natnael Getahun <ngeta...@suse.com>
+
+- Update to 0.3.31
+- Disallow registering via SUSEConnect if the system is managed by SUSE 
Manager.
+
+-------------------------------------------------------------------
+Sun Jun 20 13:07:06 UTC 2021 - Thomas Schmidt <tschm...@suse.com>
+
+- Update to 0.3.30
+- send payload of GET requests as part of the url,
+  not in the body (see bsc#1185611)
+
+-------------------------------------------------------------------

Old:
----
  suse-connect-0.3.29.gem

New:
----
  suse-connect-0.3.31.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ SUSEConnect.spec ++++++
--- /var/tmp/diff_new_pack.nQMhFf/_old  2021-07-22 22:43:24.099196582 +0200
+++ /var/tmp/diff_new_pack.nQMhFf/_new  2021-07-22 22:43:24.099196582 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           SUSEConnect
-Version:        0.3.29
+Version:        0.3.31
 Release:        0
 %define mod_name suse-connect
 %define mod_full_name %{mod_name}-%{version}
@@ -129,8 +129,10 @@
 touch %{buildroot}%_sysconfdir/zypp/credentials.d/SCCcredentials
 
 # replace /usr/bin/env with native ruby path
-sed -i "1s/.*/#\!\/usr\/bin\/ruby\.%{ruby_version}/" 
%{buildroot}%{_sbindir}/%{name}
-sed -i "1s/.*/#\!\/usr\/bin\/ruby\.%{ruby_version}/" 
%{buildroot}%{gem_base}/gems/%{mod_full_name}/bin/%{name}
+%if 0%{?suse_version}
+    sed -i "1s/.*/#\!\/usr\/bin\/ruby\.%{ruby_version}/" 
%{buildroot}%{_sbindir}/%{name}
+    sed -i "1s/.*/#\!\/usr\/bin\/ruby\.%{ruby_version}/" 
%{buildroot}%{gem_base}/gems/%{mod_full_name}/bin/%{name}
+%endif
 
 %post
 if [ -s /etc/zypp/credentials.d/NCCcredentials ] && [ ! -e 
/etc/zypp/credentials.d/SCCcredentials ]; then

++++++ suse-connect-0.3.29.gem -> suse-connect-0.3.31.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2020-11-25 12:10:47.000000000 +0100
+++ new/README.md       2021-07-21 09:47:02.000000000 +0200
@@ -18,7 +18,6 @@
 # Rake tasks
 
 ```
-rake bump     # increase version of a gem
 rake console  # Run console loaded with gem
 rake rubocop  # Run Rubocop
 rake spec     # Run RSpec
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/suse/connect/cli.rb new/lib/suse/connect/cli.rb
--- old/lib/suse/connect/cli.rb 2020-11-25 12:10:47.000000000 +0100
+++ new/lib/suse/connect/cli.rb 2021-07-21 09:47:02.000000000 +0200
@@ -6,7 +6,7 @@
     # Command line interface for interacting with SUSEConnect
     class Cli # rubocop:disable ClassLength
       include Logger
-
+      SUMA_SYSTEM_ID = '/etc/sysconfig/rhn/systemid'.freeze
       attr_reader :config, :options
 
       def initialize(argv)
@@ -45,6 +45,9 @@
           elsif @config.url_default? && !@config.token && !@config.product
             puts @opts
             exit(1)
+          elsif File.exist?(SUMA_SYSTEM_ID)
+            log.error 'This system is managed by SUSE Manager / Uyuni, do not 
use SUSEconnect.'
+            exit(1)
           else
             Client.new(@config).register!
           end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/suse/connect/connection.rb 
new/lib/suse/connect/connection.rb
--- old/lib/suse/connect/connection.rb  2020-11-25 12:10:47.000000000 +0100
+++ new/lib/suse/connect/connection.rb  2021-07-21 09:47:02.000000000 +0200
@@ -56,6 +56,12 @@
 
       private
 
+      def path_with_params(path, params)
+        return path if params.empty?
+        encoded_params = URI.encode_www_form(params)
+        [path, encoded_params].join('?')
+      end
+
       def prefix_protocol(endpoint)
         if endpoint[%r{^(http|https):\/\/}]
           endpoint
@@ -65,10 +71,15 @@
       end
 
       def json_request(method, path, params = {})
-        request = VERB_TO_CLASS[method].new(path)
+        # for :get requests, the params need to go to the url, for other 
requests into the body
+        if method == :get
+          request = VERB_TO_CLASS[method].new(path_with_params(path, params))
+        else
+          request = VERB_TO_CLASS[method].new(path)
+          request.body = params.to_json unless params.empty?
+        end
         add_headers(request)
 
-        request.body  = params.to_json unless params.empty?
         response      = @http.request(request)
         response_body = JSON.parse(response.body) unless 
response.body.to_s.empty?
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/suse/connect/version.rb 
new/lib/suse/connect/version.rb
--- old/lib/suse/connect/version.rb     2020-11-25 12:10:47.000000000 +0100
+++ new/lib/suse/connect/version.rb     2021-07-21 09:47:02.000000000 +0200
@@ -1,5 +1,5 @@
 module SUSE
   module Connect
-    VERSION = '0.3.29'
+    VERSION = '0.3.31'
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/tasks/package.rake new/lib/tasks/package.rake
--- old/lib/tasks/package.rake  2020-11-25 12:10:47.000000000 +0100
+++ new/lib/tasks/package.rake  2021-07-21 09:47:02.000000000 +0200
@@ -23,6 +23,7 @@
   desc 'Check local checkout for uncommitted changes'
   task :check_git do
     modified = `git ls-files -m -o --exclude-standard .`
+    raise 'Unable to build file list with git' unless $CHILD_STATUS.success?
     if modified.empty?
       puts 'No uncommitted changes detected.'
     else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2020-11-25 12:10:47.000000000 +0100
+++ new/metadata        2021-07-21 09:47:02.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: suse-connect
 version: !ruby/object:Gem::Version
-  version: 0.3.29
+  version: 0.3.31
 platform: ruby
 authors:
 - SUSE Customer Center Team
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2020-11-25 00:00:00.000000000 Z
+date: 2021-07-21 00:00:00.000000000 Z
 dependencies: []
 description: This package provides a command line tool and rubygem library for 
connecting
   a client system to the SUSE Customer Center. It will connect the system to 
your

Reply via email to