com.atlassian.jira.workflow.WorkflowException: com.opensymphony.workflow.InvalidWorkflowDescriptorException: org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.

Atlassian JIRA | Keith Brophy | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    If an '&' is entered into a workflow transition description, JIRA breaks with an error: {noformat} com.atlassian.jira.workflow.WorkflowException: com.opensymphony.workflow.InvalidWorkflowDescriptorException: org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference. com.atlassian.jira.workflow.WorkflowException: com.opensymphony.workflow.InvalidWorkflowDescriptorException: org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference. at com.atlassian.jira.workflow.OSWorkflowManager.createWorkflow(OSWorkflowManager.java:264) at com.atlassian.jira.workflow.OSWorkflowManager.saveWorkflow(OSWorkflowManager.java:270) at com.atlassian.jira.workflow.ConfigurableJiraWorkflow.store(ConfigurableJiraWorkflow.java:69) at com.atlassian.jira.web.action.admin.workflow.AddWorkflowTransition.doExecute(AddWorkflowTransition.java:107) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:58) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:185) ... {noformat} (stacktrace from 3.6.2). However, the description is stored in the workflow, and isn't properly escaped (&amp;). This means that when the workflow XML is requested, it is invalid. Firefox and IE will complain if asked to render it: {noformat} XML Parsing Error: not well-formed Location: http://localhost:8080/secure/admin/workflows/ViewWorkflowXml.jspa?workflowName=Copy+of+jira Line Number 287, Column 46: <meta name="jira.description">foo & bar</meta> ---------------------------------------------^ {noformat}

    Atlassian JIRA | 1 decade ago | Keith Brophy
    com.atlassian.jira.workflow.WorkflowException: com.opensymphony.workflow.InvalidWorkflowDescriptorException: org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.
  2. 0

    If an '&' is entered into a workflow transition description, JIRA breaks with an error: {noformat} com.atlassian.jira.workflow.WorkflowException: com.opensymphony.workflow.InvalidWorkflowDescriptorException: org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference. com.atlassian.jira.workflow.WorkflowException: com.opensymphony.workflow.InvalidWorkflowDescriptorException: org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference. at com.atlassian.jira.workflow.OSWorkflowManager.createWorkflow(OSWorkflowManager.java:264) at com.atlassian.jira.workflow.OSWorkflowManager.saveWorkflow(OSWorkflowManager.java:270) at com.atlassian.jira.workflow.ConfigurableJiraWorkflow.store(ConfigurableJiraWorkflow.java:69) at com.atlassian.jira.web.action.admin.workflow.AddWorkflowTransition.doExecute(AddWorkflowTransition.java:107) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:58) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:185) ... {noformat} (stacktrace from 3.6.2). However, the description is stored in the workflow, and isn't properly escaped (&amp;). This means that when the workflow XML is requested, it is invalid. Firefox and IE will complain if asked to render it: {noformat} XML Parsing Error: not well-formed Location: http://localhost:8080/secure/admin/workflows/ViewWorkflowXml.jspa?workflowName=Copy+of+jira Line Number 287, Column 46: <meta name="jira.description">foo & bar</meta> ---------------------------------------------^ {noformat}

    Atlassian JIRA | 1 decade ago | Keith Brophy
    com.atlassian.jira.workflow.WorkflowException: com.opensymphony.workflow.InvalidWorkflowDescriptorException: org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.

    Root Cause Analysis

    1. com.atlassian.jira.workflow.WorkflowException

      com.opensymphony.workflow.InvalidWorkflowDescriptorException: org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.

      at com.atlassian.jira.workflow.OSWorkflowManager.createWorkflow()
    2. com.atlassian.jira
      AddWorkflowTransition.doExecute
      1. com.atlassian.jira.workflow.OSWorkflowManager.createWorkflow(OSWorkflowManager.java:264)
      2. com.atlassian.jira.workflow.OSWorkflowManager.saveWorkflow(OSWorkflowManager.java:270)
      3. com.atlassian.jira.workflow.ConfigurableJiraWorkflow.store(ConfigurableJiraWorkflow.java:69)
      4. com.atlassian.jira.web.action.admin.workflow.AddWorkflowTransition.doExecute(AddWorkflowTransition.java:107)
      4 frames
    3. webwork.action
      ActionSupport.execute
      1. webwork.action.ActionSupport.execute(ActionSupport.java:153)
      1 frame
    4. com.atlassian.jira
      JiraActionSupport.execute
      1. com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:58)
      1 frame
    5. webwork.dispatcher
      GenericDispatcher.executeAction
      1. webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132)
      1 frame
    6. com.atlassian.jira
      JiraServletDispatcher.service
      1. com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:185)
      1 frame