Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-4651

Proxy have some problems with POST,PUT requests when passing xml data in body

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.5.0
    • ambari-agent
    • None

    Description

      For example trying to pass such xml:

      <?xml version="1.0"?>
      <cluster colo="default" description="" name="mycluster" xmlns="uri:falcon:cluster:0.1"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">    
          <interfaces>
              <interface type="readonly" endpoint="hftp://c6401.ambari.apache.org:50070" version="2.2.0.2.0.6.0-76" />
      
              <interface type="write" endpoint="hdfs://c6401.ambari.apache.org:8020" version="2.2.0.2.0.6.0-76" />
      
              <interface type="execute" endpoint="c6401.ambari.apache.org:8050" version="2.2.0.2.0.6.0-76" />
      
              <interface type="workflow" endpoint="http://c6401.ambari.apache.org:11000/oozie" version="3.1.4" />
      
              <interface type="messaging" endpoint="tcp://c6401.ambari.apache.org:61616?daemon=true" version="5.1.6" />
          </interfaces>
      
          <locations>
              <location name="staging" path="/projects/falcon/staging" />
              <location name="temp" path="/tmp" />
              <location name="working" path="/projects/falcon/working" />
          </locations>
      </cluster>
      

      I think that problem can be in escaping of " by \".

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            vbrodetskyi Vitaly Brodetskyi Assign to me
            vbrodetskyi Vitaly Brodetskyi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment