Problem accessing uploaded file via access_token - /app/rest/v2/files/

I have the following file:

When I try to access it via access_token like the following:
http://localhost:8080/app/rest/v2/files/3a988bb5-c0f6-4cfa-88e9-eda9f75ec991?access_token=4e8fbddf-3194-4cad-9881-dcf15d340030
I am getting an error that the file not found:

The token is valid and the user has permissions to access and read FileDescriptor

Thanks

If I run this in the test, I do get result:

String id="3a988bb5-c0f6-4cfa-88e9-eda9f75ec991";
ExtFileDescriptor file = dataManager.load(ExtFileDescriptor.class).id(UUID.fromString(id)).one();

This also work in test:

    LoadContext<FileDescriptor> ctx = LoadContext.create(FileDescriptor.class).setId(id);
    FileDescriptor fd = dataService.load(ctx);

REST is enabled for the user…
Why am I getting “file not found”?

Any Idea what is going on?

Thanks

Hello @avi.fatal

What version of CUBA do you use? Could you clarify, whether this file is available on “External Files” screen or not?

I’ve tried to reproduce the issue, but everything is ok:

image

The problem is reproduced for all files or just for this one?

Regards,
Daniil