EasyNetQ.Management.Client
EasyNetQ.Management.Client copied to clipboard
sanitise source/destination names in DeleteBindingAsync
allow characters + # / : in queue/exchange names when deleting bindings
Hello,
I have solved this issue with method UrlEncode of the System.Net
Name = WebUtility.UrlEncode (queue.Name);
In this way I correctly codify any special character, I have already used in my prod enviroment for sanitise it, befoure to call DeleteQueue
WebUtility
is present in .netstandard 1.5 and netfx 4.5.2 so I think would be great to use it and fix all possible characters.
what do you think @mijabr @zidad ?
@micdenny for sure that seems like the best solution!
WebUtility.UrlEncode(....);
@mijabr can you apply that method instead of all the replace?
@mijabr can we do this for all the methods? so we cover all the management api
I'm unable reproduce the original issue with the integration tests. I'll have to go back and dig deeper.
I'm unable reproduce the original issue with the integration tests. I'll have to go back and dig deeper.
ok no pressure, take your time 😄 but I would like to spread this fix for all the methods so to close this something like forever, because this issue was fired different times in the past, so it's time to really fix this ;)
maybe SanitiseName
is already used everywhere? BTW just check that this fix has been spread whenever is needed, thanks 🙇
@mijabr do you have time to implement this using WebUtility.UrlEncode(....);
instead of SanitiseName(...)
?
Fixed in #171