Files
UnrealEngineUWP/Engine/Source/Programs/AutomationTool/SmartlingLocalization
leon huang 4eb27b0627 Localization:
Fixed issue with Smartling downloads failing during localization import. Issue is caused by an authentication token being retrieved/refreshed but not set as part of HttpClient Authentication request header.
This resulted in HTTP 401 errors where the authentication fails with the endpoint.
- Updated retrieval/refreshing of authentication token to also set the newly retreived/refreshed authentication data in the HttpClient Authentication request header.
- Introduce HTTP 401 status checks in the downloading/uploading of PO files to detect authentication token expiration. Token refreshing is performed the upload/download operation is retried.
- Refactored UploadLatestPOFile and DownloadLatestPOFile to reduce nesting blocks and minimize code in try-catch blocks.
- This is an urgent fix so no approved reviews yet. Will fix/address problems after.

#jira: FORT-645798
#rb: none
#rnx
#test Locally ran the Localize UAT command with the Download step. Before these changes, the download step would have HTTP 401 errors failing to authenticate. After these changes, I haven't encountered them.

[CL 27394443 by leon huang in ue5-main branch]
2023-08-25 17:49:39 -04:00
..
2023-08-25 17:49:39 -04:00