aws-mobile-appsync-sdk-ios icon indicating copy to clipboard operation
aws-mobile-appsync-sdk-ios copied to clipboard

S3Object inside Input type does not upload automatically if optional

Open johnmurphy01 opened this issue 6 years ago • 1 comments

Describe the bug When using the auto upload feature(AWSS3TransferUtility) of AppSync, the S3Object is not recognized if the parameter is marked as Optional.

To Reproduce

  1. Create a schema in which an input has a S3ObjectInput property, making the property optional.
  2. The input should be referenced as a parameter in a mutation(the sample in this repo would suffice along with the nested S3 integration test, given that step 1 is achieved)
  3. Generate the resulting API
  4. Call the mutation, passing in a valid S3ObjectInput

Expected behavior The file should automatically upload to the AWS S3 bucket

Environment

  • AppSync SDK Version: 2.10.3
  • Dependency Manager: Cocoapods
  • Swift Version : 4.2

Device Information:

  • Device: any device or simulator
  • iOS Version: presumably any OS Version, but running 12.1.4

Additional context I verified this by converting my generated Swift API so that the file was not optional. Re-ran my tests and the file uploaded successfully.

johnmurphy01 avatar Mar 27 '19 20:03 johnmurphy01

Hi @johnmurphy01 ,

Thanks for the report. We will investigate this issue.

minbi avatar Mar 31 '19 05:03 minbi

Thank you for opening this issue. AWS AppSync SDK for iOS entered maintenance mode in September 2023 and will receive no further updates as of September 2024.

Please use Amplify Swift going forward. For information on upgrading to Amplify Swift, refer to the Upgrade from AppSync SDK documentation.

atierian avatar Dec 07 '23 20:12 atierian