Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
karelkryda opened this issue May 21, 2024 · 1 comment
Open

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

karelkryda opened this issue May 21, 2024 · 1 comment

Comments

@karelkryda
Copy link

karelkryda commented May 21, 2024

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:

File fileSpec = new File(payloadFileSpec);
if (!fileSpec.exists()) {
log.warn(String.format("'%s' does not exists.", fileSpec.getAbsolutePath()));
} else if (fileSpec.isDirectory()) {

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
Copy link
Member

@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.

@aaron-kumar aaron-kumar moved this to Q2 2024 - April - June in Oxalis Public Roadmap May 22, 2024
@aaron-kumar aaron-kumar moved this from Q2 2024 - April - June to Future in Oxalis Public Roadmap May 22, 2024
@aaron-kumar aaron-kumar added this to the Future milestone May 24, 2024
@aaron-kumar aaron-kumar moved this from Future to Q2 2024 - April - June in Oxalis Public Roadmap Jun 11, 2024
@aaron-kumar aaron-kumar modified the milestones: Future, 7.x.x Nov 22, 2024
@aaron-kumar aaron-kumar moved this from Q1 2025 – January-March to Q2 2025 - April - June in Oxalis Public Roadmap Feb 1, 2025
@aaron-kumar aaron-kumar modified the milestones: 7.x.x, NG and 7.x.x. Feb 1, 2025
@aaron-kumar aaron-kumar moved this from Q2 2025 - April - June to Future in Oxalis Public Roadmap Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Future
Development

No branches or pull requests

2 participants