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: Parse.setServer doesn't properly validate URL #1844

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

dplewis
Copy link
Member

@dplewis dplewis commented Jan 28, 2025

New Pull Request Checklist

Issue Description

ParseClientConfigurationTests.testServerValidation test is broken and was excluded from the test suite.

Closes: #1837

Approach

Improve url validation, we could also remove this check and leave it to the developer

TODOs before merging

  • Add tests
  • Add changes to documentation (guides, repository pages, in-code descriptions)

Copy link

parse-github-assistant bot commented Jan 28, 2025

Thanks for opening this pull request!

  • 🎉 We are excited about your hands-on contribution!

Copy link

codecov bot commented Jan 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.70%. Comparing base (dd05d41) to head (c65237a).
Report is 45 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1844       +/-   ##
===========================================
+ Coverage   64.24%   82.70%   +18.45%     
===========================================
  Files         201      282       +81     
  Lines       23233    30735     +7502     
===========================================
+ Hits        14926    25418    +10492     
+ Misses       8307     5317     -2990     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dplewis dplewis requested review from mtrezza and a team January 28, 2025 17:41
@dplewis
Copy link
Member Author

dplewis commented Jan 28, 2025

@mtrezza Looks like there are flaky tests, I could register the subclasses in the test suite but #1811 should fix this

 testPinObjectsWithoutChildren, The class PFPin must be registered with registerSubclass before using Parse. (NSInternalInconsistencyException)

@mtrezza
Copy link
Member

mtrezza commented Jan 28, 2025

Yes, there are flaky test

@dplewis
Copy link
Member Author

dplewis commented Jan 31, 2025

@mtrezza Is this good to merge?

@mtrezza
Copy link
Member

mtrezza commented Jan 31, 2025

Yep!

@mtrezza mtrezza changed the title fix: Parse.setServer doesn't handle url validation fix: Parse.setServer doesn't properly validate URL Jan 31, 2025
@mtrezza mtrezza merged commit d7b1c8e into parse-community:master Jan 31, 2025
19 checks passed
parseplatformorg pushed a commit that referenced this pull request Jan 31, 2025
## [5.1.1](5.1.0...5.1.1) (2025-01-31)

### Bug Fixes

* `Parse.setServer` doesn't properly validate URL ([#1844](#1844)) ([d7b1c8e](d7b1c8e))
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.1.1

@parseplatformorg parseplatformorg added the state:released Released as stable version label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:released Released as stable version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix ParseClientConfigurationTests.testServerValidation
3 participants