Topic
  • 2 replies
  • Latest Post - ‏2013-02-07T16:10:31Z by msmps
msmps
msmps
193 Posts

Pinned topic Dep. policy

‏2013-02-07T15:05:36Z |
I have a uri like this for local endpointuri and remote endpoint uri in follwoing format

in all environments :

/websrv/dep2/ERTSWSDispatcher?action=SubmitCase&version=6.2.0.0

But in Prod there is no dep2:

/websrv/ERTSWSDispatcher?action=SubmitCase&version=6.2.0.0
I tried the following in dep. policy as

<ModifiedConfig>
<Match>*/*/wsm/wsm-endpointrewrite?Name=ERTSWSP&Property=WSEndpointRemoteRewriteRule/RemoteEndpointURI&Value=/websrv/dep2/ERTSWSDispatcher?action=SubmitCase&amp;version=6.2.0.0</Match> <Type>change</Type> <Property/> <Value>/websrv/ERTSWSDispatcher?action=SubmitCase&amp;version=6.2.0.0</Value></ModifiedConfig> <ModifiedConfig> <Match>*/*/wsm/wsm-endpointrewrite?Name=ERTSWSP&Property=WSEndpointLocalRewriteRule/LocalEndpointURI&Value=/websrv/dep2/ERTSWSDispatcher?action=SubmitCase&amp;version=6.2.0.0</Match>
<Type>change</Type>
<Property/>
<Value>/websrv/ERTSWSDispatcher?action=SubmitCase&amp;version=6.2.0.0</Value></ModifiedConfig>


I'm suspecting because of = in uri, deployment policy is not able to read properly. Let me know how to change the uri with dep. policy
Updated on 2014-03-25T02:40:54Z at 2014-03-25T02:40:54Z by iron-man
  • Liv2luv
    Liv2luv
    573 Posts

    Re: Dep. policy

    ‏2013-02-07T15:40:17Z  
    The URL contains a regular expression meta character ? (question mark), which may be causing the deployment policy not to work as expected, and therefore needs to be escaped.

    Another clean way is to encode the URL and get rid of meta character escaping:

    plain url: /websrv/dep2/ERTSWSDispatcher?action=SubmitCase&version=6.2.0.0
    url encoded: %2Fwebsrv%2Fdep2%2FERTSWSDispatcher%3Faction%3DSubmitCase%26version%3D6.2.0.0
  • msmps
    msmps
    193 Posts

    Re: Dep. policy

    ‏2013-02-07T16:10:31Z  
    • Liv2luv
    • ‏2013-02-07T15:40:17Z
    The URL contains a regular expression meta character ? (question mark), which may be causing the deployment policy not to work as expected, and therefore needs to be escaped.

    Another clean way is to encode the URL and get rid of meta character escaping:

    plain url: /websrv/dep2/ERTSWSDispatcher?action=SubmitCase&version=6.2.0.0
    url encoded: %2Fwebsrv%2Fdep2%2FERTSWSDispatcher%3Faction%3DSubmitCase%26version%3D6.2.0.0
    tried by keeping the encoding ones in dep. policy
    but no effect