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
Empty repository in container registry causes unexpected SDK issue when trying to list tags #28234
Comments
Thanks for the feedback, we’ll investigate asap. |
Hello @xiangyan99 and @YalinLi0312, any update on this issue? Thanks! |
Hello @xiangyan99 and @YalinLi0312, any findings on the issue? Thank you! |
Hi @l3ender , we are preparing new features in this sdk and will back to investigate this issue asap. Thanks for your patience! |
Hi @YalinLi0312, any update? Thanks! |
@l3ender We haven't got a chance to investigate this issue yet, but I can tag you once we have updates. Sorry for any inconvenience. |
@YalinLi0312, thank you for the response. Is there anyone else who can support this issue since you are busy? It has already been 8 weeks with no update! Thank you! |
Hello @xiangyan99 and @YalinLi0312, any update? This issue is blocking our ability to use the SDK for container registry management! |
Hi @l3ender , we are working on it. You can expect it get fix in our next preview release. |
Hi @l3ender. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “ |
@l3ender Here's the release with the bug fix: Here's the release: https://pypi.org/project/azure-containerregistry/1.1.0b2/ Please give it a try, it should unblock your work. |
Hi @l3ender, since you haven’t asked that we “ |
Sorry I didn't respond sooner, but I have tested the beta version and can confirm it is working! Thank you!! When will a stable release occur with the same? /unresolve |
|
Any update on a GA release? Thanks! |
Describe the bug
When trying to list the tags on an empty container registry repository (all tags have been removed), the SDK produces the unexpected error
TypeError: 'NoneType' object is not iterable
. The error is thrown when trying to iterate on a non-none object of typeazure.core.paging.ItemPaged
, which is what is unexpected.To Reproduce
Steps to reproduce the behavior:
Delete all tags for a container registry's repository.
Try and use the SDK to list tags for the empty repository. The issue will come when try to iterate on the response (even if a check for
None
is done prior):I have created a script which reproduces the issue, which also includes setup of a registry/repository for testing. See below for more detail.
Expected behavior
The SDK should either not throw an issue when trying to iterate on the tag response (
ItemPaged
type) OR return aNoneType
response so that appropriate checks can be added by client applications.Screenshots
Below is a screenshot in Azure portal of a repository which has had all tags removed:
Using the SDK to list tags for "my-test-repository" causes the above issue to occur.
Additional context
I've created a script which completely initializes a container registry and and puts it in the desired state, and then reproduces the error.
Install required dependencies:
Create environment variables for test script, and populate with environment-specific values.
Run the following script to recreate the issue. The script will autocreate the container registry (and repository) if it doesn't exist. The script will then try and list tags for the empty repository.
The text was updated successfully, but these errors were encountered: