"Save and Continue Edit" - 403 Forbidden Error
Database management in a single PHP file
Brought to you by:
jakubvrana
Using the "Save and Continue Edit" button causes a 403 Forbidden Error. The POST fails and then tries to perform a directory listing (which is not allowed).
[error] 65051#0: *50174 directory index of "/usr/opt/www/example.com/httpdocs/secretDir/" is forbidden
If I just use the "Edit" button, everything works normally.
What's the error message?
The error message I receive is : 403 Forbidden
Apache logs show :
[error] 65051#0: *50174 directory index of "/usr/opt/www/example.com/httpdocs/secretDir/" is forbidden
What exactly is supposed to happen when you click the "Save and Continue Edit" button? On my server, it's trying to do a directory request - which is not allowed.
If I do allow the directory request, it tries to load another instance of adminer inside adminer.
Last edit: Qcybb 2016-03-08
Adminer sends a POST request with the data to save to the same URL. It uses AJAX with JS enabled.
When I click the "Save and Continue Edit" button, this is the error I receive :
directory index of "/example.com/httpdocs/sql-admin/" is forbidden, client: xx.xx.xx.xx, server: www.example.com, request: "POST /sql-admin/ HTTP/1.1", host: "www.example.com", referrer: "http://www.example.com/sql-admin/adminer.php?username=test&db=testing&edit=payment&where%5Bid%5D=4"
Why is the POST trying bring up the directory index?
However, if I click the "Save" button, everything works perfectly.
The "Save and Continue Edit" button does not work in Internet Explorer 11.
However, it works in Google Chrome and Firefox.
Is this issue ever going to get fixed?
The "Save and Continue Edit" button still does not work in Internet Explorer 11 in Admin 4.2.5 - when the button is clicked, it produces a 404 error.
This only happens in IE 11 - but works fine in Chrome and Firefox.
It seems that IE interprets an empty URL in
XMLHttpRequest.openas the same directory whereas it should be the current file. Please report this to Microsoft.