Skip to content

unable to download pdf #190

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

Open
jambere opened this issue Dec 23, 2024 · 2 comments · May be fixed by #197
Open

unable to download pdf #190

jambere opened this issue Dec 23, 2024 · 2 comments · May be fixed by #197

Comments

@jambere
Copy link

jambere commented Dec 23, 2024

MISP version: 2.5.2
Python version: 3.10

When importing reports, the tool successfully creates report entries in MISP, but the associated PDF files are not downloaded into the /var/www/MISP/app/files/ directory. the MISP event attributes contain links pointing to the CS site.
The pdf can be viewed on the CS portal but on clicking the event attribute within MISP bring to the below

File '/var/www/MISP/app/files/123456/7891011' does not exist. Error: The requested address '/attributes/download/7891011' was not found on this server.

@samitainio
Copy link

samitainio commented Dec 24, 2024

I have noticed the same thing. The current implementation does not follow the MISP definition for the report object. In the report object the report-file attribute is supposed to be an attachment file, i.e. the actual PDF file. If instead the developers want to document the URL to CS site then they should be using the link attribute.

As a fix I would recommend saving the actual PDF file to the report-file attribute and then separately saving the original URL to the link attribute.

@DocArmoryTech
Copy link

Fixed by PR #197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants