AssetEntryQuery returns empty results for the className User
Peter Schwarcz
更新
Issue
We found that AssetEntryQuery always returns an empty result when the className is set to "User". Is this an intended behavior?
In order to replicate, change "xxxxx" to a valid userId and run the following groovy script. Note the userAssetEntry value will be set but the userAssetEntries will be an empty list.
User Assets are by default not visible, so if you wish to query them through AssetEntryQuery, you'd need to add assetEntryQuery.setVisible(false) to the script before executing the AssetEntryLocalServiceUtil.getEntries. Adding this should result in userAssetEntries no longer being an empty list.