Details
-
Bug
-
Resolution: Cannot Reproduce
-
Low
-
13
-
Severity 3 - Minor
-
4
-
Description
Summary
Unexpected error is causing JIRA Service Desk customers (Atlassian Account converted) to not be able to see JIRA issue/filter macros on Customer Portal knowledge bases as well as in Confluence directly.
Environment
- Unicorn
- Vertigo
Steps to Reproduce
Requirements
Have the project's 'Knowledge Base' section check the box to allow anyone to read articles without a Confluence license.
Have Allow any logged in users to the 'Browse Projects' permission for the project tested.
Have a customer that was converted to Atlassian Account but has no accesses to JIRA or Confluence as a licensed user.
Have the space permissions set up to allow anonymous users to view the knowledge base space.
On customer portal
- Have a knowledge base created using the JIRA issue macro listing issues from any project. (ie: The own JSD project)
- Log in to the customer portal with a Atlassian Account customer.
- Search for the knowledge base and open it.
On Confluence
- Access the Confluence and look for the knowledge base space.
- Open a page that contains the JIRA issue macro.
Expected Results
- Issues should be listed according to the filter on the JIRA issue/filter macro.
Actual Results
- The macro throws this error: "Data cannot be retrieved due to an unexpected error."
JIRA logs on Splunk shows one exception when trying on the Customer Portal:
"timestamp":"2017-07-27T13:17:51,984Z" "level":"WARN" "product":"jira" "logger":"com.atlassian.applinks.internal.capabilities.DefaultRemoteCapabilitiesService" "message":"Exception trying to get Applink for manifest with ID 669ecc51-3b86-3b2f-bcec-aa91c3e60b0a" "tenantId":"1af07e44-6eea-4691-8cae-33c0bcb2552e" "location":{"class":"com.atlassian.applinks.internal.capabilities.DefaultRemoteCapabilitiesService","method":"getApplinkSafe","line":"271"} "url":"/servicedesk/customer/kb/view/327685" "username":"rodrigo.becker@e-core.com"
Confluence logs on Splunk shows two exceptions when trying from there:
"timestamp":"2017-07-27T13:10:12,66Z" "level":"ERROR" "product":"confluence" "logger":"com.atlassian.confluence.extra.jira.JiraChannelResponseHandler" "message":"Error while trying to assemble the issues returned in XML format: Error on line 13: Attribute name \"data-initially-rendered\" associated with an element type \"script\" must be followed by the ' = ' character." "tenantId":"1af07e44-6eea-4691-8cae-33c0bcb2552e" "location":{"class":"com.atlassian.confluence.extra.jira.JiraChannelResponseHandler","method":"getChannelElement","line":"36"} "referer":"https://anarchinstance.atlassian.net/wiki/spaces/AMS/pages/327685/JIRA+Issue+macro" "userName":"rodrigo.becker@e-core.com" "url":"/wiki/rest/api/contentbody/convert/export_view"
"timestamp":"2017-07-27T13:10:12,67Z" "level":"ERROR" "product":"confluence" "logger":"com.atlassian.confluence.extra.jira.helper.JiraExceptionHelper" "message":"Macro execution exception: " "err":{"msg":"java.io.IOException: Error on line 13: Attribute name \"data-initially-rendered\" associated with an element type \"script\" must be followed by the ' = ' character." "class":["java.lang.RuntimeException","java.io.IOException"] "stack":java.lang.RuntimeException: java.io.IOException: Error on line 13: Attribute name "data-initially-rendered" associated with an element type "script" must be followed by the ' = ' character. at com.atlassian.confluence.extra.jira.JiraIssuesManager$ByteStreamBasedSupplier.get(JiraIssuesManager.java:139) at com.atlassian.confluence.extra.jira.JiraIssuesManager$ByteStreamBasedSupplier.get(JiraIssuesManager.java:126) at com.atlassian.confluence.extra.jira.JiraIssuesManager$Channel.getChannelElement(JiraIssuesManager.java:101) at com.atlassian.confluence.extra.jira.JiraIssuesMacro.setupContextMapForStaticTable(JiraIssuesMacro.java:695) at com.atlassian.confluence.extra.jira.JiraIssuesMacro.populateContextMapForStaticTable(JiraIssuesMacro.java:645) at com.atlassian.confluence.extra.jira.JiraIssuesMacro.createContextMapFromParams(JiraIssuesMacro.java:416) at com.atlassian.confluence.extra.jira.JiraIssuesMacro.lambda$execute$3(JiraIssuesMacro.java:895) at com.atlassian.confluence.extra.jira.JiraIssuesMacro.withTiming(JiraIssuesMacro.java:916) at com.atlassian.confluence.extra.jira.JiraIssuesMacro.execute(JiraIssuesMacro.java:894) at com.atlassian.confluence.extra.jira.executor.StreamableMacroFutureTask.renderValue(StreamableMacroFutureTask.java:76) at com.atlassian.confluence.extra.jira.StreamableJiraIssuesMacro.marshallMacroInBackground(StreamableJiraIssuesMacro.java:243) at com.atlassian.confluence.extra.jira.StreamableJiraIssuesMacro.executeToStream(StreamableJiraIssuesMacro.java:109) at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.executeMacro(ViewMacroMarshaller.java:224) at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshalInternal(ViewMacroMarshaller.java:152) at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.lambda$marshal$0(ViewMacroMarshaller.java:111) at com.atlassian.confluence.impl.content.render.xhtml.analytics.MetricsCollectingMarshaller.marshal(MetricsCollectingMarshaller.java:50) at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshal(ViewMacroMarshaller.java:116) at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshal(ViewMacroMarshaller.java:51) at com.atlassian.confluence.content.render.xhtml.UnmarshalMarshalFragmentTransformer.transform(UnmarshalMarshalFragmentTransformer.java:29) at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transformFragment(DefaultFragmentTransformer.java:146) at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transform(DefaultFragmentTransformer.java:128) at com.atlassian.confluence.content.render.xhtml.storage.StorageXhtmlTransformer.transform(StorageXhtmlTransformer.java:41) at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:33) at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:33) ... ... "tenantId":"1af07e44-6eea-4691-8cae-33c0bcb2552e" "location":{"class":"com.atlassian.confluence.extra.jira.helper.JiraExceptionHelper","method":"throwMacroExecutionException","line":"124"} "referer":"https://anarchinstance.atlassian.net/wiki/spaces/AMS/pages/327685/JIRA+Issue+macro" "userName":"rodrigo.becker@e-core.com" "url":"/wiki/rest/api/contentbody/convert/export_view"
Notes
Sometimes when you first load the Customer Portal or Confluence page, the issues will show, but if you click on the 'Refresh' button of the macro, the error will be thrown.
Workaround
- No workaround available.
Attachments
Issue Links
- is related to
-
CONFCLOUD-59990 Allow Customers/Non-Licensed Users to See Tickets/Macros in Confluence
- Gathering Interest