Petals BC Filetransfer

A file can not be get as attachment and consumed on another node

Details

  • Description:
    Hide

    With a Petals topology composed of 2 containers:
    1 - if a file is read with operation 'getAsAttachment' or 'mget' by the BC FileTranfer on a container,
    2 - the file as attachment can not be processed by another service on the other container,
    3 - the file as attachment can be correctly processed on a service located on the container where the BC FileTransfer is installed

    The problem is due to the 'DataHandler' used to store the file as attachment. A 'DataHandler' based on a 'FileDataSource' is used. This data source transmits only a reference to the file. And so the file can not be accessed by this reference from another machine where the other Petals container is running.

    We should use an 'ByteArrayDataSource' instead of 'FileDataSource' even if the memory footprint is bigger.

    Show
    With a Petals topology composed of 2 containers: 1 - if a file is read with operation 'getAsAttachment' or 'mget' by the BC FileTranfer on a container, 2 - the file as attachment can not be processed by another service on the other container, 3 - the file as attachment can be correctly processed on a service located on the container where the BC FileTransfer is installed The problem is due to the 'DataHandler' used to store the file as attachment. A 'DataHandler' based on a 'FileDataSource' is used. This data source transmits only a reference to the file. And so the file can not be accessed by this reference from another machine where the other Petals container is running. We should use an 'ByteArrayDataSource' instead of 'FileDataSource' even if the memory footprint is bigger.
  • Environment:
    -

Activity

Christophe DENEUX made changes - Thu, 28 Nov 2019 - 15:00:53 +0100
Field Original Value New Value
Summary A file can not be get as attachment and consume on another node A file can not be get as attachment and consumed on another node
Priority Blocker [ 1 ]
Christophe DENEUX made changes - Thu, 28 Nov 2019 - 15:01:05 +0100
Fix Version/s 5.0.0 [ 10931 ]
Priority Blocker [ 1 ] Major [ 3 ]
Christophe DENEUX made changes - Thu, 28 Nov 2019 - 15:01:38 +0100
Status New [ 10000 ] Open [ 10002 ]
Christophe DENEUX made changes - Thu, 28 Nov 2019 - 15:01:41 +0100
Status Open [ 10002 ] In Progress [ 10003 ]
Hide
Christophe DENEUX added a comment - Thu, 28 Nov 2019 - 18:09:28 +0100

Fixed in branch petals-bc-filetransfer-5.0.x

Show
Christophe DENEUX added a comment - Thu, 28 Nov 2019 - 18:09:28 +0100 Fixed in branch petals-bc-filetransfer-5.0.x
Christophe DENEUX made changes - Thu, 28 Nov 2019 - 18:09:28 +0100
Status In Progress [ 10003 ] Resolved [ 10004 ]
Resolution Fixed [ 1 ]
Hide
Christophe DENEUX added a comment - Thu, 28 Nov 2019 - 18:09:49 +0100

Reopened to be merged in trunk

Show
Christophe DENEUX added a comment - Thu, 28 Nov 2019 - 18:09:49 +0100 Reopened to be merged in trunk
Christophe DENEUX made changes - Thu, 28 Nov 2019 - 18:09:49 +0100
Status Resolved [ 10004 ] Open [ 10002 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Mon, 2 Dec 2019 - 19:51:19 +0100
Status Open [ 10002 ] In Progress [ 10003 ]
Hide
Christophe DENEUX added a comment - Mon, 2 Dec 2019 - 19:51:27 +0100

Merged in trunk

Show
Christophe DENEUX added a comment - Mon, 2 Dec 2019 - 19:51:27 +0100 Merged in trunk
Christophe DENEUX made changes - Mon, 2 Dec 2019 - 19:51:27 +0100
Status In Progress [ 10003 ] Resolved [ 10004 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Mon, 11 Jan 2021 - 10:50:17 +0100
Description With a Petals topology composed of 2 containers:
1 - if a file is read with operation '{{getAsAttachment}}' or '{{meget}}' by the BC FileTranfer on a container,
2 - the file as attachment can not be processed by another service on the other container,
3 - the file as attachment can be correctly processed on a service located on the container where the BC FileTransfer is installed

The problem is due to the '{{DataHandler}}' used to store the file as attachment. A '{{DataHandler}}' based on a '{{FileDataSource}}' is used. This data source transmits only a reference to the file. And so the file can not be accessed by this reference from another machine where the other Petals container is running.

We should use an '{{ByteArrayDataSource}}' instead of '{{FileDataSource}}' even if the memory footprint is bigger.
With a Petals topology composed of 2 containers:
1 - if a file is read with operation '{{getAsAttachment}}' or '{{mget}}' by the BC FileTranfer on a container,
2 - the file as attachment can not be processed by another service on the other container,
3 - the file as attachment can be correctly processed on a service located on the container where the BC FileTransfer is installed

The problem is due to the '{{DataHandler}}' used to store the file as attachment. A '{{DataHandler}}' based on a '{{FileDataSource}}' is used. This data source transmits only a reference to the file. And so the file can not be accessed by this reference from another machine where the other Petals container is running.

We should use an '{{ByteArrayDataSource}}' instead of '{{FileDataSource}}' even if the memory footprint is bigger.
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
2d 3h 43m
1
Christophe DENEUX
Thu, 28 Nov 2019 - 15:01:38 +0100
Open Open In Progress In Progress
3s
1
Christophe DENEUX
Thu, 28 Nov 2019 - 15:01:41 +0100
In Progress In Progress Resolved Resolved
3h 7m
1
Christophe DENEUX
Thu, 28 Nov 2019 - 18:09:28 +0100
Resolved Resolved Open Open
21s
1
Christophe DENEUX
Thu, 28 Nov 2019 - 18:09:49 +0100
Open Open In Progress In Progress
4d 1h 41m
1
Christophe DENEUX
Mon, 2 Dec 2019 - 19:51:19 +0100
In Progress In Progress Resolved Resolved
8s
1
Christophe DENEUX
Mon, 2 Dec 2019 - 19:51:27 +0100



People

Dates

  • Created:
    Tue, 26 Nov 2019 - 11:17:49 +0100
    Updated:
    Mon, 11 Jan 2021 - 10:50:17 +0100
    Resolved:
    Mon, 2 Dec 2019 - 19:51:27 +0100