Camel
  1. Camel
  2. CAMEL-1609

Content type for HTTP not being send in header

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.0, 2.0-M1
    • Fix Version/s: 1.6.1, 2.0-M2
    • Component/s: camel-http
    • Labels:
      None
    • Environment:

      MAC OSX (Leapord), Eclipse 3.4, TomCat 6

      Description

      I use the following route:

      final String spurl = protocols.get(0).getEpUrl();
      cc.addRoutes(new RouteBuilder()
      {
      public void configure()

      { from("direct:say") .setHeader(HttpConstants.HTTP_CONTENT_TYPE, constant("application/octet-stream")) .to(spurl); }

      });

      where "spurl" is the servlet URL endpoint. The messages are being sent to the servlet, but the content type in the "doPost(...)" is null.

        Activity

        Frank V. Castellucci created issue -
        Hide
        Claus Ibsen added a comment -

        This bug should also exist in Camel 1.6.0. It has been reported in FUSE MR 1.6.0.

        Willem is looking into it.

        Show
        Claus Ibsen added a comment - This bug should also exist in Camel 1.6.0. It has been reported in FUSE MR 1.6.0. Willem is looking into it.
        Claus Ibsen made changes -
        Field Original Value New Value
        Assignee Willem Jiang [ njiang ]
        Affects Version/s 1.6.0 [ 11991 ]
        Fix Version/s 1.6.1 [ 11995 ]
        Fix Version/s 2.0.0 [ 11900 ]
        Hide
        Claus Ibsen added a comment -

        BTW a workaround is creating your own http header filter stategy and define it on the http component.

        See the camel http wiki page, the advanced section how to overload the http component and configure it in Spring XML (for instance)

        Show
        Claus Ibsen added a comment - BTW a workaround is creating your own http header filter stategy and define it on the http component. See the camel http wiki page, the advanced section how to overload the http component and configure it in Spring XML (for instance)
        Willem Ning Jiang <ningjiang@apache.org> committed e94fefb06fd1eeedb8d9be09fdf9fb9ba333fd37 (2 files)
        Willem Ning Jiang <ningjiang@apache.org> committed c15a778c1a2c05762084c11bf96e43fd022dd55e (2 files)
        Reviews: none

        Merged revisions 774383 via svnmerge from https://svn.apache.org/repos/asf/camel/trunk
        ........
          r774383 | ningjiang | 2009-05-13 22:31:49 +0800 (Wed, 13 May 2009) | 1 line
          
          CAMEL-1609 fixed the issue of Content type for HTTP not being sent in header
        ........


        git-svn-id: https://svn.apache.org/repos/asf/camel/branches/camel-1.x@774394 13f79535-47bb-0310-9956-ffa450edef68

        ningjiang committed 774394 (3 files)
        Reviews: none

        Merged revisions 774383 via svnmerge from
        https://svn.apache.org/repos/asf/camel/trunk

        ........
          r774383 | ningjiang | 2009-05-13 22:31:49 +0800 (Wed, 13 May 2009) | 1 line
          
          CAMEL-1609 fixed the issue of Content type for HTTP not being sent in header
        ........

        Show
        Willem Jiang added a comment - trunk http://svn.apache.org/viewvc?rev=774383&view=rev camel-1.x http://svn.apache.org/viewvc?rev=774394&view=rev
        Willem Jiang made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Willem Ning Jiang <ningjiang@apache.org> committed 5042cc0d7e4fdb564e91227160817982c22cc76a (1 file)
        Reviews: none

        CAMEL-1609 removed the duplicated code from HttpMessage
        git-svn-id: https://svn.apache.org/repos/asf/camel/trunk@774659 13f79535-47bb-0310-9956-ffa450edef68

        ningjiang committed 774659 (1 file)
        Willem Ning Jiang <ningjiang@apache.org> committed 4e0602251d3464ebc064b8e405ac08b3d7989fbc (1 file)
        ningjiang committed 774669 (1 file)
        Willem Ning Jiang <ningjiang@apache.org> committed 58bcd6f4f709dedf6fd0ab8fc258651cd858a225 (6 files)
        Reviews: none

        Merged revisions 774658-774659 via svnmerge from https://svn.apache.org/repos/asf/camel/trunk
        ........
          r774658 | ningjiang | 2009-05-14 14:46:16 +0800 (Thu, 14 May 2009) | 1 line
          
          CAMEL-1609 Better fixing the issue of Content type setting for HTTP producer
        ........
          r774659 | ningjiang | 2009-05-14 14:53:45 +0800 (Thu, 14 May 2009) | 1 line
          
          CAMEL-1609 removed the duplicated code from HttpMessage
        ........


        git-svn-id: https://svn.apache.org/repos/asf/camel/branches/camel-1.x@774672 13f79535-47bb-0310-9956-ffa450edef68

        Hide
        Willem Jiang added a comment -
        Show
        Willem Jiang added a comment - Did some enhancement trunk http://svn.apache.org/viewvc?rev=774658&view=rev camel-1.x (camel 1.6.2) http://svn.apache.org/viewvc?rev=774672&view=rev
        Hadrian Zbarcea made changes -
        Fix Version/s 2.0-M2 [ 12120 ]
        Fix Version/s 2.0.0 [ 11900 ]
        Hide
        Claus Ibsen added a comment -

        Closing all 2.0M2 tickets

        Show
        Claus Ibsen added a comment - Closing all 2.0M2 tickets
        Claus Ibsen made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Jeff Turner made changes -
        Project Import Sat Nov 27 00:14:50 EST 2010 [ 1290834890113 ]

          People

          • Assignee:
            Willem Jiang
            Reporter:
            Frank V. Castellucci
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development