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
We have been troubleshooting an issue with the ImportDocument connector where it appears that the connector is generating Pending Files with no content (0 size). Upon examining the backend, we noted that the connector is successfully parsing the given files (PDFs, TXTs) and creating the STIX bundles, but the front-end for the Pending Files (dashboard/import/pending/<base64>) is referencing an incorrect URL path i.e <hostname>/storage/view/import... instead of <hostname>/<APP__BASE_PATH>/storage/view... (OpenCTI is running behind a reverse proxy such that the front-end is accessed via the following URL syntax - http://<hostname>/opencti with the APP__BASE_PATH variable). We did note that line 491 in PendingFileContent.js does not seem to be prepending the base path variable to the request and could be a possible cause.
Environment
OS 5.15.65-1-Manjaro Linux (PoC)
OpenCTI version: OpenCTI 5.3.17
OpenCTI client: frontend
Other environment details: APP__BASE_PATH configured as /opencti
Reproducible Steps
Set APP__BASE_PATH to /opencti
Try running the ImportDocument connector on an uploaded file.
Expected Output
The UI for Pending Files should request the generated STIX bundle (JSON file) by taking into account the APP__BASE_PATH for the OpenCTI server (if set).
Actual Output
The generated Pending File entry does not have any of the parsed data listed within the frontend.
This seems to have not made it into the 5.4.0 release. Note also: I can't find the module in the main code base. Importing a Stix document, when APP__BASE_PATH is set, still fails. I think this change belongs in /opencti-platform/opencti-front/src/private/components/common/files/workbench/WorkbenchFileContent.js. I hacked my local copy -- inside the container, and then made a new image from that to fix the problem temporarily.
Description
We have been troubleshooting an issue with the ImportDocument connector where it appears that the connector is generating
Pending Files
with no content (0 size). Upon examining the backend, we noted that the connector is successfully parsing the given files (PDFs, TXTs) and creating the STIX bundles, but the front-end for the Pending Files (dashboard/import/pending/<base64>
) is referencing an incorrect URL path i.e<hostname>/storage/view/import...
instead of<hostname>/<APP__BASE_PATH>/storage/view...
(OpenCTI is running behind a reverse proxy such that the front-end is accessed via the following URL syntax -http://<hostname>/opencti
with theAPP__BASE_PATH
variable). We did note that line 491 inPendingFileContent.js
does not seem to be prepending the base path variable to the request and could be a possible cause.Environment
/opencti
Reproducible Steps
/opencti
Expected Output
The UI for Pending Files should request the generated STIX bundle (JSON file) by taking into account the
APP__BASE_PATH
for the OpenCTI server (if set).Actual Output
The generated
Pending File
entry does not have any of the parsed data listed within the frontend.Additional information
Slack Chat: https://filigran-community.slack.com/archives/CHZC2D38C/p1665599203378459
Video attached to Slack Chat for reference
The text was updated successfully, but these errors were encountered: