I have deployed dspace backend 7.6.1, I have requirement to upload multiple items on particular collections. I got SAF can help on this and in module/additions I have added RabbitMq related code.
sharing those details, whatever data FeedIngestionService(Node service) has send through rabbitmq, it should be consumed by dspace backend code (module/additions), here I have custom code for rabbitmq consume part, this code will prepare SAF data,let's says this is my root folder on s3 i.e. Feeds folder, inside this all items with metadata.json and with assets (image/video) will be present. I will iterate all folder and read only metadata.json to prepare dublin_core, license and metadata_dspace from metadata.json file and after preparation these files I will upload at same location of that item for which currently I am processing.
Let say Feeds folder contains two items item001, item002, Dspace will get item001, item002 and will prepare dublin_core, license and metadata_dspace from metadata.json file and will upload at item001, item002 respectively. Once everything done, I have to zip item001, item002 into zipped file name is : saf.zip and then dspace will use this saf.zip file through it's s3 path during import.
assets may large in size but those were not available on dspace, from somehwere we will get in s3 folder and when we will upload on dspace and it will store in another s3 folder.
I am able to consume messages but facing issue related to csrf token, before login not sure why it is expecting csrf token. I need your help to resolve my issues, if I have :
1. to call /import will only this url needed or we need more api to call before /import?
2. to fix the order i.e. first
/csrf -> /login -> /import or something else, if csrf is mandatory then how I can call it, since I am getting below issues:
2026-03-18 17:55:17,996 WARN unknown 99803b2b-14cd-42d0-998c-39ad2046c088 org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @ An exception has occurred (status:404 exception: The repository type csrf.token was not found at: org.dspace.app.rest.utils.Utils.getResourceRepositoryByCategoryAndModel(Utils.java:288))
2026-03-18 17:55:18,118 ERROR unknown unknown org.app.dspace.rabbitmq.DspaceRestScriptsClient @ [HTTP] GET
http://localhost:8080/server/api/csrf/tokens -> 404: {"timestamp":"2026-03-18T12:25:18.017+00:00","status":404,"error":"Not Found","message":"An exception has occurred","path":"/server/api/csrf/tokens"}
2026-03-18 17:55:18,128 INFO unknown 91c351c1-3766-4561-8d53-779c47d35cba org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request [GET /server/] originated from unknown
Please help me on this.