Bug 15820 - suggestion.pl maximum internal redirects
Summary: suggestion.pl maximum internal redirects
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: 3.22
Hardware: All All
: P5 - low critical (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-15 20:52 UTC by Humberto Blanco
Modified: 2019-06-27 09:24 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Humberto Blanco 2016-02-15 20:52:53 UTC
Whe i try to change status for a suggestions appears error 500. 
If I see the log i can see:

[Mon Feb 15 15:48:45.705691 2016] [core:error] [pid 29073] [client 10.11.93.119:50625] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://10.10.11.53:8080/cgi-bin/koha/suggestion/suggestion.pl?displayby=STATUS&budgetid=__ANY__&branchcode=__ANY__


Any suggestion?

Humberto
Comment 1 Jonathan Druart 2016-02-16 09:36:16 UTC
This looks like an error in your apache config.
How did you install Koha? Did you modify the apache config?
Comment 2 Humberto Blanco 2016-02-16 13:18:46 UTC
(In reply to Jonathan Druart from comment #1)
> This looks like an error in your apache config.
> How did you install Koha? Did you modify the apache config?

I have the same like the bug 15768, in koha news, Koha create 6 new records with the same notice

in my httpd.conf i not have this preference enable .
Comment 3 Jonathan Druart 2016-02-16 13:55:58 UTC
Could you confirm that the error still exists after you have modified the sql_mode mysql variable?
Comment 4 Humberto Blanco 2016-02-17 15:19:03 UTC
 (In reply to Jonathan Druart from comment #3)
> Could you confirm that the error still exists after you have modified the
> sql_mode mysql variable?

yes, now I see in the log

[Wed Feb 17 08:19:32.283271 2016] [core:error] [pid 817] [client 10.10.11.192:4002] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://catalogo.urosario.edu.co:8080/cgi-bin/koha/suggestion/suggestion.pl

ANd get 500 error
Comment 5 Jonathan Druart 2016-02-17 15:28:00 UTC
Are you using the default Koha Apache configuration file?
Comment 6 Humberto Blanco 2016-02-25 14:01:13 UTC
(In reply to Jonathan Druart from comment #5)
> Are you using the default Koha Apache configuration file?

jonathan: Yes, I attached this. for koha exist 3 diferent files for apache



For example, when i try to change status for a suggestion  
http://10.10.11.220:8080/cgi-bin/koha/suggestion/suggestion.pl#ASKED

Appears: 
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Aditional in apache logs appears 
[Thu Feb 25 08:59:41 2016] -e: CGI::param called in list context from package ModPerl::ROOT::ModPerl::Registry::usr_share_koha_intranet_cgi_2dbin_suggestion_suggestion_2epl line 80, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/share/perl5/CGI.pm line 436, <DATA> line 751.
[Thu Feb 25 08:59:41 2016] -e: CGI::param called in list context from package C4::Auth line 399, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/share/perl5/CGI.pm line 436, <DATA> line 751.
[Thu Feb 25 08:59:41 2016] -e: No suggestions ACCEPTED letter transported by email at /usr/share/koha/lib/C4/Letters.pm line 636, <DATA> line 751.
[Thu Feb 25 08:59:41 2016] -e: CGI::param called in list context from package ModPerl::ROOT::ModPerl::Registry::usr_share_koha_intranet_cgi_2dbin_suggestion_suggestion_2epl line 80, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/share/perl5/CGI.pm line 436.


Before i see and the status of the suggestion has changed, i believe that is letter
Comment 7 Humberto Blanco 2016-02-25 18:40:36 UTC
Today i probe editing one suggestion, changed the status and Works fine, the error is in "Suggestions management" when select one or multiple suggestions and tray to change the status

Humberto,
Comment 8 Humberto Blanco 2016-03-07 20:15:02 UTC
Thanks for all,
Now all still working well. 
I return to CGI mode and fixed this.

Humberto,