JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-5718

HTTP throwing "Property "cookieSpec" has an incorrect or unsupported value "rfc2109"" error while the schema admits this value

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 3.1.2
  • Fix Version/s: 3.1.3 (EE only), 3.2.0
  • Component/s: Schema
  • Labels:
    None
  • User impact:
    High
  • Similar Issues:
    None

Description

This is a bug that Matias found when testing Mule Studio (http://www.mulesoft.org/jira/browse/STUDIO-413). We wanted to determine if this was caused by Mule Studio bug or a Mule bug. Because of that we created an application and ran it in mule-standalone-3.1.2 but it threw the same error so this is a Mule problem.

This problem is definitely impacting Mule Studio.

The thing is that the schema admits the cookie spec rfc2109 value, this is the schema part from mule-http.xsd:

<xsd:complexType name="httpConnectorType">
<xsd:complexContent>
<xsd:extension base="tcp:noProtocolTcpConnectorType">
<xsd:attribute name="cookieSpec">
<xsd:annotation>
<xsd:documentation>
The cookie specification to be used by this connector when cookies are enabled.
</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="netscape"/>
<xsd:enumeration value="rfc2109"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>

This is the flow configuration:

<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/3.1/mule-http.xsd 
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.1/mule.xsd ">
    <http:connector name="MyHTTP" proxyHostname="localhost" proxyPort="80" cookieSpec="rfc2109" enableCookies="false" createMultipleTransactedReceivers="false" numberOfConcurrentTransactedReceivers="0" dynamicNotification="false" validateConnections="true" sendBufferSize="0" receiveBufferSize="0" receiveBacklog="0" sendTcpNoDelay="false" reuseAddress="false" keepSendSocketOpen="false" keepAlive="false" clientSoTimeout="10000" serverSoTimeout="10000" socketSoLinger="0" doc:name="HTTP" doc:description="This connector provides Secure HTTP connectivity on top of what is already provided with the Mule [HTTP Transport]."/>
    <flow name="flows1Flow1">
        <http:inbound-endpoint host="localhost" port="8090" keep-alive="false" responseTimeout="10000" encoding="UTF-8" disableTransportTransformer="false" exchange-pattern="request-response" connector-ref="MyHTTP" doc:name="HTTP" doc:description="The HTTPS endpoint allows Mule to send and recieve requests securely using HTTP over SSL protocol."/>
        <echo-component doc:name="Echo" doc:description="Echoes message payload."/>
    </flow>
</mule>

This is the error that we get:

INFO  2011-08-10 17:35:36,872 [WrapperListener_start_runner] org.mule.module.launcher.DefaultMuleDeployer: Exploding a Mule application archive: file:/Users/eugenia/java/mule-standalone-3.1.2/apps/mymuleproject-1.0-SNAPSHOT.zip
INFO  2011-08-10 17:35:36,963 [WrapperListener_start_runner] org.mule.module.launcher.application.DefaultMuleApplication: 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ New app 'default'                                        +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INFO  2011-08-10 17:35:45,391 [WrapperListener_start_runner] org.mule.module.launcher.DeploymentService: 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Started app 'default'                                    +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INFO  2011-08-10 17:35:45,392 [WrapperListener_start_runner] org.mule.module.launcher.application.DefaultMuleApplication: 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ New app 'mymuleproject-1.0-SNAPSHOT'                     +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ERROR 2011-08-10 17:35:48,103 [WrapperListener_start_runner] org.mule.module.launcher.DeploymentService: 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Failed to deploy app 'mymuleproject-1.0-SNAPSHOT', see   +
+ below                                                    +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ERROR 2011-08-10 17:35:48,103 [WrapperListener_start_runner] org.mule.module.launcher.DeploymentService: org.mule.module.launcher.DeploymentInitException: PropertyBatchUpdateException: Failed properties: Property 'cookieSpec' threw exception; nested exception is java.lang.IllegalArgumentException: Property "cookieSpec" has an incorrect or unsupported value "rfc2109"
INFO  2011-08-10 17:35:48,105 [WrapperListener_start_runner] org.mule.module.launcher.StartupSummaryDeploymentListener: 

**********************************************************************
*            - - + APPLICATION + - -            * - - + STATUS + - - *
**********************************************************************
* default                                       * DEPLOYED           *
* mymuleproject-1.0-SNAPSHOT                    * FAILED             *
**********************************************************************

INFO  2011-08-10 17:35:48,117 [WrapperListener_start_runner] org.mule.module.launcher.DeploymentService: 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Mule is up and kicking (every 5000ms)                    +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds

People

  • Assignee:
    Evangelina Martinez Ruiz Moreno
    Reporter:
    María Eugenia Aldinio
Vote (0)
Watch (0)

Dates

  • Created:
    10/Aug/11 03:55 PM
    Updated:
    19/Aug/11 12:59 PM
    Resolved:
    19/Aug/11 12:59 PM

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.