Skip to content

Error getting Network Security Groups which has space char in the name #624

Description

@ssuriya

Azure supports both space and '+' chars in the NetworkSecurityGroup name.

When NSG is requested with below API: space is encoded into '+' incorrectly and Resource not found exception is thrown.

Caused by: com.microsoft.windowsazure.exception.ServiceException: ResourceNotFound: The Network Security Group Test+Space does not exist.
at com.microsoft.windowsazure.exception.ServiceException.createFromXml(ServiceException.java:208)
at com.microsoft.windowsazure.management.network.NetworkSecurityGroupOperationsImpl.get(NetworkSecurityGroupOperationsImpl.java:2593)

As a workaround, in my client code, before calling the NetworkSecurityGroupOperationsImpl.get(), we are converting the Space char as "%20".

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions