Skip to content

Commit 409931e

Browse files
authored
Fixes CAMEL-22597 batter handling of jiraUrl when resolving userTimeZone (#19694)
1 parent debbace commit 409931e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/camel-jira/src/main/java/org/apache/camel/component/jira/consumer/NewIssuesConsumer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private String getServerTimestamp() {
8787
* @return {@link DateTimeZone} of the user
8888
*/
8989
private DateTimeZone getUserTimeZone() {
90-
URI userURI = URI.create(getEndpoint().getConfiguration().getJiraUrl() + "/rest/api/latest/myself");
90+
URI userURI = URI.create(getEndpoint().getConfiguration().getJiraUrl()).resolve("rest/api/latest/myself");
9191
final User user = getEndpoint().getClient().getUserClient().getUser(userURI).claim();
9292
final String timezone = user.getTimezone();
9393

0 commit comments

Comments
 (0)