At some point a change was made on the client and on the server which added a headers object to the Enterprise Server's presigned url response to S3 upload requests. These changes didn't account for older deployments, which may not include the headers object, which results in a TypeError on newer clients that are connected to older server environments (see #5475 e.g.). This PR adds a simple conditional which should skip the new client logic if the headers object does not exist.
Breaking Changes / Backwards Compatibility
n/a
Dependencies
n/a
How has this PR been tested?
n/a
Checklist:
[x] I have completed the above PR template
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation (if applicable)
[x] My changes generate no new warnings
[ ] My changes include tests that prove my fix is effective (or that my feature works as intended)
[x] New and existing unit/integration tests pass locally with my changes
[x] Any dependent changes have corresponding PRs that are listed above
Link to Jira Ticket
n/a
Description
At some point a change was made on the client and on the server which added a
headers
object to the Enterprise Server's presigned url response to S3 upload requests. These changes didn't account for older deployments, which may not include the headers object, which results in a TypeError on newer clients that are connected to older server environments (see #5475 e.g.). This PR adds a simple conditional which should skip the new client logic if the headers object does not exist.Breaking Changes / Backwards Compatibility
n/a
Dependencies
n/a
How has this PR been tested?
n/a
Checklist: