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

Preserving suffix # during metachema URI normalization #518

Closed
pondzix opened this issue Feb 24, 2022 · 2 comments
Closed

Preserving suffix # during metachema URI normalization #518

pondzix opened this issue Feb 24, 2022 · 2 comments

Comments

@pondzix
Copy link
Contributor

pondzix commented Feb 24, 2022

In iglu-client we use version of 1.0.39 java-schema-validator. In the code we define meta schema:

http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#

We're blocked with upgrade to newer version, because of URI normalization. Issue is described in detail here.

The case of http normalization can be easily fixed with disabling forceHttps flag introduced in PR, but the problem with trimming # is still present.

Proposed solution

Similar to forceHttps flag, we could introduce boolean option like removeEmptyFragmentSuffix which would be used in normalization. When enabled - remove #, when disable - leave #. Be default it would be enabled to preserve backward compatibility

I prepared PR containing implementation of proposal. First commit contains test reproducing the issue.

@stevehu Let me know what you think 🙂

@stevehu
Copy link
Contributor

stevehu commented Feb 24, 2022

@pondzix Thanks a lot for your help. It is a nice fix that preserves backward compatibility. We have several pending issues still in reviewing and testing mode. Once done, I will have another release.

@pondzix
Copy link
Contributor Author

pondzix commented Feb 25, 2022

Awesome @stevehu and thank you for a quick response!

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

2 participants