Skip to content
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

Problem: Non-equivalent directory name comparison in Transfers.py #61

Closed
ross-spencer opened this issue May 1, 2018 · 0 comments
Closed

Comments

@ross-spencer
Copy link
Contributor

See: https://github.com/artefactual/automation-tools/blob/master/transfers/transfer.py#L373

We're comparing a string that comes into the function with an fsencoded (byte) string, which will result in a match not being found in Python3.

Plain and encoded strings look like as follows:

Plain: transfer_1
FSEncoded: b'transfer_1'
qubot pushed a commit that referenced this issue May 1, 2018
* Introduces a unit test for approve transfers to enable refactor
* Rewrites approve_transfers to match previous returns
* Rewrites approve_transfers to use AM Client module
* Fixes #60
* Fixes #61
qubot pushed a commit that referenced this issue May 1, 2018
* Introduces a unit test for approve transfers to enable refactor
* Rewrites approve_transfers to match previous returns
* Rewrites approve_transfers to use AM Client module
* Fixes #60
* Fixes #61
qubot pushed a commit that referenced this issue May 10, 2018
This PR adds capability to AM Client in support of the API functions
required for automated reingest.

* Adds new functions to AM Client, including reingest and transfer status.
* Adds a new feature to list compressed AIPS.
* Makes the new functions available to the client executable.
* Provides unit testing for the additional function calls.
* Extends utils.py request mechanism to enable http authentication headers
  to be set.
* A formatting issue was discovered in models.py while testing which
  is now corrected.
* Warning for non-JSON responses are only output if there is a non-OK
  HTTP response where responses from the API are not always JSON.
* Refactors transfer.py approve_transfers.
* Introduces a unit test for approve transfers to enable refactor.
* Rewrites approve_transfers to match previous returns.
* Rewrites approve_transfers to use AM Client module.
* Fixes #60
* Fixes #61
* Fixes #64
* Resolves #67
* Additional testing to help capture symptoms of #62
qubot pushed a commit that referenced this issue May 10, 2018
This PR adds capability to AM Client in support of the API functions
required for automated reingest.

* Adds new functions to AM Client, including reingest and transfer status.
* Adds a new feature to list compressed AIPS.
* Makes the new functions available to the client executable.
* Provides unit testing for the additional function calls.
* Extends utils.py request mechanism to enable http authentication headers
  to be set.
* A formatting issue was discovered in models.py while testing which
  is now corrected.
* Warning for non-JSON responses are only output if there is a non-OK
  HTTP response where responses from the API are not always JSON.
* Refactors transfer.py approve_transfers.
* Introduces a unit test for approve transfers to enable refactor.
* Rewrites approve_transfers to match previous returns.
* Rewrites approve_transfers to use AM Client module.
* Fixes #60
* Fixes #61
* Fixes #64
* Resolves #67
* Additional testing to help capture symptoms of #62
@qubot qubot closed this as completed in 2a79db2 May 14, 2018
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

No branches or pull requests

1 participant