History log of /haiku/src/tests/kits/net/service/UrlTest.cpp
Revision Date Author Comments
# aa272ca3 01-May-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

Package Kit: reduce identifer/base-url confusion

For historical reasons, the package kit has an "url" field that is not
actually meant to be used as an URL. Rename it in the API and user
facing output as "identifier" to make it clear what the file is used
for. This change preserves the "url" key in on-disk and online storage
(hpkr files, stored settings, etc) in an attempt to not break anything.

Fix one remaining misuse of the "url" field as an URL in
get_package_dependencies.

Add an unit test showing that BUrl does parse "tab" URIs properly (there
is just a protocol and a path segment).

Change-Id: I339ce526e5798d42d78ae650855d7e988dbb4a1a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2542
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# f4db7fdc 04-Nov-2016 Adrien Destugues <pulkomandy@pulkomandy.tk>

BUrl: allow URLs without protocol or authority again.

Parsing an URL can never fail. The regexp is designed to match any
input. In the worst case, everything will end up in the "path"
component. WebPositive relies on this to generate file URLs from a plain
path.

URLs without a protocol are also possible, and can be used with an
implicit protocol. A typical example is network shares sometimes noted in
"//host.domain/path/file" form.

Add tests for these two cases and fix the parser to behave as expected.


# 9bf4e994 21-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

BUrl: IDNA ToUnicode and ToASCII conversions.

* Since DNS are normally restricted to ASCII, the use of UTF-8 in domain
names is implemented using a "punycode" encoding.
* The request to the DNS server must be sent with the ASCII
representation of the domain name, however the Unicode one should be
used for user-visible parts.
* ICU provides an implementation of the conversion, which we use here.
* Conversion is currently done in-place and modifies the BUrl object
(this is similar to UrlEncode/UrlDecode).
* Adjust existing IDN test to make use of these methods. It's passing
now.


# 6da9451e 21-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

UrlTest: cleanup IDN tests.


# 4359643e 28-Jul-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Test for relative URL with a port in the base URL.

As expected, the port is preserved.


# 043178a0 21-Jul-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Add WizzNic

* Update sdl_image_x86 to a version that can load PNG files
* Update giflib_x86 to match what's required by the new SDL_image
package


# f38d4d45 09-Jun-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Rename url directory to "service"

* All "services kit" tests will move there.


# 9bf4e994771d86bafbd15f0eb0e91ff1d482c7ce 21-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

BUrl: IDNA ToUnicode and ToASCII conversions.

* Since DNS are normally restricted to ASCII, the use of UTF-8 in domain
names is implemented using a "punycode" encoding.
* The request to the DNS server must be sent with the ASCII
representation of the domain name, however the Unicode one should be
used for user-visible parts.
* ICU provides an implementation of the conversion, which we use here.
* Conversion is currently done in-place and modifies the BUrl object
(this is similar to UrlEncode/UrlDecode).
* Adjust existing IDN test to make use of these methods. It's passing
now.


# 6da9451ebaec75b9c1166e822cbfac4c819504dc 21-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

UrlTest: cleanup IDN tests.


# 4359643ed4016b83d1749d7425e36dd0b6a4b202 28-Jul-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Test for relative URL with a port in the base URL.

As expected, the port is preserved.


# 043178a06317ccc9cd36ceda21bf6c6153986b0f 21-Jul-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Add WizzNic

* Update sdl_image_x86 to a version that can load PNG files
* Update giflib_x86 to match what's required by the new SDL_image
package


# f38d4d45108b6ec646f508957376d0313af1e196 09-Jun-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Rename url directory to "service"

* All "services kit" tests will move there.