Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It seems that the farm_asset and log entity types are not accessible via /farm_asset.json and /log.json paths. It should show all the entities in JSON format. Likewise, the *.xml variants also don't work. Notably they do work for core Drupal entity types, however, so perhaps it is just a missing configuration.
Comments
Comment #2
m.stentaAlso notably: individual logs and assets work.
/log/1.json
and/farm_asset/1.json
both work fine.Comment #3
m.stentaI traced this to the fact that both the farm_asset_access() and log_access() functions we based off of the node_access() function, which denies access if no entity is passed in for access checking. However, the entity module overrides node's access callback with it's own, that does provide that functionality, and delegates to node_access() for everything else.
I am pushing two slight tweaks to the farm_asset and log modules to fix this.
Comment #4
m.stentahttp://cgit.drupalcode.org/log/commit/?id=a299659
http://cgit.drupalcode.org/farm_asset/commit/?id=a66f115