Skip to content

Conversation

@jesusbv
Copy link
Collaborator

@jesusbv jesusbv commented Jun 6, 2025

Description

Some requests do send the token key in the params without any value or with nil value

This fixes that case

How to test

Tests have been updated to reflect that, activate a product on BYOS mode and send the token with nil value
it should not raise any error and the public cloud registration code should not get updated (or the method called)

Change Type

Please select the correct option.

  • Bug Fix (a non-breaking change which fixes an issue)
  • New Feature (a non-breaking change which adds new functionality)
  • Documentation Update (a change which only updates documentation)

Checklist

Please check off each item if the requirement is met.

  • I have reviewed my own code and believe that it's ready for an external review.
  • I have provided comments for any hard-to-understand code.
  • I have documented the MANUAL.md file with any changes to the user experience.
  • If my changes are non-trivial, I have added a changelog entry to notify users at package/obs/rmt-server.changes.

Review

Please check out our review guidelines
and get in touch with the author to get a shared understanding of the change.

jesusbv added 4 commits June 6, 2025 00:15
some instances send params with a nil value for the token key,
so the encoding 64 can not succeed

This fixes bsc#
When the request has no token, there is no value to update the
registration token with

This fixes bsc#1244166
@jesusbv jesusbv requested review from digitaltom and rjschwei June 6, 2025 08:01
@jesusbv jesusbv self-assigned this Jun 6, 2025
Add test to check method is not called when token is nil
@digitaltom digitaltom added 2.23 and removed 2.22 labels Jun 6, 2025
@digitaltom
Copy link
Member

I changed the label here to 2.23, because 2.22 is already released. Can you add a note to the changelog?

@jesusbv jesusbv merged commit b58bf1d into master Jun 6, 2025
3 of 4 checks passed
@jesusbv jesusbv deleted the fix-nil-token branch June 6, 2025 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants