-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
Auto-AssignAuto assign by botAuto assign by botCXP AttentionThis issue is handled by CXP team.This issue is handled by CXP team.Service Busaz servicebusaz servicebusbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Description
Describe the bug
If a malformed ISO-8601 duration is used when creating a Service Bus queue, a call stack is reported instead of a usable error that the duration is invalid.
Command Name
az servicebus queue create
Errors:
The command failed with an unexpected error. Here is the traceback:
Unrecognised ISO 8601 date format: ''
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 658, in execute
...
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\isodate/isodates.py", line 203, in parse_date
isodate.isoerror.ISO8601Error: Unrecognised ISO 8601 date format: ''
To Reproduce:
Try to create a Service Bus queue with a malformed ISO-8601 duration. For example:
az servicebus queue create --resource-group ABC --namespace-name XYZ --name Q1 --default-message-time-to-live PT7D
Note that there is an erroneous T in PT7D, which should be P7D instead.
Expected Behavior
A useful error is reported, such as that this is not a valid ISO-8601 duration.
Environment Summary
Windows-10-10.0.19044-SP0
Python 3.10.3
Installer: MSI
azure-cli 2.35.0 *
Extensions:
azure-devops 0.23.0
ml 2.0.7
Dependencies:
msal 1.17.0
azure-mgmt-resource 20.0.0
Additional Context
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botCXP AttentionThis issue is handled by CXP team.This issue is handled by CXP team.Service Busaz servicebusaz servicebusbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.