Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
9.4.14, 9.12.2
-
9.04
-
9
-
Severity 3 - Minor
-
57
-
Description
Issue Summary
When System board is accessed on a non base URL in Jira 9.4, the activity stream gadget still partially works as compared to higher versions of Jira, giving customers an impression that it should work even if Jira is accessed on a non base URL
This is reproducible on Data Center: (yes)
Steps to Reproduce
- Install Jira 9.4.14, create a test project with data in it, access Jira home page and confirm that the activity stream works fine
- Access the same Jira page on a non base URL (add a host entry to etc hosts if needed)
Expected Results
Activity stream shouldn't work, it shouldn't display actual activity, giving a URL mismatch error and / or an error like below:
or
Jira logs and .har file should be logging URL mismatch errors like below:
com.atlassian.gadgets.dashboard.internal.diagnostics.UrlHostnameMismatchException: Detected URL hostname, 'your.jira.host.name', does not match expected hostname, 'jria.base.url.host.name'
at com.atlassian.gadgets.dashboard.internal.diagnostics.Diagnostics.checkExpectedHostname(Diagnostics.java:62)
at com.atlassian.gadgets.dashboard.internal.diagnostics.Diagnostics.check(Diagnostics.java:32)
at com.atlassian.gadgets.dashboard.internal.diagnostics.DiagnosticsServlet.executeDiagnostics(DiagnosticsServlet.java:80)
at com.atlassian.gadgets.dashboard.internal.diagnostics.DiagnosticsServlet.doPost(DiagnosticsServlet.java:56)
While this works on Jira 9.4.x, when upgraded to a later version of Jira - 9.12 for example, the gadget breaks, thus giving an impression that there's a bug, while in reality it is expected that Jira shouldn't be displaying the gadget correctly in the first place
Actual Results
The gadget still 'somewhat' works, it doesn't display the title but the actual activity stream is still there, thus, giving an impression that it works even if Jira is accessed on a non-base URL:
Workaround
There is no workaround. Jira must be accessed on a base URL at all times for consistent behaviour when it comes to gadgets.