Upload file through api (/UI/core/other/fileUpload/) issue

99 views
Skip to first unread message

MERIEM MELLOUS

unread,
Oct 5, 2023, 10:50:12 AM10/5/23
to ZAP User Group
Hello,
I m running zap in a docker container and I am exposing the zap api on port 8090.
 I m trying to upload files through a POST request to the zap api (/UI/core/other/fileUpload/)  but I only get the error {"code":"bad_other","message":"Bad Other"} and I see nothing in the logs that traces the request.
Any help?

Oussama Elkhadda

unread,
Oct 5, 2023, 10:55:16 AM10/5/23
to ZAP User Group
Hello,

Review the logs of your Docker container to see if there are any additional error messages or clues about what might be going wrong.

thc...@gmail.com

unread,
Oct 5, 2023, 10:55:26 AM10/5/23
to zaprox...@googlegroups.com
Hi.

What Docker image are you using?

Best regards.

On 05/10/2023 15:50, 'MERIEM MELLOUS' via ZAP User Group wrote:
> Hello,
> I m running zap in a docker container and I am exposing the zap api on port
> 8090.
> I m trying to upload files through a POST request to the zap api
> (/UI/core/other/fileUpload/) but I only get the error *{"code":"bad_other","message":"Bad
> Other"} *and I see nothing in the logs that traces the request.
> Any help?
>
>

MERIEM MELLOUS

unread,
Oct 5, 2023, 11:04:11 AM10/5/23
to ZAP User Group
I am using softwaresecurityproject/zap-weekly image.

thc...@gmail.com

unread,
Oct 5, 2023, 11:08:39 AM10/5/23
to zaprox...@googlegroups.com
Thanks, just wanted to confirm that you were using the required version.

The endpoint should be:
/OTHER/core/other/fileUpload/

Best regards.

On 05/10/2023 16:04, 'MERIEM MELLOUS' via ZAP User Group wrote:
> I am using *softwaresecurityproject/zap-weekly* image.

MERIEM MELLOUS

unread,
Oct 5, 2023, 11:10:06 AM10/5/23
to ZAP User Group
I ve already checked and nothing out of the ordinary, no errors , nothing suspicious.
Message has been deleted

MERIEM MELLOUS

unread,
Oct 5, 2023, 11:35:27 AM10/5/23
to ZAP User Group
It is in deed( I just mistyped the endpoint here) but im getting the error response while requesting the right endpoint(/OTHER/core/other/fileUpload/).
thank you

thc...@gmail.com

unread,
Oct 5, 2023, 1:44:53 PM10/5/23
to zaprox...@googlegroups.com
Just to confirm, you enabled file transfers? (i.e. -config
api.filexfer=true )

Assuming you did that, start ZAP with:
-config api.incerrordetails=true

and see if you get any details in the error.

If not, enable DEBUG log for:
org.zaproxy.zap.extension.api.API
org.zaproxy.zap.extension.api.CoreAPI

https://www.zaproxy.org/faq/how-do-you-configure-zap-logging/

Best regards.

MERIEM MELLOUS

unread,
Oct 10, 2023, 10:27:50 AM10/10/23
to ZAP User Group
Thank you. My problem is solved.
Best regards 

Reply all
Reply to author
Forward
0 new messages