You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SEC012 conflates a microflow with a snippet of the same name #2004
When a module has a microflow and a snippet with the same qualified name, mxcli treats a reference to the microflow as a reference to the snippet. SEC012 (ReachablePageNotReadable) then reports errors that mxbuild does not: mx check reports 0 errors, Studio Pro shows none, but mxcli lint reports 14 SEC012 errors (CE2729 "No read access to attribute …").
Setup
Module Lib (a Marketplace module) has
microflow Lib.Overview (execute granted only to Lib.Runner), which does show page App.OverviewForm
snippet Lib.Overview, which contains snippet App.SNIP_Timeline
App.SNIP_Timeline shows attributes of Lib.Activity, readable only by Lib.Runner
Page App.OverviewForm uses snippet Lib.Overview; view is granted only to App.Runner
User role Tester has Lib.Runner and App.Runner; user roles Administrator, User, Guest have neither
Navigation has a menu item that calls microflow Lib.Overview
Actual
mxcli -p App.mpr -c "SHOW REFERENCES TO Lib.Overview"
lists the menu item (NAVIGATION … menu_item) as a reference to the snippet, next to the page that really uses it.
mxcli lint reports, for every attribute the snippet shows:
✗ snippet App.SNIP_Timeline shows Lib.Activity.Name, which user roles 'Administrator', 'Guest', 'User' can reach but may not read on Lib.Activity — mxbuild reports CE2729 … [SEC012]
The roles listed are exactly the roles without Lib.Runner. They cannot open App.OverviewForm and cannot execute microflow Lib.Overview, so they cannot reach the snippet.
Expected
A menu item that calls a microflow is resolved to that microflow, not to a snippet with the same name.
SEC012 reports nothing here, in line with mx check.
Workaround
None in the model short of renaming one of the two documents (not possible here, as the module is a Marketplace module).
Activity