arnoudkooi / sn-scriptsync

Use sn-scriptsync in combination with SN Utils to be able to code in VS Code, including all benefits of a full fledged code editor
https://marketplace.visualstudio.com/items?itemName=arnoudkooicom.sn-scriptsync
Other
43 stars 28 forks source link

SP_NG_Template - ACL Error #82

Closed NeuraalLabs closed 1 year ago

NeuraalLabs commented 1 year ago

When you sync a widget with NG-Templates, upon saving a ng-template from the sp_ng_template sub-folder you get an ACL error. If you sync the NG-Template individually it saves correctly. Widget and Templates are in the same scope.

VSCode Version: 2.7.3 SN Utils (On Prim): 7.0.8.0

arnoudkooi commented 1 year ago

Do you experience the issue when you switch the instance to the scope of the Widget?

NeuraalLabs commented 1 year ago

Yes, sorry I assumed that was implied - Instance is the same scope of the widget. I can save HTML/SCSS/Server/Link/Option/Demo data artifacts no problem. When saving NG-Templates from the sp_ng_template sub folder when syncing from the widget editor (which they are the same scope of the widget) I receive an ACL error - if I sync each NG-Template by browsing to the record and clicking the floppy icon they save correctl - just not from the sub folder.

arnoudkooi commented 1 year ago

To be sure is the application picker in your Instance pointing to the matching scope? My guess is the scope sys_id is not being added to the request for this edge case.

I'm working on a big change where this will also work differently. Please use the workaround so long, as I won't update the current 2.x version if you still experience issues after the 3.0 update, let me know