Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-4837

Using cxfrs client (version Apache CXF 3.0.4.redhat-620133) header `Content-Type` is modified to */* .

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-fuse-6.3
    • jboss-fuse-6.2, jboss-fuse-6.2.1
    • CXF
    • None
    • % %
    • Hide
      • Extract zip file cxfRs_simple_reproducer.zip
      • Deploy it in Red Hat JBoss Fuse 6.2.1 using below command
        osgi:install -s mvn:com.mycompany.example/jaxrsExampleService/1.0.0-SNAPSHOT
        
      • Once deployed there is a simple TestClient java program within src/test/java. Execute it.
      • Trace network dumps using wireshark.
      Show
      Extract zip file cxfRs_simple_reproducer.zip Deploy it in Red Hat JBoss Fuse 6.2.1 using below command osgi:install -s mvn:com.mycompany.example/jaxrsExampleService/1.0.0-SNAPSHOT Once deployed there is a simple TestClient java program within src/test/java. Execute it. Trace network dumps using wireshark.
    • 6.3 Sprint 2 (1-Feb - 26-Feb)

      • When a request is made using cxfrs client (version Apache CXF 3.0.4.redhat-620133), it is observed that Content-Type is overriden to / while expected is application/json.
      • I tried to debug code but content-type is set to application/json. Attached screen-shots.
      • Observation with Apache CXF 3.0.4.redhat-620133(JBoss Fuse 6.2.1)
        GET /testREST HTTP/1.1
        Content-Type: */*
        Accept: application/json
        User-Agent: Apache CXF 3.0.4.redhat-620133
        Cache-Control: no-cache
        Pragma: no-cache
        Host: localhost:9000
        Connection: keep-alive
        
        HTTP/1.1 200 OK
        Accept: application/json
        breadcrumbId: ID-cpandey-csb-37661-1453122532780-1-13
        Cache-Control: no-cache
        Content-Type: application/json
        Date: Mon, 18 Jan 2016 14:00:03 GMT
        Host: localhost:9000
        Pragma: no-cache
        User-Agent: Apache CXF 3.0.4.redhat-620133
        Content-Length: 12
        Server: Jetty(8.1.17.v20150415)
        
        Hello ALL...
        
      • Observation with Apache CXF 2.7.0.redhat-610379(JBoss Fuse 6.1.0)
        GET /testREST HTTP/1.1
        Content-Type: application/json
        Accept: application/json
        User-Agent: Apache CXF 2.7.0.redhat-610379
        Cache-Control: no-cache
        Pragma: no-cache
        Host: localhost:9000
        Connection: keep-alive
        
        HTTP/1.1 200 OK
        Accept: application/json
        breadcrumbId: ID-cpandey-csb-45341-1453128743112-2-7
        Cache-Control: no-cache
        Content-Type: application/json
        Date: Mon, 18 Jan 2016 15:17:35 GMT
        Host: localhost:9000
        Pragma: no-cache
        User-Agent: Apache CXF 2.7.0.redhat-610379
        Content-Length: 12
        Server: Jetty(8.1.14.v20131031)
        
        Hello ALL...
        

        1. cxfRs_simple_reproducer.zip
          7 kB
        2. jaxrsExampleService.jar
          12 kB
        3. Selection_547.png
          Selection_547.png
          252 kB
        4. Selection_548.png
          Selection_548.png
          241 kB

            yfang@redhat.com Freeman(Yue) Fang
            rhn-support-cpandey Chandra Shekhar Pandey (Inactive)
            Viliam Kasala Viliam Kasala
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: