Jmix Flow UI Image Display Issue

Hello,

I’m having trouble displaying a user profile image in Jmix 2.7 Flow UI, even though the data and security permissions appear to be configured correctly. The image shows a “broken image icon” or “image unavailable icon.”

1. The Environment and Data

  • Jmix Version: 2.7 (Flow UI).
  • Entity: User with a property user_image.
  • Data in DB: The user_image attribute is correctly populated with a valid FileRef string: fs://2025/11/08/3bd01f22-1be5-84a6-9c2c-7d2f511b13da.jpg?name=admin-icon-vector.jpg
  • User: The accessing user has the system-full-access role.

2. View XML Configuration

The view uses an instanceContainer and correctly links the component:

`XML






    <formLayout id="form" dataContainer="userDc">
        </formLayout>
</layout>

`

3. Security Role Configuration (FullAccessRole.java)

I’ve ensured the FullAccessRole grants all necessary attribute and specific permissions:

`Java@ResourceRole(name = “Full Access”, code = FullAccessRole.CODE)
public interface FullAccessRole {

String CODE = "system-full-access";

@EntityPolicy(entityName = "*", actions = {EntityPolicyAction.ALL})

// Explicitly granting VIEW permission for all attributes
@EntityAttributePolicy(entityName = "*", attributes = "*", action = EntityAttributePolicyAction.VIEW)
@EntityAttributePolicy(entityName = "*", attributes = "*", action = EntityAttributePolicyAction.MODIFY)

@ViewPolicy(viewIds = "*")
@MenuPolicy(menuIds = "*")

// Explicitly granting File Storage Read access
@SpecificPolicy(resources = {"*", "jmix.security.canReadStoredFiles"}) 
void fullAccess();

}`

4. Observed Behavior

  • No “Unable to load container” warnings are present in the logs.
  • No “Denied access” warnings are present in the logs (Attribute or Entity access).
  • The component is rendered in the UI, but it displays the standard broken image icon.

Question: Given that the FileRef is valid in the database and the user has full access (including jmix.security.canReadStoredFiles), what could be preventing the Image component from resolving and fetching the resource URL for the fs:// reference? Are there any known issues with FileStorageResourceProvider or required Bean configurations in Jmix 2.7 that might interfere?

Hi,

I’ve checked your case. The Image component works as expected with the FileRef type. The only assumption I have is that the file is physically missing. For example, if you removed the .jmix/work directory or copied the project to another PC that has no content of the local file storage.

Regards,
Gleb