Re: Linking Error coused by security.xml, dynamic?

pinEdit

Linking Error coused by security.xml, dynamic?


lpe 01-26-2010, 10:43
Morning.

We're currently in a testingstage of PinEditASP 7.2 before rolling out the update to our sites and has encountered a few problems.

Our environment consists of numerous sites using the same editor as a virtual directory, hence the testing beforehand.
In our testsetup right now we're trying to get a working editor, but we have issues with the file security.xml.
I'm not sure I fully understand the "paths" that needs to be set, since every single site we're using the editor on has an individual "file" catalog, dynamic ie. hence we cannot use a hardcoded path for uploading. Is there a way around this? Somehow specifying this as variable of sorts?

Sidenote, we're having "Filter error" on both adding a link aswell as adding windows media (perhaps just wrong fileending, what is this supposed to be? wmv?)

Best Regards
LP

Re: Linking Error coused by security.xml, dynamic?


lpe 01-26-2010, 11:05
Apparently, adding both flv along with swf did bring the filebrowser up while adding flashmedia, but it does not recognize a test.flv file in that directory, how come?

Re: Linking Error coused by security.xml, dynamic?


Pintexx Support 01-27-2010, 8:21
Hello,

in security.xml you should find those allowe extensions:

limitextension value="pdf;doc;docx;xls;xlsx;ppt;txt;jpg;jpeg;png;gif;xml;html;htm;css;swf;flv;avi;wmv;mov;mp3;mpeg"

To disable the security check try this:
limitpath value="c:"
limitpath value="d:"
limitpath value="e:"
etc.

Did you set
objEditor.DialogFilterLink = "pdf;htm;flv"

to allow the extions for selecting links ?

Regards,
Hans-Peter

Re: Linking Error coused by security.xml, dynamic?


lpe 01-27-2010, 8:44
 Pintexx Support wrote:
Hello, in security.xml you should find those allowe extensions: limitextension value="pdf;doc;docx;xls;xlsx;ppt;txt;jpg;jpeg;png;gif;xml;html;htm;css;swf;flv;avi;wmv;mov;mp3;mpeg" To disable the security check try this: limitpath value="c:" limitpath value="d:" limitpath value="e:" etc. Did you set objEditor.DialogFilterLink = "pdf;htm;flv" to allow the extions for selecting links ? Regards, Hans-Peter


I rather wouldn't skip the whole securityupdate, since I guess that's one of the major differences between the versions, but the "limitpath" should work in a way to lock down the editor to just a certain path - but if I put that to c:/d:/e:/ etc. how come that sorts it out?

Did you set
objEditor.DialogFilterLink = "pdf;htm;flv"


In wich file is this specified? core.js?

Best Regards
LP

Re: Linking Error coused by security.xml, dynamic?


lpe 01-27-2010, 10:53
Did you set
objEditor.DialogFilterLink = "pdf;htm;flv"
In wich file is this specified? core.js?


Forget that, but yes, I've set that up properly.

Re: Linking Error coused by security.xml, dynamic?


Pintexx Support 01-27-2010, 1:27
Hello,

you can specify any path in security.xml.
If you have different sub paths then you need to specify the parent path.

If you have set the DialogFilterLink properly, what happens when you try to create a link to a flv file ?

Which version of pinEdit do you use ?

Regards,
Hans-Peter

Re: Linking Error coused by security.xml, dynamic?


lpe 01-27-2010, 3:15
Hi,

I belive I got the idea about the paths now, if I got three sites for example, each using an individual filestructure, I'll just use the parent path for all of them.
Example:

X:\Inetpub\site1\files
X:\Inetpub\site2\files
X:\Inetpub\site3\files

This would make me use "<limitpath value="X:\Inetpub\" /> as parent path, and all sites is "locked down" too that parent path, am I right?

On to the other problem.

If I open, say, site1's editor and push the "add flash" button, I do get up the filebrowser, but browsing to a path I'm sure there's a test.flv file in, it doesn't come up.
But if I push the "add windows media" button, this is what I get.
Trying to add a link, by pushing the "add link" button, while having a word selected in the textarea, I continue by pushing the "browse" button, but I get the same error.

Security.xml


<!--
pinEdit security file for
 - limiting access paths for file/image dialog and file upload
 - limiting file filter for file/image dialog and file upload
-->
<security>
  <path>
    <!--
      All paths that load/upload files from files system have to stzart with one of the limitpath parameters
      Sample: d:\myfiles\data
      You can add as many limitations for different folders you like
    
      i.e.
      <limitpath value="d:\data\images" />
      <limitpath value="e:\data\files" />
      <limitpath value="f:\data\users" />
      <limitpath value="g:" />
     
      At least one parameter has to be specified
    -->
    <limitpath value="X:\Inetpub\" />

  </path>
  <extension>
    <!-- All extensions used have to part of this list -->
    <limitextension value="doc;docx;xls;xlsx;ppt;txt;pdf;jpg;jpeg;png;gif;bmp;xml;html;htm;css;swf;flv;avi;wmv;" />
  </extension>
</security>


classEDITOR.asp


...
objEditor.DialogFilterLink = "html;htm;txt;doc;xls;pdf;gif;jpeg;jpg;png;zip;swf;flv;avi;wmv;"
...


Click the links for screendumps.
We use PinEditASP for Web version 7.2

Best Regards
LP


Re: Linking Error coused by security.xml, dynamic?


Pintexx Support 01-28-2010, 4:08
Hello,

could you please send an email to support@pintexx.com so that we can send you some files ?

Regards,
Hans-Peter