Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(event_source): fix HomeDirectoryDetails type in TransferFamilyAuthorizerResponse method #6403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2025

Conversation

fabien-github
Copy link
Contributor

Issue number: #6396

Summary

Changes

This PR resolve an issue with the return type of the parameter HomeDirectoryDetails from the _build_authentication_response() method in TransferFamilyAuthorizerResponse.

  • HomeDirectoryDetails can be a list of mapping.
  • HomeDirectoryDetails need to be return as a string representation to the AWS Transfer Server.

User experience

Before this PR, the AWS Transfer Server return an error : "Unable to parse Json", when HomeDirectoryDetails was set.

Checklist

If your change doesn't seem to apply, please leave them unchecked.

Is this a breaking change?

RFC issue number:

Checklist:

  • Migration process documented
  • Implement warnings (if it can live side by side)

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@fabien-github fabien-github requested a review from a team as a code owner April 4, 2025 17:00
@boring-cyborg boring-cyborg bot added the tests label Apr 4, 2025
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 4, 2025
Copy link

boring-cyborg bot commented Apr 4, 2025

Thanks a lot for your first contribution! Please check out our contributing guidelines and don't hesitate to ask whatever you need.
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link

Copy link

sonarqubecloud bot commented Apr 4, 2025

@leandrodamascena leandrodamascena changed the title fix(dataclass): TransferFamilyAuthorizerResponse build method return wrong type for home_directory_details fix(event_source): fix HomeDirectoryDetails type in TransferFamilyAuthorizerResponse method Apr 4, 2025
@github-actions github-actions bot added the bug Something isn't working label Apr 4, 2025
Copy link

codecov bot commented Apr 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.31%. Comparing base (caf27a2) to head (3fa26f5).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #6403   +/-   ##
========================================
  Coverage    96.31%   96.31%           
========================================
  Files          242      242           
  Lines        11710    11711    +1     
  Branches       871      871           
========================================
+ Hits         11279    11280    +1     
  Misses         337      337           
  Partials        94       94           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@leandrodamascena leandrodamascena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for fixing this @fabien-github

@leandrodamascena leandrodamascena merged commit 5aa107c into aws-powertools:develop Apr 4, 2025
19 checks passed
Copy link

boring-cyborg bot commented Apr 4, 2025

Awesome work, congrats on your first merged pull request and thank you for helping improve everyone's experience!

leandrodamascena pushed a commit that referenced this pull request Apr 24, 2025
…horizerResponse method (#6403)

fix(dataclass): TransferFamilyAuthorizerResponse build method return wrong type for home_directory_details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size/S Denotes a PR that changes 10-29 lines, ignoring generated files. tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Dataclass - TransferFamilyAuthorizerResponse - Wrong response build for HomeDirectoryDetails
2 participants