You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attachment filename should look something like this: opensearch-report-2023-03-31T12-00-51.433Z instead of tmpopensearch-report-2023-03-31T12-00-51.433Z.
What is your host/environment?
N/A
Do you have any screenshots?
See description for observed behavior.
Do you have any additional context?
It appears the following code which defines where to temporarily save the file is being propagated to the email function that attaches the file to the email and incorporating the folder name "tmp" in the value:
What is the bug?
When using the OpenSearch Reporting CLI Lambda function, the filename for email attachments always has "tmp" prepended to the filename.
How can one reproduce the bug?
Follow the instructions here (https://opensearch.org/docs/latest/dashboards/reporting-cli/rep-cli-lambda/).
What is the expected behavior?
Attachment filename should look something like this:
opensearch-report-2023-03-31T12-00-51.433Z
instead oftmpopensearch-report-2023-03-31T12-00-51.433Z
.What is your host/environment?
N/A
Do you have any screenshots?
See description for observed behavior.
Do you have any additional context?
It appears the following code which defines where to temporarily save the file is being propagated to the email function that attaches the file to the email and incorporating the folder name "tmp" in the value:
reporting-cli/src/run.js
Line 13 in 6feb950
reporting-cli/src/email-helpers.js
Line 111 in 6feb950
Potentially easy fix by wrapping the value on line 111 above with path.basename()?
The text was updated successfully, but these errors were encountered: