Skip to content

[Notifier]  [Free Mobile] Could not use custom host in DSN #39510

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

Merged
merged 1 commit into from
Dec 15, 2020

Conversation

OskarStark
Copy link
Contributor

@OskarStark OskarStark commented Dec 15, 2020

Q A
Branch? 5.1
Bug fix? yes
New feature? no
Deprecations? no
Tickets ---
License MIT
Doc PR ---

While working on #39509 I discovered, that you cannot set a custom host through the DSN string itself, only by calling setHost() method in the transport, which is only possible by not using the factory....

I changed it the way all other bridges work. I don't add a testcase for the port, because non of the others have that test.
I plan to implement it in #39495

As this is a bugfix I created an extra PR.

Cheers

EDIT:

Also the host is not allowed to contain https:// otherwise calling __toString() will result in: freemobile://https://......

@carsonbot carsonbot changed the title [Notifier] [Free Mobile] Could not use custom host in DSN [Notifier]  [Free Mobile] Could not use custom host in DSN Dec 15, 2020
@OskarStark OskarStark changed the base branch from 5.x to 5.1 December 15, 2020 10:29
@OskarStark
Copy link
Contributor Author

Ready to merge from my side 👍

@fabpot
Copy link
Member

fabpot commented Dec 15, 2020

Thank you @OskarStark.

@fabpot fabpot merged commit 77960f8 into symfony:5.1 Dec 15, 2020
@OskarStark OskarStark deleted the fix-custom-host branch December 15, 2020 18:17
This was referenced Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants