6 Replies Latest reply on Sep 19, 2014 11:04 AM by gkaiseril

    Security Issue - version XI

    syswizardx Level 1
      if (!IsDocOpened(docConst.HelpFile))
      {
      try
      {
      oDoc = openDataObject(docConst.HelpFile);
      var szFilePath = oDoc.path;

       

      } catch ( e )
      {
      ShowError(e.message + "\c Path was \'" + szFilePath + "\'", 0);
      }

       

      try {
      oDoc = app.openDoc({cPath: szFilePath

      , bHidden: false}); // Security access problem here

       

      } catch (e) {

       

      app.alert('Error in app.openDoc: ' + e.message);
      }

       

      }

       

      I am gettting a security problem when trying to open an attachment. What am I forgetting ?

      Perhaps this must be a folder-level trusted function ?