Commit 79a78d3
[Junie]: fix: resolve IllegalArgumentException for non-absolute URIs (#13669)
* fix: resolve IllegalArgumentException for non-absolute URIs
A fix was implemented for the `IllegalArgumentException: URI is not absolute` error in JabRef by modifying the `URLUtil.create` method to add "http://" to URLs starting with "www." All tests passed successfully after these changes, and the fix was documented in the CHANGELOG.md.
* [issue-13669] test(FileFieldParserTest): add test for URL handling with "www."
A new test was successfully added to the `FileFieldParserTest` class to verify that URLs starting with "www." are correctly handled by converting them to absolute URLs using the "http://" prefix. The test case passed, confirming the fix made in the `URLUtil.create()` method. All existing tests in the class also passed without any errors.
* [issue-13669] fix: resolve IllegalArgumentException for www. URLs
A fix was made to resolve the `IllegalArgumentException` by changing the `URLUtil.create` method to use "https://" for "www." prefixed URLs. All related tests were updated and passed successfully.
* fix
---------
Co-authored-by: jetbrains-junie[bot] <jetbrains-junie[bot]@users.noreply.github.com>
Co-authored-by: junie-eap[bot] <junie-eap[bot]@users.noreply.github.com>
Co-authored-by: Christoph <siedlerkiller@gmail.com>1 parent 32a3c50 commit 79a78d3
File tree
4 files changed
+36
-3
lines changed- jablib/src
- main/java/org/jabref/logic/util
- test/java/org/jabref/logic
- importer/util
- net
4 files changed
+36
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
84 | 93 | | |
85 | 94 | | |
86 | 95 | | |
| |||
100 | 109 | | |
101 | 110 | | |
102 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
103 | 120 | | |
104 | | - | |
| 121 | + | |
105 | 122 | | |
106 | 123 | | |
107 | 124 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
| |||
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
122 | 131 | | |
123 | | - | |
| 132 | + | |
124 | 133 | | |
125 | 134 | | |
126 | 135 | | |
| |||
0 commit comments