[Users] Printprovider problem
Matt Priour
mpriour at kestrelcomputer.com
Tue May 3 23:46:41 CEST 2011
...
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
Matt Priour
From: Ralph Dell
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/20110503/341e4133/attachment.htm
More information about the Users
mailing list