wmo-im / wis2box

WIS2 in a box is a reference implementation of a WMO WIS2 Node
https://docs.wis2box.wis.wmo.int
Apache License 2.0
40 stars 16 forks source link

Publishing CAP warnings from filenames with multiple dots is handled incorrectly #789

Open nimhbg opened 1 month ago

nimhbg commented 1 month ago

It is assumed here that the filename uploaded to the wis2box-incoming bucket contains a single dot. But that may not and does not have to be the case.

Example:

  1. Upload a CAP warning file named foo.bar1.xml to wis2box-incoming bucket.
  2. This will result in a file named foo.xml in the wis2box-public bucket when the workflow is executed by the wis2box-management container.
  3. Upload another different CAP warning file named foo.bar2.xml to wis2box-incoming.
  4. This will result in the same file foo.xml in wis2box-public and so the first CAP warning file will be overwritten and lost.