Examples of checkFileLocation()


Examples of railo.runtime.security.SecurityManager.checkFileLocation()

   */
  public static Object actionList(PageContext pageContext,Resource directory, String serverPassword, int type,ResourceFilter filter,ResourceAndResourceNameFilter nameFilter,
      int listInfo,boolean recurse,String sort) throws PageException {
    // check directory
    SecurityManager securityManager = pageContext.getConfig().getSecurityManager();
    securityManager.checkFileLocation(pageContext.getConfig(),directory,serverPassword);
     
      if(type!=TYPE_ALL) {
        ResourceFilter typeFilter = (type==TYPE_DIR)?DIRECTORY_FILTER:FILE_FILTER;
        if(filter==null) filter=typeFilter;
        else filter=new AndResourceFilter(new ResourceFilter[]{typeFilter,filter});
View Full Code Here

Examples of railo.runtime.security.SecurityManager.checkFileLocation()

   * @throws PageException
   */
    public static void actionCreate(PageContext pc,Resource directory,String serverPassword, boolean createPath, int mode, Object acl, int storage, int nameConflict) throws PageException {

      SecurityManager securityManager = pc.getConfig().getSecurityManager();
      securityManager.checkFileLocation(pc.getConfig(),directory,serverPassword);
     
    if(directory.exists()) {
      if(directory.isDirectory()) {
        if ( nameConflict == NAMECONFLICT_SKIP )
          return;
View Full Code Here

Examples of railo.runtime.security.SecurityManager.checkFileLocation()

   * @param forceDelete
   * @throws PageException
   */
  public static void actionDelete(PageContext pc,Resource dir, boolean forceDelete,String serverPassword) throws PageException {
    SecurityManager securityManager = pc.getConfig().getSecurityManager();
      securityManager.checkFileLocation(pc.getConfig(),dir,serverPassword);
     
    // directory doesn't exist
    if(!dir.exists()) {
      if(dir.isDirectory())
        throw new ApplicationException("directory ["+dir.toString()+"] doesn't exist");
View Full Code Here

Examples of railo.runtime.security.SecurityManager.checkFileLocation()

   * @throws PageException
   */
  public static  void actionRename(PageContext pc,Resource directory,String strNewdirectory,String serverPassword, boolean createPath, Object acl,int storage) throws PageException {
    // check directory
    SecurityManager securityManager = pc.getConfig().getSecurityManager();
      securityManager.checkFileLocation(pc.getConfig(),directory,serverPassword);
   
     
    if(!directory.exists())
      throw new ApplicationException("the directory ["+directory.toString()+"] doesn't exist");
    if(!directory.isDirectory())
View Full Code Here

Examples of railo.runtime.security.SecurityManager.checkFileLocation()

      throw new ApplicationException("the attribute [newDirectory] is not defined");
   
    // real to source
    Resource newdirectory=toDestination(pc,strNewdirectory,directory);
   
      securityManager.checkFileLocation(pc.getConfig(),newdirectory,serverPassword);
    if(newdirectory.exists())
      throw new ApplicationException("new directory ["+newdirectory.toString()+"] already exists");
    if(createPath) {
      newdirectory.getParentResource().mkdirs();
     
View Full Code Here

Examples of railo.runtime.security.SecurityManager.checkFileLocation()

 
 
  public static  void actionCopy(PageContext pc,Resource directory,String strDestination,String serverPassword,boolean createPath, Object acl,int storage, ResourceFilter filter, boolean recurse, int nameconflict) throws PageException {
    // check directory
    SecurityManager securityManager = pc.getConfig().getSecurityManager();
      securityManager.checkFileLocation(pc.getConfig(),directory,serverPassword);
   
     
    if(!directory.exists())
      throw new ApplicationException("directory ["+directory.toString()+"] doesn't exist");
    if(!directory.isDirectory())
View Full Code Here

Examples of railo.runtime.security.SecurityManager.checkFileLocation()

    Resource newdirectory=toDestination(pc,strDestination,directory);
   
    if ( nameconflict == NAMECONFLICT_ERROR && newdirectory.exists() )
      throw new ApplicationException("new directory ["+newdirectory.toString()+"] already exist");
   
      securityManager.checkFileLocation(pc.getConfig(),newdirectory,serverPassword);

    try {
      // has already a filter
      if(filter!=null) {
        if(recurse) filter=new OrResourceFilter(new ResourceFilter[]{
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.