Alpha Video Training
Results 1 to 4 of 4

Thread: Directory browsing forbidden

  1. #1
    VAR Pat Bremkamp's Avatar
    Real Name
    Pat Bremkamp
    Join Date
    Apr 2000
    Location
    Oregon, USA
    Posts
    2,645

    Default Directory browsing forbidden

    I've created an a5w page to print an invoice from a link in a grid, and it works great in localhost. But, when I upload it to alphafiveonline I get the directory browsing forbidden message. The code is straight out of help, which is:

    Code:
    <%a5
    If eval_valid("session.Ord_Id") = .f.
    	goto skipreport
    end if
    Dim vFilter as C
    Dim vOrder as C
    Dim vFilename as C
    vOrder=""
    vFilter = "ord_id = "+s_quote(session.Ord_Id)
    vFilename = session.session_folder + chr(92) + "timeinvoice.pdf"
    vFilename = report.saveas("Time_Invoice@[PathAlias.ADB_Path]\orders.set","pdf",vFilter,vOrder,vFilename,.f.)
    if file.exists(vFilename)
    	response.redirect(session.session_url + "timeinvoice.pdf?" + time("hms3"))
    end if
    end
    skipreport:
    ?"There was an error. Unable to print this invoice."%>
    The server burps when it gets to the response.redirect... statement.
    Can someone see my error?
    Thanks,Pat
    Last edited by Pat Bremkamp; 02-14-2006 at 01:07 PM.

  2. #2
    Alpha Software Employee Lenny Forziati's Avatar
    Real Name
    Lenny Forziati
    Join Date
    Nov 2001
    Location
    Alpha Software
    Posts
    4,701

    Default

    This is a known problem Pat and we are in the process of updating the server with a fix. It should be all set within a half hour.

    Quote Originally Posted by Pat Bremkamp
    I've created an a5w page to print an invoice from a link in a grid, and it works great in localhost. But, when I upload it to alphafiveonline I get the directory browsing forbidden message. The code is straight out of help, which is:

    Code:
    <%a5
    If eval_valid("session.Ord_Id") = .f.
    	goto skipreport
    end if
    Dim vFilter as C
    Dim vOrder as C
    Dim vFilename as C
    vOrder=""
    vFilter = "ord_id = "+s_quote(session.Ord_Id)
    vFilename = session.session_folder + chr(92) + "timeinvoice.pdf"
    vFilename = report.saveas("Time_Invoice@[PathAlias.ADB_Path]\orders.set","pdf",vFilter,vOrder,vFilename,.f.)
    if file.exists(vFilename)
    	response.redirect(session.session_url + "timeinvoice.pdf?" + time("hms3"))
    end if
    end
    skipreport:
    ?"There was an error. Unable to print this invoice."%>
    The server burps when it gets to the response.redirect... statement.
    Can someone see my error?
    Thanks,Pat

  3. #3
    Alpha Software Employee Lenny Forziati's Avatar
    Real Name
    Lenny Forziati
    Join Date
    Nov 2001
    Location
    Alpha Software
    Posts
    4,701

    Default

    The patch is now in place on the server.

    Quote Originally Posted by Lenny Forziati
    This is a known problem Pat and we are in the process of updating the server with a fix. It should be all set within a half hour.

  4. #4
    VAR Pat Bremkamp's Avatar
    Real Name
    Pat Bremkamp
    Join Date
    Apr 2000
    Location
    Oregon, USA
    Posts
    2,645

    Default Yes, It works now!

    Thanks, guys

    Pat

Similar Threads

  1. Calc field doesn't refresh when browsing
    By SwissCharles in forum Alpha Five Version 6
    Replies: 2
    Last Post: 08-25-2005, 07:28 AM
  2. browsing arabic data
    By alimrb in forum Alpha Five Version 6
    Replies: 1
    Last Post: 06-01-2005, 12:29 PM
  3. Prevent browsing in form if condition not set
    By Inge Hansen in forum Alpha Five Version 5
    Replies: 1
    Last Post: 01-14-2004, 12:37 PM
  4. browsing
    By Jacques Lapierre in forum Alpha Five Version 5
    Replies: 2
    Last Post: 08-26-2002, 08:30 AM
  5. Browsing Tables On The Fly
    By Ron McCormack in forum Alpha Five Version 4
    Replies: 5
    Last Post: 02-08-2001, 09:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •