Re: [Geoserver-users] GetCapabilities 1.1.1 error

2013-05-20 Thread cmaul
Hello Dmitriy,

can you send a bit more of your error message and the install, because I
cannot reproduce this error, regardless whether I go in as administrator or
not.

Cheers

Christian




-


Dr Christian Maul
Project Manager

Information Services Branch
Department of Sustainability and Environment
Level13, Marland House, 570 Bourke Street
Melbourne 3000

PO Box 500, East Melbourne Vic 3002


Telephone:+61-3-8636 2325
Telefax:  +61-3-8636 2813
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/GetCapabilities-1-1-1-error-tp5054416p5054497.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Problem in importing raster data on Geoserver from PostGIS

2013-05-20 Thread akhilgupta
Hi christian

I follow procedure stated below.

First I create tiles using gdal_retile for big tiff files.

Then I created master table for meta data and tile tables according to the
no. of pyramids level. 

Then I loaded the tiles using *raster2pgsql* to postgreSQL.

Then I use imagemosaic jdbc to publish raster data on geoserver.

Thanks

Akhil



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Problem-in-importing-raster-data-on-Geoserver-from-PostGIS-tp5051976p5054447.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] PHP , Geoserver 2.2, CURL and j_spring_security_check

2013-05-20 Thread Christian Mueller
An HTTP 200. Since the login happens for each request, you would get a 401
(unauthorized) or 403 (Forbidden) in case of failure.

You must check the HTTP return code for each request, but this is
independent of authentication.

Cheers


2013/5/20 

> and what are the return code that i would get to know that the log in is
> fine or not
>
> "Christian Mueller" 
> >
> escribió:
>
>  I know curl from the command line, int his case
>>
>> curl --basic -u admin:geoserver ..
>>
>> should do the job. You have to include this parameter in EACH of your curl
>> requests.
>>
>> Cheers
>> Christian
>>
>>
>>
>> 2013/5/20 
>>
>>  "Christian Mueller" 
>> http://solutions.at>
>>> 
>>> >>
>>>
>>> escribió:
>>>
>>>
>>>  Hi
>>>

 First, please stay on the users list.

 Return code 200 is fine, does your PHP library follow HTTP redirects.
 After
 a login, an HTTP redirect happens to the admin GUI and this redirect
 must
 include the session cookie called JSESSIONID.

 Next problem is your GeoServer version. 2.2.x is out of support. If I
 find
 a bug, I can only fix it in 2.3.x series. After you have installed
  2.2.x
 and migrated your data directory (this happens automatically), you
 should
 install 2.3.2 .

  i will get 2.3.2 in these days, thanks
>>>
>>>
>>>  Do you need access to the GUI or the OGC services. I assume the second
 one
 and in this case, you should use basic authentication.

  yes i want to use access to the OGC services, how in these version
>>> could i
>>> use basic authentication, i have curl in my pc, do you please can put an
>>> example of a curl sentence and the reply  of the same in case of the
>>> sentence is fine and in contrary case, to know when the log is fine or
>>> not,
>>> please, thanks.
>>>
>>>
>>>  Cheers
 Christian












 2013/5/19 J.Alejandro Martinez Linares 

   This is what i get when a analize the return of the curl request i
 made

