Skip to content

Firefly-1958: new URI(s).toURL() is not backward compatable to new URL#1923

Merged
robyww merged 1 commit intodevfrom
FIREFLY-1958-url
Mar 18, 2026
Merged

Firefly-1958: new URI(s).toURL() is not backward compatable to new URL#1923
robyww merged 1 commit intodevfrom
FIREFLY-1958-url

Conversation

@robyww
Copy link
Copy Markdown
Contributor

@robyww robyww commented Mar 18, 2026

Firefly-1958: new URI(s).toURL() is not backward compatible to new URL

  • create a utility function to make URLs
  • clean up TapUtil.js, all url build consistently with new URL()
  • other clean up of tap utilities as well
  • Firefly-1956: fixed

Testing

@robyww robyww requested review from loitly and lrebull March 18, 2026 21:47
@robyww robyww self-assigned this Mar 18, 2026
@robyww robyww added the bug label Mar 18, 2026
@robyww robyww added this to the 2026.1 milestone Mar 18, 2026
@lrebull
Copy link
Copy Markdown
Contributor

lrebull commented Mar 18, 2026

Yes, it works!

Copy link
Copy Markdown
Contributor

@loitly loitly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It worked for me as well. Changes look good.


public static URL makeURL(String s) {
if (s == null) return null;
URL url= Util.Try.it(() -> new URI(s.trim()).toURL()).getOrElse((URL)null);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea was to make the code more readable. It was intended to be used like:

URL url= Try.it(() -> new URI(s.trim()).toURL()).get();

It defaults to null if failed.

…L(s)

- clean up TapUtil.js, all url build consistently  with new URL()
- other clean up of tap utilities as well
- Firefly-1956: fixed
@robyww robyww force-pushed the FIREFLY-1958-url branch from fb473fa to e07f33f Compare March 18, 2026 23:23
@robyww robyww added the multi-ticket This PR implements multiple Jira tickets label Mar 18, 2026
@robyww robyww merged commit fc6e4e0 into dev Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug multi-ticket This PR implements multiple Jira tickets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants