Skip to content

HostUtils: parseAlias: allow hostnames without tld#15102

Open
asavageiv wants to merge 1 commit intoCollaboraOnline:mainfrom
asavageiv:asavage/fix-parseAlias
Open

HostUtils: parseAlias: allow hostnames without tld#15102
asavageiv wants to merge 1 commit intoCollaboraOnline:mainfrom
asavageiv:asavage/fix-parseAlias

Conversation

@asavageiv
Copy link

Fixes /issues/15100

Change-Id: I2bacc4caf1affed090845178c72ecd39bb0cfa91

Summary

Fix HostUtil::parseAlias to accept hostnames with a single segment, e.g. http://test as opposed to http://test.local

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

@asavageiv
Copy link
Author

@meven PTAL and let me know if there are any more tests I should add

@meven meven requested review from meven and timar March 19, 2026 12:34
@meven
Copy link
Contributor

meven commented Mar 19, 2026

I made a PR too, but yours is more complete.
#15104

@meven
Copy link
Contributor

meven commented Mar 19, 2026

I like much better my commit message: HostUtils: parseAlias: allow hostnames without tld

Cool is a big project, it is better to add some context to your commit title i.e first line

Fixes CollaboraOnline/issues/15100

Signed-off-by: Alan Savage <3028205+asavageiv@users.noreply.github.com>
Change-Id: I2bacc4caf1affed090845178c72ecd39bb0cfa91
@asavageiv asavageiv force-pushed the asavage/fix-parseAlias branch from 2e7b83d to 5ad236f Compare March 19, 2026 13:02
@asavageiv asavageiv changed the title Fix regex to allow single-label hostnames, and update tests accordingly. HostUtils: parseAlias: allow hostnames without tld Mar 19, 2026
@asavageiv
Copy link
Author

Yeah, yours is way better. TY for the quick review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Test

Development

Successfully merging this pull request may close these issues.

HostUtil::parseAlias fails to identify http://nextcloud-aio-apache:23973 as a URI

2 participants