OxalisCommunity / oxalis

Oxalis - PEPPOL Access Point open source implementation - Core component
Other
119 stars 89 forks source link

[standalone] Non-existent input file only throws a warning #670

Open karelkryda opened 1 month ago

karelkryda commented 1 month ago

Hi, I would like to report issue with Oxalis standalone component.

In case I provide a path to a file that does not exist or that the process cannot access as -f input parameter to Oxalis standalone, the application finishes its work with RC 0 and only a warning in the log that the input file does not exist. Since the only functionality of this component is sending messages, the application should require at least one valid input file and should crash and return a non-zero return code if this is not the case and no valid input files have been provided. The mentioned code snippet is this: https://github.com/OxalisCommunity/oxalis/blob/7cf1cc269961b271e89b782c54d2dfceb7340b75/oxalis-dist/oxalis-standalone/src/main/java/eu/sendregning/oxalis/Main.java#L292-L295

Would it be possible to change the behavior of the application to take this as a fatal error instead of just a "warning"?

Thanks in advance

Additional information:

Oxalis version: 6.5.0 AS4 plugin version: 6.5.0

aaron-kumar commented 1 month ago

@karelkryda : Thanks for reporting. Oxalis standalone is one of way to send document especially when Oxalis is not integrated with your backend system through Oxalis dependencies and for non-java backend system. For java based backend system, we recommend you to add dependencies to backend connector component. Anyway, we will put this in backlog and will look into once we have bandwidth. As mentioned Oxalis is open source project, so please feel free to contribute.