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

fix(Schema Registry): append '/' to RestService.BaseAddress and remove '/' from subject requests #996

Merged
merged 3 commits into from
Jul 8, 2019

Conversation

jonathansant
Copy link
Contributor

@jonathansant jonathansant commented Jun 28, 2019

fixes: #993

@ghost
Copy link

ghost commented Jun 28, 2019

It looks like @jonathansant hasn't signed our Contributor License Agreement, yet.

The purpose of a CLA is to ensure that the guardian of a project's outputs has the necessary ownership or grants of rights over all contributions to allow them to distribute under the chosen licence.
Wikipedia

You can read and sign our full Contributor License Agreement here.

Once you've signed reply with [clabot:check] to prove it.

Appreciation of efforts,

clabot

@jonathansant
Copy link
Contributor Author

[clabot:check]

@ghost
Copy link

ghost commented Jun 30, 2019

@confluentinc It looks like @jonathansant just signed our Contributor License Agreement. 👍

Always at your service,

clabot

private static string SanitizeUri(string uri)
{
var sanitized = uri.StartsWith("http", StringComparison.Ordinal) ? uri : $"http://{uri}";
return $"{Regex.Replace(sanitized, "(/$)+", string.Empty)}/";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you change this to not use System.Text.RegularExpressions? i think this might result in an assembly being loaded that otherwise wouldn't be, and the logic's simple enough that using a regex doesn't add much.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@mhowlett
Copy link
Contributor

mhowlett commented Jul 3, 2019

thanks! I think a number of people have hit this issue.
sorry for the delay in reviewing (end of quarter madness).
lgtm except for 1 minor change request.

@mhowlett mhowlett merged commit bdc66b8 into confluentinc:1.1.x Jul 8, 2019
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

Successfully merging this pull request may close these issues.

2 participants