Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bug in http aggregation #642

@klag

Description

@klag

Bug in http aggregation
If you run the following server `jolie -s test test.ol' and you try to access testFr operation from a web browser (e.g. chrome) the result is empy. If you perform the call from a specific http client (e.g. postman) it works.



interface frontendInterface {
   RequestResponse:
       testFr( void )( undefined )
}

service frontend {

execution: concurrent
   inputPort Frontend {
       location: "local"
       protocol: sodep
       interfaces: frontendInterface
   }

   main {
       testFr( request )( response ) {
           response.a.b.c = "hello"
       }
   }
}


interface testInterface {
   RequestResponse:
       test 
}

service test {

   execution: concurrent

   embed frontend as fe

   inputPort HTTP {
       location: "socket://localhost:55555"
       protocol: http {
           debug = true
           debug.showContent = true
       }
       interfaces:  testInterface
       aggregates: fe
   }

   main {
       test( request )( response ) {
          nullProcess
       }
   }
}

Metadata

Metadata

Labels

bugpriorityUrgent or high-priority issues (blockers for an upcoming release, needed hotfixes, etc.)

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions