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

Subscription names cannot be longer than 50 characters #73

Closed
michaelnoonan opened this issue Apr 23, 2014 · 0 comments
Closed

Subscription names cannot be longer than 50 characters #73

michaelnoonan opened this issue Apr 23, 2014 · 0 comments

Comments

@michaelnoonan
Copy link
Contributor

7e90b59 introduced a change to subscription naming and we happen to have a lot of Request message names that cause the Subscription Path to break the 50 character limit imposed by Service Bus.

One example is: nextgen.appserver.getrecordsmodifiedsincerequesthandler

public static string SubscriptionNameFor(string applicationName, string instanceName, Type handlerType)
{
     return Sanitize(string.Join(".", new[] {applicationName, instanceName, handlerType.Name}));
}

The offending code in the Microsoft.ServiceBus assembly in NamespaceManager (v2.1.3.0):

NamespaceManager.CheckValidEntityName(description.TopicPath, 260, "description.TopicPath");
NamespaceManager.CheckValidEntityName(description.Name, 50, false, "description.Name");

This issue was raised here also Particular/NServiceBus.Azure#19

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