Menu

#336 SQL Query truncated abnormally

closed-fixed
General (123)
5
2008-12-18
2008-04-16
No

Long SQL queries are truncated abnormally by PhpPgAdmin. Submitting long queries causes an application error displaying a blank page. Hint: the problem is related to the size limit of HTTP GET request, SQL query strings should be passed always via HTTP POST or manteined in a SESSION variable.

Discussion

  • Robert Treat

    Robert Treat - 2008-08-17

    Logged In: YES
    user_id=204589
    Originator: NO

    can you provide a little more detail on where you get this error? Is it in the sql pop-up window, or the sql page on the database page, or some place else?

     
  • Robert Treat

    Robert Treat - 2008-08-17
    • assigned_to: nobody --> xzilla
     
  • Robert Treat

    Robert Treat - 2008-08-25
    • status: open --> pending-fixed
     
  • Robert Treat

    Robert Treat - 2008-08-25

    Logged In: YES
    user_id=204589
    Originator: NO

    I believe I have a fix for this available in my git repo. You can grab a copy of the code from
    http://github.com/xzilla/phppgadmin/tarball/28a749657ab3c92c6a59bf6171cc3e7b8b1c3c84.

    I am marking this bug ticket as pending, please let us know if you have additional issues. Note, this fix will be backpatched to 4.2.x

     
  • Anonymous

    Anonymous - 2008-08-26
    • status: pending-fixed --> open-fixed
     
  • Anonymous

    Anonymous - 2008-08-26

    Logged In: YES
    user_id=2064472
    Originator: YES

    The problem is not present in the forms that send the query by HTTP POST (database sql, pop-up, save report). The problem occurs whenever you access the query contents via HTTP GET. For example in database sql and pop-up when you have executed the query for the first time and then you click on "Modify SQL". The same if you saved the query in a report: you will not be able to run it. The problem is due to a Internet Explorer feature, see http://support.microsoft.com/kb/208427 For an example query, see the attached file "long_query.txt", try to run/modify that query and then try to create/modify/run a report with that query.

    File Added: long_query.txt

     
  • Anonymous

    Anonymous - 2008-08-26
    • status: open-fixed --> pending-fixed
     
  • Anonymous

    Anonymous - 2008-08-26

    Logged In: YES
    user_id=2064472
    Originator: YES

    File Added: long_query.txt

     
  • Anonymous

    Anonymous - 2008-08-26
    • status: pending-fixed --> open-fixed
     
  • Anonymous

    Anonymous - 2008-08-26
    • status: open-fixed --> pending-fixed
     
  • Anonymous

    Anonymous - 2008-08-26
    • status: pending-fixed --> open-fixed
     
  • Anonymous

    Anonymous - 2008-08-26
    • status: open-fixed --> pending-fixed
     
  • Anonymous

    Anonymous - 2008-08-26

    Logged In: YES
    user_id=2064472
    Originator: YES

    File Added: long_query.txt

     
  • Anonymous

    Anonymous - 2008-08-26
    • status: pending-fixed --> open-fixed
     
  • Anonymous

    Anonymous - 2008-08-26

    Logged In: YES
    user_id=2064472
    Originator: YES

    I have downloaded and installed http://github.com/xzilla/phppgadmin/tarball/28a749657ab3c92c6a59bf6171cc3e7b8b1c3c84
    The problem is still present.

     
  • Robert Treat

    Robert Treat - 2008-08-26
    • status: open-fixed --> open-accepted
     
  • Robert Treat

    Robert Treat - 2008-08-26

    Logged In: YES
    user_id=204589
    Originator: NO

    ah, ok, i thought there might be more to this. however, i get an error when trying to download your example (something about it being a binary file), can you re-upload? thanks!

     
  • Anonymous

    Anonymous - 2008-09-01

    Logged In: YES
    user_id=2064472
    Originator: YES

    File Added: long_query.zip

     
  • Anonymous

    Anonymous - 2008-09-01

    Logged In: YES
    user_id=2064472
    Originator: YES

    Ok, I have uploaded a zipped copy of the attached file.
    File Added: long_query.txt

     
  • Anonymous

    Anonymous - 2008-09-01

    Long Query Example Test

     
  • Anonymous

    Anonymous - 2008-09-01

    Logged In: YES
    user_id=2064472
    Originator: YES

    File Added: long_query.txt

     
  • Nobody/Anonymous

    Long Query Example Test (Zipped)

     
  • Robert Treat

    Robert Treat - 2008-12-18

    This issue has been resolved and is currently fixed in CVS. If
    you wish to acquire the fix, please download a nightly snapshot:

    http://phppgadmin.sourceforge.net/

    Note that you may have to wait up to 24 hours for the latest CVS
    changes to appear in the snapshot.

     
  • Robert Treat

    Robert Treat - 2008-12-18
    • status: open-accepted --> closed-fixed
     

Log in to post a comment.