[Users] Printprovider problem
Ralph Dell
RDell at CatawbaCountyNC.gov
Wed May 4 14:51:33 CEST 2011
I have included my OpenLayers.ProxyHost statement at the top of my
script.
Last week when I was scratching my head I confirmed my proxy was
working by doing some wfs requests opengeo and my production geoserver.
They worked.
I do not know why I am fighting a proxy issue with the printProvider but
in other circumstances I know my proxy is working.
Ralph Dell
From: Matt Priour [mailto:mpriour at kestrelcomputer.com]
Sent: Tuesday, May 03, 2011 5:47 PM
To: Ralph Dell; users at geoext.org
Subject: Re: [Users] Printprovider problem
...
The post will work in IE 7 & 8. I do get the message "This page is
accessing information that is not under your control. ... Do you want to
continue"
...
That is because you need a proxy to get around the Same-site Origin
Policy
http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost
<http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHos
t>
Matt Priour
From: Ralph Dell <mailto:RDell at CatawbaCountyNC.gov>
Sent: Tuesday, May 03, 2011 1:51 PM
To: users at geoext.org
Subject: [Users] Printprovider problem
I have recently installed the geoserver printing module and set up a app
using the PrintProvider. The development went well until I realized that
GET was not going to work for me because of the URL length. After
changing the method to POST I cannot get the printing to work at all in
firefox. I have taken a step back and am currently testing with a local
copy of the geoext example print-page.html and getting my
printCapabilities from demo.opengeo.org or localhost:8080
I believe have a proxy problem but I do not know why, nor how to fix it
.
In config.yaml I have the entries
- !localMatch
dummy: true
- !dnsMatch
host: demo.opengeo.org I have tested with and without the line
port:80
I can load the printCapabilities from opengeo and localhost
After clicking the print button in HttpFox I see (going to opengeo)
Method Result Type
url
Options 200
text/plain(NS_ERROR_DOM_BAD_URI)
http://demo.opengeo.org/geoserver/pdf/create.json
I have a similar error from my localhost
The BAD_URI error indicates different domain names are being used, but I
do not see that as being the case., and Method Options tells me I have a
proxy issue.
My local test environment is geoext 1.0, geoserver 2.0.3 (jetty),
OpenLayers 2.10, extjs 3.3.1, windows XP, and my web server is IIS
When going to my localhost after clicking the print button
The printprovider print exception listener response.statusText is
"communication failure"
My geoserver request log has "OPTIONS /geoserver/pdf/create.json
HTTP/1.1" 200 0
My geoserver.log contains DEBUG [geoserver.filters] - filtering
http://localhost:8080/geoserver/pdf/create.json
I'm lost. Any suggestions on what I am missing would be appreciated.
The post will work in IE 7 & 8. I do get the message "This page is
accessing information that is not under your control. ... Do you want to
continue"
Ralph Dell
________________________________
_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110504/99ff92e4/attachment.htm
More information about the Users
mailing list