That is not an option

Josh Obrecht, GISP
GIS Support and Research Facility
Iowa State University
213 Durham Center
613 Morrill Rd
Ames, IA  50011
515-294-6990
[email protected]

From: Julian Hollingbery [mailto:[email protected]]
Sent: Wednesday, December 28, 2016 12:47 PM
To: Andrea Aime <[email protected]>; Obrecht, Joshua D [DSN] 
<[email protected]>
Cc: [email protected]
Subject: Re: [Geoserver-users] Unauthorized Service


Just a thought: Can the service be called with http:// in stead of https://?



/julian



 Andrea Aime 
<[email protected]<mailto:[email protected]>> wrote:


On Wed, Dec 28, 2016 at 7:01 PM, Obrecht, Joshua D [DSN] 
<[email protected]<mailto:[email protected]>> wrote:
There are no credentials set for that server. Can you explain why on other 
servers, the service can be called without credentials but is needed in 
GeoServer?

Oh no, I have no clue, it's just what I'm reading from the logs you posted, 
GeoServer seems to think it made a request and got back a 401 here:

2016-12-09 08:11:53,971 ERROR [print.PDFUtils] - Server returned an error for 
https://xxxxx/wms?BBOX=93.59662362617522%2C-42.08234015699224%2C93.6671763738248%2C-41.97925984300776&HEIGHT=2375&WIDTH=1626&map_resolution=190&VERSION=1.1.1&FORMAT=image%2Fjpeg&SERVICE=WMS&format_options=dpi%3A190&LAYERS=
 iowasections&REQUEST=GetMap&STYLES=&DPI=190&SRS=EPSG%3A4326: Error 
(status=401) while reading the image from https:// xxxxx 
/wms?BBOX=93.59662362617522%2C-42.08234015699224%2C93.6671763738248%2C-41.97925984300776&HEIGHT=2375&WIDTH=1626&map_resolution=190&VERSION=1.1.1&FORMAT=image%2Fjpeg&SERVICE=WMS&format_options=dpi%3A190&LAYERS=
 iowasections&REQUEST=GetMap&STYLES=&DPI=190&SRS=EPSG%3A4326: Unauthorized

As far as I can tell the message is logged here:

https://github.com/mapfish/mapfish-print/blob/1.2.x/src/main/java/org/mapfish/print/PDFUtils.java#L283

By the looks of the code, it's making the HTTP request to get the image, and 
logs and fails if the status code returned is not a 200.

But I cannot tell you why it's happening, that would require knowledge of the 
server you're making the request to :-)

Cheers
Andrea

--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i 
file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo 
è consentito esclusivamente al destinatario del messaggio, per le finalità 
indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne 
il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di 
procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro 
sistema. Conservare il messaggio stesso, divulgarlo anche in parte, 
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, 
costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for the 
attention and use of the named addressee(s) and may be confidential or 
proprietary in nature or covered by the provisions of privacy act (Legislative 
Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in 
accord with its purpose, any disclosure, reproduction, copying, distribution, 
or either dissemination, either whole or partial, is strictly forbidden except 
previous formal approval of the named addressee(s). If you are not the intended 
recipient, please contact immediately the sender by telephone, fax or e-mail 
and delete the information in this message that has been received in error. The 
sender does not give any warranty or accept liability as the content, accuracy 
or completeness of sent messages and accepts no responsibility  for changes 
made after they were sent or for other risks which arise as a result of e-mail 
transmission, viruses, etc.

-------------------------------------------------------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to