Error on redirect URL when using Oauth2 "No input file specified. "
I use Apache and did not need to make any changes other than enabling URL Rewriting. Maybe your host has some weird routing issues or something?
Cheers.
With the solution of @sedwardson I got redirected to the root site of my osTicket instance but the OAuth has no Token. So not really a solution I guess.
@"KevinTheJedi My provider ask which rewriting options are needed since they cannot set "All"
The ones in all the .htaccess files in the codebase. There are a few so they can run a find command to see all the .htaccess files.
Cheers.
KevinTheJedi I agree, I'm just happy that I have the token and that part seems to work :-)
Thanks again.
- Edited
cross-it Not sure if it will help but one of the things I did was put the http.php in the re-directed URL. I'm not sure which actually resolved the issue but maybe it will help?
https://domain.name/api/http.php/auth/oauth2?code=0.AV4ALQR-FOlNX0Cj_...
Sam
sedwardson
That was a good hint.... Thanks...
Yea if URL Rewriting isn't working you can hardcode http.php but you should really get URL Rewriting working as other parts of the helpdesk will need it too.
Cheers.
HI,
Go the same problem. "No input file specified"
Using a plesk basic installation on debian
- Edited
sedwardson Can you elaborate how you did this? My hosting provider stated that both "URL Rewriting" is enabled on this server and the "AllowOverride" directive is set to All. Yet still getting "No input file specified."
My hoster has checked all the htaccess files and all needed functions are enabled according to him.
What else can we do?
voidsysadmin Can you elaborate how you did this? My hosting provider stated that both "URL Rewriting" is enabled on this server and the "AllowOverride" directive is set to All. Yet still getting "No input file specified."
You might want to start your own thread.
Include your setup information, what the issue is, etc.
Hi there
We've found a working solution with our provider. All ".htaccess" files needs to be edited like this:
Old: RewriteRule .*$ %1/dispatcher.php/$1 [L]
New: RewriteRule .*$ %1/dispatcher.php/$1 [R,L]
this seems to work.
regards
Lukas
Odd as I didn't make any changes and it works fine with Apache. But whatever works for you I guess.
Cheers.
- Edited
I was also concerned by the problem but I've just fixed it.:
I was redirected to "404 Not Found" at the end of the Microsoft 365 Authentication process and not getting the token back into osTicket. It was on a freshly installed Apache2 server with no other config except the default + my vhost for osTicket.
The problem was indeed coming from the rewriting rules in the api/.htaccess file that were getting ignored.
I've just fixed the problem by doing two things:
- checking that the rewriteModule is enabled by using a2enmod rewrite command (it was actually already OK in my case).
- adding the following AllowOverride directive in my vhost configuration
<Directory /var/www/support.mycompany.com/api>
AllowOverride FileInfo
</Directory>
Please adjust the path to your context.
Please note that the value "All" is not required. "FileInfo" is enought for the RewriteEngine according to apache2 documentation.
I'm confused by your post. the .htaccess in /api reads:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.*/api)
RewriteRule ^(.*)$ %1/http.php/$1 [L]
</IfModule>
So I am not real sure what you are telling us to edit.
Hi All, Verify you have selected PHP 8.0x for your site - mine was set to 7.4.
I just setup a clean new install of 1.17.2, and have got this same error, "no input file specified".
This site is hosted on SiteGround.