> this die(printf_r($arrInfo)) and i get this:
>
> --
> Array ( [url] =>
> http://localhost/geoserver/web/;jsessionid=zusl8frwtoz4?
> wicket:bookmarkablePage=:org.geoserver.web.**
> GeoServerLoginPage&error=true[content_type] localhost/geoserver/web/;**jsessionid=zusl8frwtoz4?**
> wicket:bookmarkablePage=:org.**geoserver.web.**
> GeoServerLoginPage&error=true[**content_type]>=>
> text/html; charset=utf-8 [http_code] => 200 [header_size]
>
> => 687 [request_size] => 618 [filetime] => -1 [ssl_verify_result] => 0
> [redirect_count] => 1 [total_time] => 14.234 [namelookup_time] => 0
> [connect_time] => 0 [pretransfer_time] => 0.047 [size_upload] => 0
> [size_download] => 15662 [speed_download] => 1100 [speed_upload] => 0
> [download_content_length] => 15662 [upload_content_length] => 0
> [starttransfer_time] => 9.687 [redirect_time] => 4.547 [certinfo] =>
> Array
> ( ) [primary_ip] => 127.0.0.1 [primary_port] => 80 [local_ip] =>
> 127.0.0.1
> [local_port] => 1232 [redirect_url] => ) 1
> -
>
> and reading this the http return code is 200, but i can not get in when
> this is made, this is not authenticating fine, what i am doing wrong, y
> the
> version 2.1.4 this same routine works fine, but in this version 2.2 of
> geoserver the routine is not working, help me please.
>
>
>
> On 19/05/13 01:38, Christian Mueller wrote:
>
> I am not a PHP developer, but the exception you see in the log is a
> warning, it does not prevent functionality.
>
>  Is there another exception ?
> What is your HTTP return code ?
>
>  Cheers
> Christian
>
>
> 2013/5/18 
>
>  hello peoples, i need help, i got a problem, i need to auntenticate
>
>> throught php in geoserver, in the past with the version geoserver
>> 2.1.4 it work fine, but now i want to upgrade my map server to
>> geoserver 2.2 and the function dont work here, i dont know what to do,
>> help me please, here is the full function that i used and error that
>> geoserver 2.2 show, thanks to all.
>>
>>
>> public static function loginGeoserver($username, $password)
>>  {
>>  $post_data['username'] = $username;
>>  $post_data['password'] = $password;
>>  foreach ($post_data as $key => $value) {
>>  $post_items[] = $key . '=' . $value;
>>  }
>>  $post_string = implode('&', $post_items);
>>  $curl_connection = curl_init('http://' . master::$host .
>>  '/geoserver/j_spring_

Re: [Geoserver-users] PHP , Geoserver 2.2, CURL and j_spring_security_check

2013-05-20 Thread islanis
and what are the return code that i would get to know that the log in  
is fine or not

"Christian Mueller"  escribió:

> I know curl from the command line, int his case
>
> curl --basic -u admin:geoserver ..
>
> should do the job. You have to include this parameter in EACH of your curl
> requests.
>
> Cheers
> Christian
>
>
>
> 2013/5/20 
>
>> "Christian Mueller"  
>> >
>> escribió:
>>
>>
>>  Hi
>>>
>>> First, please stay on the users list.
>>>
>>> Return code 200 is fine, does your PHP library follow HTTP redirects.
>>> After
>>> a login, an HTTP redirect happens to the admin GUI and this redirect must
>>> include the session cookie called JSESSIONID.
>>>
>>> Next problem is your GeoServer version. 2.2.x is out of support. If I find
>>> a bug, I can only fix it in 2.3.x series. After you have installed  2.2.x
>>> and migrated your data directory (this happens automatically), you should
>>> install 2.3.2 .
>>>
>> i will get 2.3.2 in these days, thanks
>>
>>
>>> Do you need access to the GUI or the OGC services. I assume the second one
>>> and in this case, you should use basic authentication.
>>>
>> yes i want to use access to the OGC services, how in these version could i
>> use basic authentication, i have curl in my pc, do you please can put an
>> example of a curl sentence and the reply  of the same in case of the
>> sentence is fine and in contrary case, to know when the log is fine or not,
>> please, thanks.
>>
>>
>>> Cheers
>>> Christian
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> 2013/5/19 J.Alejandro Martinez Linares 
>>>
>>>   This is what i get when a analize the return of the curl request i made
 this die(printf_r($arrInfo)) and i get this:

 --
 Array ( [url] =>
 http://localhost/geoserver/**web/;jsessionid=zusl8frwtoz4?**
 wicket:bookmarkablePage=:org.**geoserver.web.**
 GeoServerLoginPage&error=true[**content_type]=>
  text/html; charset=utf-8 [http_code] => 200  
 [header_size]
 => 687 [request_size] => 618 [filetime] => -1 [ssl_verify_result] => 0
 [redirect_count] => 1 [total_time] => 14.234 [namelookup_time] => 0
 [connect_time] => 0 [pretransfer_time] => 0.047 [size_upload] => 0
 [size_download] => 15662 [speed_download] => 1100 [speed_upload] => 0
 [download_content_length] => 15662 [upload_content_length] => 0
 [starttransfer_time] => 9.687 [redirect_time] => 4.547 [certinfo] =>
 Array
 ( ) [primary_ip] => 127.0.0.1 [primary_port] => 80 [local_ip] =>
 127.0.0.1
 [local_port] => 1232 [redirect_url] => ) 1
 -

 and reading this the http return code is 200, but i can not get in when
 this is made, this is not authenticating fine, what i am doing wrong, y
 the
 version 2.1.4 this same routine works fine, but in this version 2.2 of
 geoserver the routine is not working, help me please.



 On 19/05/13 01:38, Christian Mueller wrote:

 I am not a PHP developer, but the exception you see in the log is a
 warning, it does not prevent functionality.

  Is there another exception ?
 What is your HTTP return code ?

  Cheers
 Christian


 2013/5/18 

  hello peoples, i need help, i got a problem, i need to auntenticate
> throught php in geoserver, in the past with the version geoserver
> 2.1.4 it work fine, but now i want to upgrade my map server to
> geoserver 2.2 and the function dont work here, i dont know what to do,
> help me please, here is the full function that i used and error that
> geoserver 2.2 show, thanks to all.
>
>
> public static function loginGeoserver($username, $password)
>  {
>  $post_data['username'] = $username;
>  $post_data['password'] = $password;
>  foreach ($post_data as $key => $value) {
>  $post_items[] = $key . '=' . $value;
>  }
>  $post_string = implode('&', $post_items);
>  $curl_connection = curl_init('http://' . master::$host .
>  '/geoserver/j_spring_security_**check');
>  curl_setopt($curl_connection, CURLOPT_CONNECTTIMEOUT, 30);
>  curl_setopt($curl_connection, CURLOPT_USERAGENT,
>  "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
>  curl_setopt($curl_connection, CURLOPT_RETURNTRANSFER, true);
>  curl_setopt($curl_connection, CURLOPT_SSL_VERIFYPEER, false);
>  curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, 1);
>  curl_setopt($curl_connection, CURLOPT_POSTFIELDS,
> $post_string);
>  $result = curl_exec($curl_connection);
>  $arrInfo = curl_getinfo($curl_connection)**;
>  $url = $arrInfo['url'];
>  parse_s

Re: [Geoserver-users] PHP , Geoserver 2.2, CURL and j_spring_security_check

2013-05-20 Thread Christian Mueller
I know curl from the command line, int his case

curl --basic -u admin:geoserver ..

should do the job. You have to include this parameter in EACH of your curl
requests.

Cheers
Christian



2013/5/20 

> "Christian Mueller" 
> >
> escribió:
>
>
>  Hi
>>
>> First, please stay on the users list.
>>
>> Return code 200 is fine, does your PHP library follow HTTP redirects.
>> After
>> a login, an HTTP redirect happens to the admin GUI and this redirect must
>> include the session cookie called JSESSIONID.
>>
>> Next problem is your GeoServer version. 2.2.x is out of support. If I find
>> a bug, I can only fix it in 2.3.x series. After you have installed  2.2.x
>> and migrated your data directory (this happens automatically), you should
>> install 2.3.2 .
>>
> i will get 2.3.2 in these days, thanks
>
>
>> Do you need access to the GUI or the OGC services. I assume the second one
>> and in this case, you should use basic authentication.
>>
> yes i want to use access to the OGC services, how in these version could i
> use basic authentication, i have curl in my pc, do you please can put an
> example of a curl sentence and the reply  of the same in case of the
> sentence is fine and in contrary case, to know when the log is fine or not,
> please, thanks.
>
>
>> Cheers
>> Christian
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> 2013/5/19 J.Alejandro Martinez Linares 
>>
>>   This is what i get when a analize the return of the curl request i made
>>> this die(printf_r($arrInfo)) and i get this:
>>>
>>> --
>>> Array ( [url] =>
>>> http://localhost/geoserver/**web/;jsessionid=zusl8frwtoz4?**
>>> wicket:bookmarkablePage=:org.**geoserver.web.**
>>> GeoServerLoginPage&error=true[**content_type]=>
>>>  text/html; charset=utf-8 [http_code] => 200 [header_size]
>>> => 687 [request_size] => 618 [filetime] => -1 [ssl_verify_result] => 0
>>> [redirect_count] => 1 [total_time] => 14.234 [namelookup_time] => 0
>>> [connect_time] => 0 [pretransfer_time] => 0.047 [size_upload] => 0
>>> [size_download] => 15662 [speed_download] => 1100 [speed_upload] => 0
>>> [download_content_length] => 15662 [upload_content_length] => 0
>>> [starttransfer_time] => 9.687 [redirect_time] => 4.547 [certinfo] =>
>>> Array
>>> ( ) [primary_ip] => 127.0.0.1 [primary_port] => 80 [local_ip] =>
>>> 127.0.0.1
>>> [local_port] => 1232 [redirect_url] => ) 1
>>> -
>>>
>>> and reading this the http return code is 200, but i can not get in when
>>> this is made, this is not authenticating fine, what i am doing wrong, y
>>> the
>>> version 2.1.4 this same routine works fine, but in this version 2.2 of
>>> geoserver the routine is not working, help me please.
>>>
>>>
>>>
>>> On 19/05/13 01:38, Christian Mueller wrote:
>>>
>>> I am not a PHP developer, but the exception you see in the log is a
>>> warning, it does not prevent functionality.
>>>
>>>  Is there another exception ?
>>> What is your HTTP return code ?
>>>
>>>  Cheers
>>> Christian
>>>
>>>
>>> 2013/5/18 
>>>
>>>  hello peoples, i need help, i got a problem, i need to auntenticate
 throught php in geoserver, in the past with the version geoserver
 2.1.4 it work fine, but now i want to upgrade my map server to
 geoserver 2.2 and the function dont work here, i dont know what to do,
 help me please, here is the full function that i used and error that
 geoserver 2.2 show, thanks to all.


 public static function loginGeoserver($username, $password)
  {
  $post_data['username'] = $username;
  $post_data['password'] = $password;
  foreach ($post_data as $key => $value) {
  $post_items[] = $key . '=' . $value;
  }
  $post_string = implode('&', $post_items);
  $curl_connection = curl_init('http://' . master::$host .
  '/geoserver/j_spring_security_**check');
  curl_setopt($curl_connection, CURLOPT_CONNECTTIMEOUT, 30);
  curl_setopt($curl_connection, CURLOPT_USERAGENT,
  "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
  curl_setopt($curl_connection, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($curl_connection, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, 1);
  curl_setopt($curl_connection, CURLOPT_POSTFIELDS,
 $post_string);
  $result = curl_exec($curl_connection);
  $arrInfo = curl_getinfo($curl_connection)**;
  $url = $arrInfo['url'];
  parse_str($url, $output);
  $trans = array("." => "_");
  $base = strtr(master::$host, $trans);


  if (master::getLoggedUser() != null) {
  if (master::getLoggedUser()->**tieneRol("Operador"))
  $

Re: [Geoserver-users] PHP , Geoserver 2.2, CURL and j_spring_security_check

2013-05-20 Thread islanis
"Christian Mueller"  escribió:

> Hi
>
> First, please stay on the users list.
>
> Return code 200 is fine, does your PHP library follow HTTP redirects. After
> a login, an HTTP redirect happens to the admin GUI and this redirect must
> include the session cookie called JSESSIONID.
>
> Next problem is your GeoServer version. 2.2.x is out of support. If I find
> a bug, I can only fix it in 2.3.x series. After you have installed  2.2.x
> and migrated your data directory (this happens automatically), you should
> install 2.3.2 .
i will get 2.3.2 in these days, thanks
>
> Do you need access to the GUI or the OGC services. I assume the second one
> and in this case, you should use basic authentication.
yes i want to use access to the OGC services, how in these version  
could i use basic authentication, i have curl in my pc, do you please  
can put an example of a curl sentence and the reply  of the same in  
case of the sentence is fine and in contrary case, to know when the  
log is fine or not, please, thanks.
>
> Cheers
> Christian
>
>
>
>
>
>
>
>
>
>
>
>
> 2013/5/19 J.Alejandro Martinez Linares 
>
>>  This is what i get when a analize the return of the curl request i made
>> this die(printf_r($arrInfo)) and i get this:
>>
>> --
>> Array ( [url] =>
>> http://localhost/geoserver/web/;jsessionid=zusl8frwtoz4?wicket:bookmarkablePage=:org.geoserver.web.GeoServerLoginPage&error=true[content_type]
>>  => text/html; charset=utf-8 [http_code] => 200  
>> [header_size]
>> => 687 [request_size] => 618 [filetime] => -1 [ssl_verify_result] => 0
>> [redirect_count] => 1 [total_time] => 14.234 [namelookup_time] => 0
>> [connect_time] => 0 [pretransfer_time] => 0.047 [size_upload] => 0
>> [size_download] => 15662 [speed_download] => 1100 [speed_upload] => 0
>> [download_content_length] => 15662 [upload_content_length] => 0
>> [starttransfer_time] => 9.687 [redirect_time] => 4.547 [certinfo] => Array
>> ( ) [primary_ip] => 127.0.0.1 [primary_port] => 80 [local_ip] => 127.0.0.1
>> [local_port] => 1232 [redirect_url] => ) 1
>> -
>>
>> and reading this the http return code is 200, but i can not get in when
>> this is made, this is not authenticating fine, what i am doing wrong, y the
>> version 2.1.4 this same routine works fine, but in this version 2.2 of
>> geoserver the routine is not working, help me please.
>>
>>
>>
>> On 19/05/13 01:38, Christian Mueller wrote:
>>
>> I am not a PHP developer, but the exception you see in the log is a
>> warning, it does not prevent functionality.
>>
>>  Is there another exception ?
>> What is your HTTP return code ?
>>
>>  Cheers
>> Christian
>>
>>
>> 2013/5/18 
>>
>>> hello peoples, i need help, i got a problem, i need to auntenticate
>>> throught php in geoserver, in the past with the version geoserver
>>> 2.1.4 it work fine, but now i want to upgrade my map server to
>>> geoserver 2.2 and the function dont work here, i dont know what to do,
>>> help me please, here is the full function that i used and error that
>>> geoserver 2.2 show, thanks to all.
>>>
>>>
>>> public static function loginGeoserver($username, $password)
>>>  {
>>>  $post_data['username'] = $username;
>>>  $post_data['password'] = $password;
>>>  foreach ($post_data as $key => $value) {
>>>  $post_items[] = $key . '=' . $value;
>>>  }
>>>  $post_string = implode('&', $post_items);
>>>  $curl_connection = curl_init('http://' . master::$host .
>>>  '/geoserver/j_spring_security_check');
>>>  curl_setopt($curl_connection, CURLOPT_CONNECTTIMEOUT, 30);
>>>  curl_setopt($curl_connection, CURLOPT_USERAGENT,
>>>  "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
>>>  curl_setopt($curl_connection, CURLOPT_RETURNTRANSFER, true);
>>>  curl_setopt($curl_connection, CURLOPT_SSL_VERIFYPEER, false);
>>>  curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, 1);
>>>  curl_setopt($curl_connection, CURLOPT_POSTFIELDS, $post_string);
>>>  $result = curl_exec($curl_connection);
>>>  $arrInfo = curl_getinfo($curl_connection);
>>>  $url = $arrInfo['url'];
>>>  parse_str($url, $output);
>>>  $trans = array("." => "_");
>>>  $base = strtr(master::$host, $trans);
>>>
>>>
>>>  if (master::getLoggedUser() != null) {
>>>  if (master::getLoggedUser()->tieneRol("Operador"))
>>>  $str = "http://"; . $base . "/geoserver/web/;jsessionid";
>>>  $str = "http://"; . $base . "/geoserver/;jsessionid";
>>>
>>>  curl_close($curl_connection);
>>>  if (!empty($output[$str])) {
>>>  } else {
>>>  //header('Location:
>>> /geoportal/index.php?page=home.home&Error=GeoserverDown');
>>> header('Location:
>>> /personal/index.php?page=inicio&Error=GeoserverDown');
>>>  }
>>>  setcookie('JSESS

Re: [Geoserver-users] PHP , Geoserver 2.2, CURL and j_spring_security_check

2013-05-20 Thread Christian Mueller
Hi

First, please stay on the users list.

Return code 200 is fine, does your PHP library follow HTTP redirects. After
a login, an HTTP redirect happens to the admin GUI and this redirect must
include the session cookie called JSESSIONID.

Next problem is your GeoServer version. 2.2.x is out of support. If I find
a bug, I can only fix it in 2.3.x series. After you have installed  2.2.x
and migrated your data directory (this happens automatically), you should
install 2.3.2 .

Do you need access to the GUI or the OGC services. I assume the second one
and in this case, you should use basic authentication.

Cheers
Christian












2013/5/19 J.Alejandro Martinez Linares 

>  This is what i get when a analize the return of the curl request i made
> this die(printf_r($arrInfo)) and i get this:
>
> --
> Array ( [url] =>
> http://localhost/geoserver/web/;jsessionid=zusl8frwtoz4?wicket:bookmarkablePage=:org.geoserver.web.GeoServerLoginPage&error=true[content_type]
>  => text/html; charset=utf-8 [http_code] => 200 [header_size]
> => 687 [request_size] => 618 [filetime] => -1 [ssl_verify_result] => 0
> [redirect_count] => 1 [total_time] => 14.234 [namelookup_time] => 0
> [connect_time] => 0 [pretransfer_time] => 0.047 [size_upload] => 0
> [size_download] => 15662 [speed_download] => 1100 [speed_upload] => 0
> [download_content_length] => 15662 [upload_content_length] => 0
> [starttransfer_time] => 9.687 [redirect_time] => 4.547 [certinfo] => Array
> ( ) [primary_ip] => 127.0.0.1 [primary_port] => 80 [local_ip] => 127.0.0.1
> [local_port] => 1232 [redirect_url] => ) 1
> -
>
> and reading this the http return code is 200, but i can not get in when
> this is made, this is not authenticating fine, what i am doing wrong, y the
> version 2.1.4 this same routine works fine, but in this version 2.2 of
> geoserver the routine is not working, help me please.
>
>
>
> On 19/05/13 01:38, Christian Mueller wrote:
>
> I am not a PHP developer, but the exception you see in the log is a
> warning, it does not prevent functionality.
>
>  Is there another exception ?
> What is your HTTP return code ?
>
>  Cheers
> Christian
>
>
> 2013/5/18 
>
>> hello peoples, i need help, i got a problem, i need to auntenticate
>> throught php in geoserver, in the past with the version geoserver
>> 2.1.4 it work fine, but now i want to upgrade my map server to
>> geoserver 2.2 and the function dont work here, i dont know what to do,
>> help me please, here is the full function that i used and error that
>> geoserver 2.2 show, thanks to all.
>>
>>
>> public static function loginGeoserver($username, $password)
>>  {
>>  $post_data['username'] = $username;
>>  $post_data['password'] = $password;
>>  foreach ($post_data as $key => $value) {
>>  $post_items[] = $key . '=' . $value;
>>  }
>>  $post_string = implode('&', $post_items);
>>  $curl_connection = curl_init('http://' . master::$host .
>>  '/geoserver/j_spring_security_check');
>>  curl_setopt($curl_connection, CURLOPT_CONNECTTIMEOUT, 30);
>>  curl_setopt($curl_connection, CURLOPT_USERAGENT,
>>  "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
>>  curl_setopt($curl_connection, CURLOPT_RETURNTRANSFER, true);
>>  curl_setopt($curl_connection, CURLOPT_SSL_VERIFYPEER, false);
>>  curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, 1);
>>  curl_setopt($curl_connection, CURLOPT_POSTFIELDS, $post_string);
>>  $result = curl_exec($curl_connection);
>>  $arrInfo = curl_getinfo($curl_connection);
>>  $url = $arrInfo['url'];
>>  parse_str($url, $output);
>>  $trans = array("." => "_");
>>  $base = strtr(master::$host, $trans);
>>
>>
>>  if (master::getLoggedUser() != null) {
>>  if (master::getLoggedUser()->tieneRol("Operador"))
>>  $str = "http://"; . $base . "/geoserver/web/;jsessionid";
>>  $str = "http://"; . $base . "/geoserver/;jsessionid";
>>
>>  curl_close($curl_connection);
>>  if (!empty($output[$str])) {
>>  } else {
>>  //header('Location:
>> /geoportal/index.php?page=home.home&Error=GeoserverDown');
>> header('Location:
>> /personal/index.php?page=inicio&Error=GeoserverDown');
>>  }
>>  setcookie('JSESSIONID', $output[$str], 0, '/geoserver');
>>  setcookie('JSESSIONID', $output[$str], 0, '/');
>>  } else {
>>  return null;
>>  }
>>
>>  }
>> ---
>> and the geoserver 2.2 logs show this
>> -
>> 2013-05-17 22:37:48,863 INFO [ows.OWSHandlerMapping] - Mapped URL path
>> [/animate/*] onto handler 'dispatcher'
>> 2013-05-17 22:37:49,861 WARN [geoserver.security] -
>> E:\geoserver

[Geoserver-users] GetCapabilities 1.1.1 error

2013-05-20 Thread Dmitriy Tyugaev
Hi list,

I get an error when a request getCapabilities document version=1.1.1 from
the geoserver 2.3.0 with default data directory.

http://localhost:8090/geoserver/tiger/wms?SERVICE=WMS&REQUEST=GetCapabilities&TILED=true&VERSION=1.1.1-
ERROR

11 Apr 16:42:44 ERROR [geoserver.ows] -
org.geoserver.platform.ServiceException:
javax.xml.transform.TransformerException: java.lang.NullPointerException:
at index 4

Request with the parameter version=1.3.0 works fine.
http://localhost:8090/geoserver/tiger/wms?SERVICE=WMS&REQUEST=GetCapabilities&TILED=true&VERSION=1.3.0-
OK

Also, if I request without workspace in url, all works fine.
http://localhost:8090/geoserver/wms?SERVICE=WMS&REQUEST=GetCapabilities&TILED=true&VERSION=1.1.1-
OK

I tested in different environments and found that this error occurs only
after authorization in administrative panel of geoserver. Very strange!

This problem only for me? Please someone try to login and request getCaps
version 1.1.1 from any workspace.

--
Sincerely, Dmitriy
--
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Publishing static content

2013-05-20 Thread Philip Donner
Thanks, Andrea, for kind advice. I have the impression that similar problems 
apply to other types of upload. Although setting
up a coveraqestore can be achieved without difficulty, I haven't been able to 
upload the relevant geotiff material either. Is
REST a configuration tool only, or should we be able to upload source material 
as well?


--
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geoserver Header Auth

2013-05-20 Thread Thomas Colley
Hi Christian / Andrea (sorry for not replying sooner)

 

Thanks for your replies. I currently have the default filter chain set
as follows:

 

Proxy

Basic

Anonymous

 

The only other options are form authentication and rememberme.

 

Once the header has been sent (when requesting getcapabilities) any
subsequent getmap requests are fine but the getfeatureinfo request fails
if there are any layers that need authentication visible on the map.

 

Andrea's suggestion that the GET request isn't keeping the header/cookie
sounds about right. I could route each getfeatureinfo  request through a
proxy to add the header in the same way as I do for the getcapabilities
but I was hoping there might be another way.

 

The version of GeoServer is 2.2.4

 

Thanks for the help

 

Tom

 

 

 

From: Christian Mueller [mailto:christian.muel...@os-solutions.at] 
Sent: 18 May 2013 10:18
To: Andrea Aime
Cc: Thomas Colley; GeoServer Mailing List List
Subject: Re: [Geoserver-users] Geoserver Header Auth

 

As Andrea already mentioned,  the header has to be present in each
request but only if the security filter chain does not allow to create
an HTTP session. (Out of the box, HTTP session creation is only allowed
for the "web" filter chain). 

 

If you allow HTTP session creation on the "default" filter chain, you
need to send the header only once, subsequent calls will use a session
cookie.

 

Cheers

Christian

 

 

2013/5/14 Andrea Aime 

On Tue, May 14, 2013 at 9:07 AM, Thomas Colley
 wrote:

Is this expected behaviour? I was expecting either all requests
to fail after the initial GetCapabilities or that once authenticated
geoserver would 'remember' the header and everything would work.

 

Hum, not sure, but normally GetFeatureInfo is done as an ajax request.
Wondering if the header is kept when you follow the ajax code path?

Afaik the header should still be present in each request.

 

Cheers

Andrea

 

-- 

==

GeoServer training in Milan, 6th & 7th June 2013!  Visit
http://geoserver.geo-solutions.it 
for more information.
==

 

Ing. Andrea Aime 

@geowolf

Technical Lead

 

GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054  Massarosa (LU)

Italy

phone: +39 0584 962313  

fax: +39 0584 1660272  

mob: +39  339 8844549  

 

http://www.geo-solutions.it

http://twitter.com/geosolutions_it

 

---



--
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users





 

-- 

DI Christian Mueller MSc (GIS), MSc (IT-Security)

OSS Open Source Solutions GmbH

 

--
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] GeoServer 2.3.1 and SQL server 2012

2013-05-20 Thread Andrea Aime
On Fri, May 17, 2013 at 4:55 PM, Meichun Li  wrote:

> Hi,
> I’ve seen the updates of GeoServer for SQL server on
> http://blog.geoserver.org/. But I can’t find any information if it is
> compatible with SQL server 2012. Any one  got GeoServer Working with SQL
> Server 2012? I need to make sure it works before we purchase SQL server
> 2012 license.
> “A couple of changes in the SQL Server data increase performance, provided
> you enable the relevant flags. One is the ability to transfer geometries in
> SQL Server native format, as opposed to using WKB, which avoids the slow
> WKB generation routines included in SQL Server, the other allows to disable
> native paging, which can sometimes lead the SQL Server query planner to
> create bad data access plans 
> (GEOS-5750and
> GEOS-5314 ). The native
> geometry serialization was sponsored by Norwegian Directorate for Nature
> Management and performed by Bouvet, thanks to Stewart Loving-Gibbard for
> the paging patch.”
>

Eh, don't know. I only have SQL Server 2008 locally, maybe Bouvet or
Stewart have more recent news...

Cheers
Andrea

-- 
==
GeoServer training in Milan, 6th & 7th June 2013!  Visit
http://geoserver.geo-solutions.it for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

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

---
--
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Publishing static content

2013-05-20 Thread Andrea Aime
On Mon, May 20, 2013 at 9:36 AM, Philip Donner  wrote:

> Sorry if this is a FAQ or even too trivial to be dealt with. The manual
> mentions the fact that GeoServer can be used as a
> simple web server. We are allowed to place static files in the www
> subdirectory of the GeoServer data directory.


What is wrong: URL, method or headers?
>

Method. The www folder only supports GET requests, if you want to add
content by PUT (I assume, authenticating
as admin in the process) code would need to be added to GeoServer.

Cheers
Andrea

-- 
==
GeoServer training in Milan, 6th & 7th June 2013!  Visit
http://geoserver.geo-solutions.it for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

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

---
--
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Publishing static content

2013-05-20 Thread Philip Donner
Sorry if this is a FAQ or even too trivial to be dealt with. The manual 
mentions the fact that GeoServer can be used as a
simple web server. We are allowed to place static files in the www subdirectory 
of the GeoServer data directory. However, I
wasn't able to locate the directory over HTTP. This is the structure of my HTTP 
request:

PUT geo.server.fi:8090/geoserver/www/test.htm HTTP/1.1
Host: geo.server.fi:8090
Content-Type: text/html
Content-Length: 618
Pragma: No-Cache
User-Agent: HTTP Request Mediator, ver. 1.0.5 (build 83)
Date: Mon, 20 May 2013 07:11:08 GMT
Authorization: Basic MyEncodededUserNameAndPassword==

http://www.w3.org/TR/html4/strict.dtd";>


[My test file]



The server responds with status 405 Request method 'PUT' not supported, headers 
and an error message:

Allow: POST, HEAD, GET
Content-Type: text/html; charset=iso-8859-1
Content-Length: 1458
Server: Jetty(6.1.8)




Error 405 Request method 'PUT' not supported

HTTP ERROR: 405Request method 'PUT' not supported
RequestURI=/geoserver/www/test.htmhttp://jetty.mortbay.org/";>Powered by
Jetty://   
 
 


If I switch to the POST method I get status 404 Not Found

What is wrong: URL, method or headers?


--
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Grant anonymous admin access to web interface

2013-05-20 Thread Andrea Aime
On Mon, May 20, 2013 at 8:41 AM, Christian Mueller <
christian.muel...@os-solutions.at> wrote:

> Forgot to ask, should I open a JIRA issue.
>

I'd say yes... at the very least we have an inconsistency between
documented behavior and actual one

Cheers
Andrea


-- 
==
GeoServer training in Milan, 6th & 7th June 2013!  Visit
http://geoserver.geo-solutions.it for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

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

---
--
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Staring issue with WMS and public IP

2013-05-20 Thread Shadin
I'm facing a strange problem with my application (Openlayers). It works with
private IP but not with public IP !! Everything was fine when I was using
WFS/Vector. but since I switch to WMS, problem showed up!! seems like it
couldn't retrieve layers from Geoserver. Locally, it's okay but using puplic
IP it's not!

Note: My src is on port 80 and GeoServer is on port 8080



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Staring-issue-with-WMS-and-public-IP-tp5054322.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users