Skip to content

local memory storage publicURL and filename mismatch #66

@j12y

Description

@j12y

I'm going to put this in as an issue based on our email thread and what I think might be happening.

We have a content service running with in-memory storage rather than remote cloud files storage.

A call to GET /assets returns a dictionary of items such as...

{
'src_path_img_filename_ext': '/__local_asset__/filename_random_string.ext'
...
}

The problem is GET /__local_asset__/filename_random_string.ext is not found and returns a ResourceNotFound error.

It looks like in src/storage/memory.js assetURLPrefix is prepended to form the publicURL.

A request to GET /assets/filename_random_string.ext does return the expected asset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions