Skip to content

Fix missing payload in users.edit - #1059

Merged
SteveMcGrath merged 1 commit into
tenable:mainfrom
mCabby:fix-users-edit-payload-1058
Nov 6, 2026
Merged

SteveMcGrath merged 1 commit into
tenable:mainfrom
mCabby:fix-users-edit-payload-1058

Conversation

@mCabby

@mCabby mCabby commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes #1058

UsersAPI.edit() constructs the updated user payload but does not pass the payload to the underlying PUT request. This causes Tenable Vulnerability Management to return 415 Unsupported Media Type when attempting to edit a user.

This change restores the json=payload argument to the PUT request.

The existing test_users_edit test has also been updated to validate that the expected JSON payload is included in the request, providing regression coverage for this issue.

No additional dependencies are required.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

The existing test_users_edit test was updated with json_params_matcher to verify that UsersAPI.edit() sends the expected payload in the PUT request.

The users API test suite was run locally:

64 passed, 2 skipped

The complete test suite was also run locally:

2298 passed, 34 skipped, 5 xfailed, 3 xpassed
96% coverage

Test Configuration:

  • Python Version(s) Tested: Tested: 3.15.2
  • Tenable.sc version (if necessary): N/A

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@mCabby
mCabby requested a review from a team as a code owner November 5, 2026 22:28
@SteveMcGrath
SteveMcGrath merged commit df922e0 into tenable:main Nov 6, 2026
9 checks passed
@mCabby
mCabby deleted the fix-users-edit-payload-1058 branch November 6, 2026 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UsersAPI.edit() does not send payload, resulting in HTTP 415.

2 participants