[greenstone-users] Greenstone as applet on IIS

From Samuel Tyszler
DateWed, 14 Feb 2007 13:03:54 -0500
Subject [greenstone-users] Greenstone as applet on IIS
.


<<attachment>>
Type: text/plain

I am experiencing the same error...

CGI Error

The specified CGI application misbehaved by not returning a complete set
of HTTP headers.

...when I try to log on to
http://localhost/gsdl/cgi-bin/gliserver.pl?cmd=check-installation. I
want to try to use the special file below but the links are broken. I am
running the latest version of Greenstone as of this writing (2.72).
Thank you for your assistance.

Best regards,

Samuel D. Tyszler

Network Services Project Manager, MIS Dept.

Yeshiva University

TEL: (212) 960-0022

tyszlers@yu.edu <mailto:tyszlers@yu.edu>

>Hi all,
>
>After some off-list correspondence this bug has now been fixed. If
>you're installing the remote building functionality on a server with a
>version of Perl that has the crypt() function disabled (this includes
>the Perl included with Greenstone on Windows), you should download an
>updated Greenstone "cgi-bin/gliserver.pl" file from
>
http://www.cs.waikato.ac.nz/~mdewsnip/greenstone/temp-2.70/gliserver.pl.
>(This information has also been included on the documentation page at
>
http://www.cs.waikato.ac.nz/~mdewsnip/greenstone/west-yorkshire/remote->
greenstone.html
<http://www.cs.waikato.ac.nz/~mdewsnip/greenstone/west-yorkshire/remote-
%3egreenstone.html> )
>
>If you have no idea what I'm talking about then you don't need this fix
:-)
>
>Michael

>Leon White wrote:

> Hi Michael, John, List,
>
> thank you very much for the help. Although I'm in way over my head on
> this I'm reading and learning as fast as I can. I inserted your fix to
> cgi-bingliserver.pl as follows:
>
> ...
> require "$gsdlhome/perllib/util.pm"; # This is OK on Windows
> require "$gsdlhome/perllib/cpan/Crypt/UnixCrypt.pm"; # This is OK
> on Windows
> $Crypt::UnixCrypt::OVERRIDE_BUILTIN = 1; # Fix provided by Michael
> Dewsnip
>
> I now get the following error message at
>
http://www.rkb.usp.ac.fj/gsdl/cgi-bin/gliserver.pl?cmd=download-collecti
on-configurations&un=test&pw=test
> <
http://www.rkb.usp.ac.fj/gsdl/cgi-bin/gliserver.pl?cmd=download-collecti
on-configurations&un=test&pw=test>
>
>
> CGI Error
>
> The specified CGI application misbehaved by not returning a complete
> set of HTTP headers. The headers it did return are:
>
>Name "Crypt::UnixCrypt::OVERRIDE_BUILTIN" used only once: possible typo
at E:Greenstonegsdlcgi-bingliserver.pl line 28.
>
>The crypt() function is unimplemented due to excessive paranoia. at
E:Greenstonegsdlcgi-bingliserver.pl line 31.
>
>
> Connecting with the GLI client still generates a 502. So other than
> the obligatory newbie chuckle at entertaining error messages, what
> does this mean and how can I fix it?
>
> Thanks and bye,
> Leon
>
>
> On 5/17/06, *Michael Dewsnip* <mdewsnip at cs.waikato.ac.nz
<https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users>
> <mailto:mdewsnip at cs.waikato.ac.nz
<https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users> >>
wrote:
>
> Hi Leon,
>
> Actually, this isn't a 502 error at all -- it seems that Java is
> confused by the true error. By visiting
>
http://www.rkb.usp.ac.fj/gsdl/cgi-bin/gliserver.pl?cmd=download-collecti
on-configurations&un=test&pw=test
> <
http://www.rkb.usp.ac.fj/gsdl/cgi-bin/gliserver.pl?cmd=download-collecti
on-configurations&un=test&pw=test>
> you can see the real error:
>
>
> CGI Error
>
> The specified CGI application misbehaved by not returning a
> complete set of HTTP headers. The headers it did return are:
>
>The crypt() function is unimplemented due to excessive paranoia. at
E:Greenstonegsdlcgi-bingliserver.pl line 30.
>
>
>
> Fixing this requires a change to the gliserver.pl file to override
> Perl's built-in crypt() function to use the one in
> Crypt::UnixCrypt. Try adding this line:
>
> $Crypt::UnixCrypt::OVERRIDE_BUILTIN = 1;
>
> after:
>
> require "$gsdlhome/perllib/cpan/Crypt/UnixCrypt.pm"; #
> This is OK on Windows
>
> near the start of the Greenstone "cgi-bingliserver.pl" file. I'm
> not 100% certain this will work because I can't test it for myself
> -- please let me know either way.
>
> All the best,
>
> Michael
>
>
>


<<attachment>>
Type: text/html