Closed RyannosaurusRex closed 9 years ago
Good pickup! I'll patch that today
I'm using the latest Version 1.3.0.2 from NuGet.
Looking at Master, it seems like the whitelist approach should catch this, so it may already be fixed in source through 0315e044ff9592bccece099f12327661d8d0a3d6, though there's not a specific test yet for this scenario.
The space between "MYCOMPANY SOMETHING" is what ends up adding the %20 space in the path.
builder.Register(componentContext => new BusBuilder()
.Configure()
.WithNames("MYCOMPANY SOMETHING", Environment.MachineName)
.WithConnectionString(connectionString)
.WithDefaultHandlerFactory(messageHandlerFactory)
.WithTypesFrom(typeProvider)
.WithDefaultTimeout(TimeSpan.FromSeconds(10))
.WithAutofacDefaults(componentContext)
.Build())
.As<IBus>()
.AutoActivate()
.OnActivated(c => c.Instance.Start())
.SingleInstance();
@DamianMac did this get patched?
Following up. Any updates?
Hey there
Sorry, swamped... want to have a crack at it ?
No worries. I'll try and get a patch going this weekend or next if I get some time.
Went to check out what a fix would look like and pfft, it's already done. Added a test for spaces and did a PR, but this can be closed.
Related to #10, and essentially the same fix, except Sanitize needs a fix for spaces (in the form of %20) so that they get mapped to a period as well.