[Geoserver-users] GWC Capabilities - Catalog Mode, Security and Direct Integration

2017-06-07 Thread Rodrigo Antonialli
Hi everyone!

I'm configuring a new instance of Geoserver (v. 2.11.1) and setting the
embeded GeoWebCache.

I have 2 doubts:

Short version:

*First:* Does the Catalog Mode applies to GWC ?

*Second:* When enabling Direct integration with WMS, requests to default
WMS always tries GWC firs? How does data security applies with this setup?


Long version:

*First: *I've set the following options within Caching Defaults panel:

[checked] Enable direct integration with GeoServer WMS
[checked] Enable WMS-C Service
[ ] Enable TMS Service
[checked] Enable Data Security

Then, I've set a Data Security Rule for topp:states layer:

topp.states.r = ROLE_AUTHENTICATED

With this rule and *Caralog Mode HIDE*, the layer is not shown in
capabilities request for WMS and WFS, but it is listed for
/GWC/SERVICE/WMTS and /GWC/SERVICE/WMS capabilities.

Is this the expected behaviour or I'm missing something? Just to know, the
access to the layer itself is restricted using any service (when accessing
it using openlayers wmts
, no error is
shown, although the layer is not shown if i'm not authenticated).

*Second: *To avoid this "problem" with GetCapabilities of GWC,* l*et's say
I keep:

[checked] Enable direct integration with GeoServer WMS
[ ] Enable WMS-C Service
[ ] Enable TMS Service
[ ] Enable Data Security

and now set up a service rule like this:

gwc.* = ADMIN


Does it means that requests to /GEOSERVER/WMS (and virtual endpoints) will
always try GWC first, even for public layers? Using it this way does it
mean I dont need /geoserver/gwc/service/wms or /geoserver/gwc/service/wmts
endpoints to use gwc?

I'm imagining this: now, only admin can use GWC directly and so, only admin
can see all the layers in capabilities doc of gwc. Any other user will
benefit from gwc when acessing WMS... the data security and catalog mode is
now controlled by Geoserver WMS only...  is this correct? Or should I
enable Data Security anyway?

Thanks!


Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcantonialli
Contato:  rcantonia...@gmail.com
  Skype: rc_antonialli
--
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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] REST API for adding new layer to existing LayerGroup

2014-04-30 Thread Rodrigo Antonialli
Hi,

I did this some time ago... You just need to GET the description of the
layergroup , via REST. (Something like:
http://localhost:8080/geoserver/rest/layergroups/.[format] (I
used json in format).

Then you need to add the new layer to the json, with something like this:

{
name: "layer_name",
href: "http://localhost:8080/geoserver/rest/layers/layer_name.json";
}

(This is valid only when using json)...

At last, all you need to do is POST it back to the same URL you got it.

Getting the layergroup description will show you all you can change in
it...

Regards,

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcantonialli
Contato:  (19) 98136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


On Tue, Apr 29, 2014 at 5:29 PM, tt5430  wrote:

> I have an existing layerGroup:
> workspace: NAIP
> name: NAIP-Imagery
> and a new layer that I would like to add to this layerGroup:
> workspace:NAIP
> store: Store1
> layerName: layer1
>
> I'd like to add this layer to the layerGroup and could not find any example
> for that.  All examples I saw were to create new layerGroup with layers.  I
> assume this can be done with REST api and hope someone can show me how.
>
> Many thanks in advance.
>
> Regards,
> Tam
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/REST-API-for-adding-new-layer-to-existing-LayerGroup-tp5137863.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
> --
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] REST GET public workspace

2014-02-06 Thread Rodrigo Antonialli
Hi Andrea,

Thanks for that info!

So, to make this, I'm trying to implement a WPS that receives the layer
name, the output format and the username that is requesting the featuretype
description.

The process is checking permissions accessing user info at database
(configured as JDBC at Geoserver) and layers.properties file. It looks like
this will solve this situation.

(Actually, we are using WPS for many other things than geometric/geographic
processes)

Regards,



Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcantonialli
Contato:  (19) 98136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


On Thu, Feb 6, 2014 at 7:09 AM, Andrea Aime wrote:

> On Wed, Feb 5, 2014 at 12:42 PM, Rodrigo Antonialli <
> rcantonia...@gmail.com> wrote:
>
>> Hi everyone!
>>
>> I have a question about REST configuration.
>>
>> Is it possible to allow a GET request to a featureType description from
>> anonymous access, without give ADMIN permission to the workspace?
>>
>
> No. I believe that when the "admin per workspace" work was carried out all
> ability to give access to REST to non admin users
> was lost (
> http://geoserver.org/display/GEOS/GSIP+74+-+Finer+Grained+Admin+Security),
> I've discovered that later when upgrading
> our GeoServer training material. Not sure if the change was intended or
> was a side effect, the GSIP does not say it explicitly.
>
> Cheers
> Andrea
>
> --
> == Our support, Your Success! Visit http://opensdi.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
>
> ---
>
--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] REST GET public workspace

2014-02-05 Thread Rodrigo Antonialli
Hi everyone!

I have a question about REST configuration.

Is it possible to allow a GET request to a featureType description from
anonymous access, without give ADMIN permission to the workspace?

This is the scenario:

I have a workspace ("proj_base") which is public. Actually, I have no rules
defined for this workspace in layers.properties. So anyone can see the
layers in GetCapabilities and request a GetMap to WMS. But only admin user
can edit featuretypes.

What I want now is to perform a rest request to get a featuretype
description of these layers, to show users (or anyone who access my
application) some metadata, like title, abstract, srs, bounding box...

My current rest.properties file have these rules:

/**;GET=ROLE_AUTHENTICATED
/**;POST,DELETE,PUT=ADMINISTRADOR

The only way I was able to give access to the featuretype description via
REST was defining an ADMIN permission to the workspace...

But I don't want to let anyone modify the public layers (the allowed users
can modify the featuretypes via geoserver interface.. although I'm looking
for restrict access to this interface, I'd like to prevent editing by
rules).

Is there a way to achieve this?

Thanks in advance,

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcantonialli
Contato:  (19) 98136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli
--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] MapPreviewPage errors

2014-02-05 Thread Rodrigo Antonialli
Hi again!

Part of the problem solved... At least, the warn messages are not shown
infinitely anymore.
I've done a diff between my current geoserver data dir and the original
one.
Then I copied the files that were different from original.
Most of the files were filters config.xml (and I don't know why they
changed... probably something stupid I did... o.O)
Now the warn messages are shown only when the MapPreview is opened.

Regards,


Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcantonialli
Contato:  (19) 98136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


On Tue, Feb 4, 2014 at 4:13 PM, Rodrigo Antonialli
wrote:

> Hi!
>
> I have a doubt about some log messages from geoserver. The version I'm
> running is 2.2.5 (old, I know).
>
> There are 3 installations with this version, running in Apache Tomcat
> 7.0.35.
>
> Two of them are quite normal, running in a perfect state.
>
> One of them is throwing some WARN messages in log repeatedly right after
> start. In a few minutes, geoserver log files rotates at a size of 11M each.
>
> For coincidence or not, this instalation is very slow lately.
>
> Does anyone have a clue if these messages are related to the performance
> problem? And what are they about?
>
> Sorry, I know this is an old version of geoserver, and that I have other
> installations in order, but this is my main development environment.
>
> Oh! I also tried install a new tomcat and a new geoserver.war deploy (same
> versions) but the messages were still there, infinitely repeating
>
> The WARN messages are bellow!
>
> Regards,
>
> 2014-02-04 15:39:08,124 WARN [geoserver.web] - Unable to find property:
> 'format.wms.image/png; mode=8bit' for component:
>  [class=org.geoserver.web.demo.MapPreviewPage]
> 2014-02-04 15:39:08,124 WARN [geoserver.web] - Unable to find property:
> 'format.wms.application/vnd.google-earth.kmz xml' for component:
>  [class=org.geoserver.web.demo.MapPreviewPage]
> 2014-02-04 15:39:08,124 WARN [geoserver.web] - Unable to find property:
> 'format.wms.application/vnd.google-earth.kmz' for component:
>  [class=org.geoserver.web.demo.MapPreviewPage]
> 2014-02-04 15:39:08,126 WARN [geoserver.web] - Unable to find property:
> 'format.wms.kmz' for component:
>  [class=org.geoserver.web.demo.MapPreviewPage]
> 2014-02-04 15:39:08,126 WARN [geoserver.web] - Unable to find property:
> 'format.wms.openlayers' for component:
>  [class=org.geoserver.web.demo.MapPreviewPage]
> 2014-02-04 15:39:08,126 WARN [geoserver.web] - Unable to find property:
> 'format.wms.text/html' for component:
>  [class=org.geoserver.web.demo.MapPreviewPage]
> 2014-02-04 15:39:08,127 WARN [geoserver.web] - Unable to find property:
> 'format.wms.atom' for component:
>  [class=org.geoserver.web.demo.MapPreviewPage]
> 2014-02-04 15:39:08,127 WARN [geoserver.web] - Unable to find property:
> 'format.wms.application/atom xml' for component:
>  [class=org.geoserver.web.demo.MapPreviewPage]
> 2014-02-04 15:39:08,127 WARN [geoserver.web] - Unable to find property:
> 'format.wms.application/xml' for component:
>  [class=org.geoserver.web.demo.MapPreviewPage]
> 2014-02-04 15:39:08,128 WARN [geoserver.web] - Unable to find property:
> 'format.wms.image/svg' for component:
>  [class=org.geoserver.web.demo.MapPreviewPage]
> 2014-02-04 15:39:08,128 WARN [geoserver.web] - Unable to find property:
> 'format.wms.image/svg xml' for component:
>  [class=org.geoserver.web.demo.MapPreviewPage]
> 2014-02-04 15:39:08,133 WARN [geoserver.web] - Unable to find property:
> 'format.wfs.application/json' for component:
>  [class=org.geoserver.web.demo.MapPreviewPage]
> 2014-02-04 15:39:08,133 WARN [geoserver.web] - Unable to find property:
> 'format.wfs.application/json' for component:
>  [class=org.geoserver.web.demo.MapPreviewPage]
> 2014-02-04 15:39:08,134 WARN [geoserver.web] - Unable to find property:
> 'format.wfs.application/json' for component:
>  [class=org.geoserver.web.demo.MapPreviewPage]
> 2014-02-04 15:39:08,134 WARN [geoserver.web] - Unable to find property:
> 'format.wfs.application/json' for component:
>  [class=org.geoserver.web.demo.MapPreviewPage]
> 2014-02-04 15:39:08,134 WARN [geoserver.web] - Unable to find property:
> 'format.wfs.application/json' for component:
>  [class=org.geoserver.web.demo.MapPreviewPage]
> 2014-02-04 15:39:08,153 WARN [geoserver.web] - Unable to find property:
> 'format.wms.image/png; mode=8bit' for component:
>  [class=org.geoserver.web.demo.MapPreviewPage]
> 2014-02

[Geoserver-users] MapPreviewPage errors

2014-02-04 Thread Rodrigo Antonialli
Hi!

I have a doubt about some log messages from geoserver. The version I'm
running is 2.2.5 (old, I know).

There are 3 installations with this version, running in Apache Tomcat
7.0.35.

Two of them are quite normal, running in a perfect state.

One of them is throwing some WARN messages in log repeatedly right after
start. In a few minutes, geoserver log files rotates at a size of 11M each.

For coincidence or not, this instalation is very slow lately.

Does anyone have a clue if these messages are related to the performance
problem? And what are they about?

Sorry, I know this is an old version of geoserver, and that I have other
installations in order, but this is my main development environment.

Oh! I also tried install a new tomcat and a new geoserver.war deploy (same
versions) but the messages were still there, infinitely repeating

The WARN messages are bellow!

Regards,

2014-02-04 15:39:08,124 WARN [geoserver.web] - Unable to find property:
'format.wms.image/png; mode=8bit' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,124 WARN [geoserver.web] - Unable to find property:
'format.wms.application/vnd.google-earth.kmz xml' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,124 WARN [geoserver.web] - Unable to find property:
'format.wms.application/vnd.google-earth.kmz' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,126 WARN [geoserver.web] - Unable to find property:
'format.wms.kmz' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,126 WARN [geoserver.web] - Unable to find property:
'format.wms.openlayers' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,126 WARN [geoserver.web] - Unable to find property:
'format.wms.text/html' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,127 WARN [geoserver.web] - Unable to find property:
'format.wms.atom' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,127 WARN [geoserver.web] - Unable to find property:
'format.wms.application/atom xml' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,127 WARN [geoserver.web] - Unable to find property:
'format.wms.application/xml' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,128 WARN [geoserver.web] - Unable to find property:
'format.wms.image/svg' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,128 WARN [geoserver.web] - Unable to find property:
'format.wms.image/svg xml' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,133 WARN [geoserver.web] - Unable to find property:
'format.wfs.application/json' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,133 WARN [geoserver.web] - Unable to find property:
'format.wfs.application/json' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,134 WARN [geoserver.web] - Unable to find property:
'format.wfs.application/json' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,134 WARN [geoserver.web] - Unable to find property:
'format.wfs.application/json' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,134 WARN [geoserver.web] - Unable to find property:
'format.wfs.application/json' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,153 WARN [geoserver.web] - Unable to find property:
'format.wms.image/png; mode=8bit' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,153 WARN [geoserver.web] - Unable to find property:
'format.wms.application/vnd.google-earth.kmz xml' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,153 WARN [geoserver.web] - Unable to find property:
'format.wms.application/vnd.google-earth.kmz' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,153 WARN [geoserver.web] - Unable to find property:
'format.wms.kmz' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,154 WARN [geoserver.web] - Unable to find property:
'format.wms.openlayers' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,154 WARN [geoserver.web] - Unable to find property:
'format.wms.text/html' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,154 WARN [geoserver.web] - Unable to find property:
'format.wms.atom' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,154 WARN [geoserver.web] - Unable to find property:
'format.wms.application/atom xml' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-02-04 15:39:08,155 WARN [geoserver.web] - Unable to find property:
'format.wms.application/xml' for component:
 [class=org.geoserver.web.demo.MapPreviewPage]
2014-

Re: [Geoserver-users] Advertised = True

2014-02-04 Thread Rodrigo Antonialli
Hi Roger,

I believe this can be done via a PUT request with the layer or featureType
description (depending on what you want to change).

I only changed  this way, but the description is something like:


  featureTypeName 
  nativeName 
  true|false 
 [...]
 

You should choose between true or false, and change name and nativeName to
the defined in your featureType.

To change advertised, only add:  true  (or false)

I don't know if it is necessary to put the whole featureType description
(I'm putting the whole description).

Regards,


Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcantonialli
Contato:  (19) 98136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


On Tue, Feb 4, 2014 at 11:53 AM, Roger Bedell wrote:

> Thanks Jonathan.
> Anyone else care to comment how to change the "advertised" for a layer via
> the REST API?
>
> Thanks!
> Roger
>
>
> On Mon, Feb 3, 2014 at 6:25 PM, Jonathan Moules <
> jonathanmou...@warwickshire.gov.uk> wrote:
>
>> Hi Roger,
>> I'm using the web-interface. I'm afraid I'm not sure about doing it
>> through the REST API.
>>
>> Alternately you can also alter the XML files yourself manually.
>>  Cheers,
>> Jonathan
>>
>>
>> On 31 January 2014 21:07, Roger Bedell  wrote:
>>
>>> Hello Jonathan,
>>>
>>> I'm scratching my head. How did you get advertised to change? I'm trying
>>> to do this via Rest API.
>>>
>>> Thanks,
>>> Roger
>>>
>>>
>>>
>>>
>>> On Mon, Oct 7, 2013 at 12:41 PM, Jonathan Moules <
>>> jonathanmou...@warwickshire.gov.uk> wrote:
>>>
 Hi List,
 Just a curiousity - why are.
   true
false

 Both declared in both the featuretype.xml file and the layer.xml file
 for each layer? Shouldn't it just be declared in one fo them? Changing the
 featureType advertised did nothing which left me scratching my head for a
 while.

 Thanks,
 Jonathan

 This transmission is intended for the named addressee(s) only and may
 contain sensitive or protectively marked material up to RESTRICTED and
 should be handled accordingly. Unless you are the named addressee (or
 authorised to receive it for the addressee) you may not copy or use it, or
 disclose it to anyone else. If you have received this transmission in error
 please notify the sender immediately. All email traffic sent to or from us,
 including without limitation all GCSX traffic, may be subject to recording
 and/or monitoring in accordance with relevant legislation.

 --
 October Webinars: Code for Performance
 Free Intel webinars can help you accelerate application performance.
 Explore tips for MPI, OpenMP, advanced profiling, and more. Get the
 most from
 the latest Intel processors and coprocessors. See abstracts and
 register >

 http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
 ___
 Geoserver-users mailing list
 Geoserver-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/geoserver-users


>>>
>>
>> This transmission is intended for the named addressee(s) only and may
>> contain sensitive or protectively marked material up to RESTRICTED and
>> should be handled accordingly. Unless you are the named addressee (or
>> authorised to receive it for the addressee) you may not copy or use it, or
>> disclose it to anyone else. If you have received this transmission in error
>> please notify the sender immediately. All email traffic sent to or from us,
>> including without limitation all GCSX traffic, may be subject to recording
>> and/or monitoring in accordance with relevant legislation.
>>
>
>
>
> --
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Fwd: [Neo4j] Re: Geoserver 2.3.2 and Neo4j [SOLVED]

2013-06-20 Thread Rodrigo Antonialli
Hi Andrea,

[This is an answer to your suggestion about the community module. (I don't
know if this message will follow the thread...)]

Please, take a look at our comments below. The discussion continued outside
geoserver list.

I believe there are some definitions to do with neo4j first, but the idea
to do a community module is nice too. It also depends on what neo4j-spatial
developers think about it. I'm just a new user... using it.

As an user, I believe that the combination of geoserver and neo4j is great.
Graph databases are excellent to model spatial (and complex non-spatial)
data. Geoserver is awesome to publish them in OGC standards.

I always wanted to contribute to geoserver somehow, but never got time. The
same may happen now with neo4j, but I'm insisting.

Also, I don't know if I will be capable to help. But I hope so!

Cheers!

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


-- Forwarded message --
From: Rodrigo Antonialli 
Date: Thu, Jun 20, 2013 at 2:40 PM
Subject: Re: [Neo4j] Re: Geoserver 2.3.2 and Neo4j [SOLVED]
To: ne...@googlegroups.com


Hi Peter and Michael,

Let me see if I can organize my thoughts.

When deploying neo4j-spatial as a geoserver plugin, I'm giving to geoserver
access to neo4j database files, this way it can build a datastore from this
access.

To deploy, the only step needed is to copy the generated jars from
neo4j-spatial compilation to geoserver lib directory.

Once geoserver is up, it creates a lock accessing neo4j database files.

To solve the lock file situation, I see two exits:

Modify neo4j-spatial (and maybe neo4j-server) to do:

1) run neo4j-server (like in neo4j start command)
2) neo4j-server should expose some kind of connection (like jdbc/odbc.. but
not them) to let other apps to have access to the instanciated graph
database inside neo4j-server.
3) Most features from neo4j-spatial should be embedded neo4j-server.
4) From geoserver side, I would be necessary to build a client to
neo4j-server and build a geoserver datastore using this connection.

This first approach is similar to how a postgres datastore works (I don't
know details about it in geoserver, but I think it's something like that).

The second approach would be to use the references that Michael pointed.

1) Add to neo4j-spatial the ability to start an embedded server to expose
rest api and other server features.
2) Expose the graph database instance created by neo4j-spatial to be
accessed from WPS (or any other geoserver point). Now, its just an local
variable used by Neo4jSpatialDataStore.

This way we could use the neo4j datastore, have access to rest api, and
also use neo4j-spatial features from WPS for example. It would be possible
to use neo4j java api from WPS too.

This second approach would run neo4j-server inside an app that is inside
some server, like apache tomcat. I don't know how things would work.

Am I thinking right or just saying the obvious?

Finally, Peter, I will clean up my test environment, and build a new one
with geotools updates. I'll try to unify the documents and steps.

To make it automatic, I don't know, because it's already simple, to copy
jars to geoserver lib dir. To build neo4j with geoserver, I believe that
maven makes things easy.

Well, I can try some of the things above, and maybe it worth a t-shirt =P

Cheers!

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


On Thu, Jun 20, 2013 at 10:59 AM, Peter Neubauer <
peter.neuba...@neotechnology.com> wrote:

> Rodrigo,
> I updated the GeoTools libs to 9.2, can you check if things are smoother
> now? Also, any automated way of deploying Neo4j Spatial into a fresh
> geoserver instance would be elegible for a personal T-Shirt! Just sayin' :)
>
> /peter
>
>
> Cheers,
>
> /peter neubauer
>
> G:  neubauer.peter
> S:  peter.neubauer
> P:  +46 704 106975
> L:   http://www.linkedin.com/in/neubauer
> T:   @peterneubauer
>
> Kids in Malmö this summer?   - http://www.kidscraft.se
> Neo4j questions? Please use SO - http://stackoverflow.com/search?q=neo4j
>
>
> On Thu, Jun 20, 2013 at 12:29 AM, Rodrigo Antonialli <
> rcantonia...@gmail.com> wrote:
>
>> Hi!
>>
>> Peter, the diffs are listed in the attached file. (if you can't see it,
>> let me know).
>>
>>  
>> Geoserver_Neo4j_Libs<https://docs.google.com/spreadsheet/ccc?key=0AtZaRYlNjAl9dGJFampiMk1DV3kyTTdNSU82dnhNNEE&usp=drive_web>
>>
>> On Wed, Jun 19, 2013 at 12:21 PM, Peter Ne

Re: [Geoserver-users] [Neo4j] Re: Geoserver 2.3.2 and Neo4j [SOLVED]

2013-06-18 Thread Rodrigo Antonialli
Hi Peter,

Sure, my intent is to do an example project. I can document it (but it will
take some time). This afternoon I loaded a shapefile into neo4j. Although
the loader had printed some errors, the nodes were loaded. Tomorrow morning
I need to check if this worked and if the layer will load into geoserver.

Some notes:

I did nothing different than what is in neo4j-spatial readme at github,
except remove the older xerces jar file (the one created by neo4j-spatial).

One thing I noticed was that I've built the 2.0.0 SNAPSHOT version of
neo4j-spatial and I was using neo4j 1.9.
I've fixed it in the neo4j side (downloading the pre-compiled zip from
github), but not yet at geoserver side (tomorrow morning I will!).

Finally, I did the shp import as in the example. Like that, I couldn't use
neo4j from java while the server was running. Is this the default behavior?
Also, is there some way to load shapefiles into the running server? (It
would be nice to load them and still have access through rest api).

As soon as I finish these tests, I'll report the conclusion and
documentation.

Cheers,

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


On Tue, Jun 18, 2013 at 4:56 PM, Peter Neubauer <
peter.neuba...@neotechnology.com> wrote:

> Rodrigo,
> you having a working GeoServer installation is terrific! Could you somehow
> document your setup, make an example project or enhance the existing docs
> so others can do this? Maybe a blog or screencast would be good?
>
> /peter
>
>
> Cheers,
>
> /peter neubauer
>
> G:  neubauer.peter
> S:  peter.neubauer
> P:  +46 704 106975
> L:   http://www.linkedin.com/in/neubauer
> T:   @peterneubauer
>
> Kids in Malmö this summer?   - http://www.kidscraft.se
> Neo4j questions? Please use SO - http://stackoverflow.com/search?q=neo4j
>
>
> On Tue, Jun 18, 2013 at 7:14 PM, Rodrigo Antonialli <
> rcantonia...@gmail.com> wrote:
>
>> Hello again!!
>>
>> I just figured it out!!! Googling about the last error *"Caused by:
>> java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.
>> XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/**
>> XMLInputSource;)"* I've found this 
>> post<http://stackoverflow.com/questions/7545340/java-lang-nosuchmethoderror-org-apache-xerces-impl-xs-xmlschemaloader-loadgramm>
>>  and
>> looked again in geoserver/WEB-INF/lib... there were 2 xerces jar files. One
>> in version 2.7.1 (geoserver) and another 2.4.0 (neo4j).
>>
>> I removed the xercesImpl-2.4.0.jar from lib and restarted geoserver. Now
>> I can see Neo4j as a Vector Data Source.
>>
>> Well, I should have searched this before, but now, there's a hint in both
>> lists.
>>
>> I didn't make a test yet... hope it works fine!
>>
>> Rodrigo C. Antonialli
>> ==========
>> Rio Claro - SP - Brasil
>> LinkedIn: http://www.linkedin.com/in/rcaprofile
>> Contato:  (19) 8136-2347
>>   rcantonia...@gmail.com
>>   Skype: rc_antonialli
>>
>>
>> On Tue, Jun 18, 2013 at 12:16 PM, Rodrigo Antonialli <
>> rcantonia...@gmail.com> wrote:
>>
>>> Hi everyone!
>>>
>>> First thing: I'm sending this to both geoserver and neo4j mailling
>>> lists. I hope someone can help!
>>> Also, that's my first time in neo4j list!
>>>
>>> I just got geoserver 2.3.2 and Apache Tomcat 7.0.35 (maybe not tomcat
>>> lastest version)
>>>
>>> Deployed the war file to webapps and geoserver run ok! Also fnished
>>> configurations (remove users.properties.old and so on).
>>>
>>> I'm trying to configure neo4j as a geoserver store following these
>>> steps: https://github.com/neo4j/spatial#neo4j-spatial-geoserver-plugin
>>>
>>> I did the following until now:
>>>
>>> 1. git clone https://github.com/neo4j/spatial.git
>>>
>>> This created a spatial dir.
>>>
>>> 2. cd spatial
>>>
>>> 3. mvn clean install (using a normal user. Build success =] )
>>>
>>> 4. unziped neo4j-spatial-0.12-neo4j-2.0.0-SNAPSHOT-server-plugin.zip
>>> generated at target dir to geoserver/WEB-INF/lib (backed up it before =) )
>>>
>>> Now, When I start geoserver I see the errors right bellow this message.
>>>
>>> I know that neo4j-spatial was only tested with geoserver 2.1.1. But it
>>> is a very old version, once its

[Geoserver-users] Fwd: unable to start GS 2.3.2 due to GWC

2013-06-18 Thread Rodrigo Antonialli
Forgot the list!

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


-- Forwarded message --
From: Rodrigo Antonialli 
Date: Tue, Jun 18, 2013 at 3:25 PM
Subject: Re: [Geoserver-users] unable to start GS 2.3.2 due to GWC
To: Imran Rajjad 


Hi Imran!

I don't know if it's truly the cause, but I faced a similiar problem just
some hours ago (although it was a very different context).

The point is that I had a "NoSuchMethodError" too... It was related with
some divergent versions of jar files coexisting (in my case it was xerces
jars in WEB-INF/lib).

Maybe you should take a look in what is causing the "NoSuchMethodError",
it's related to com.google.common... (and I have no ideia what it is =])

Hope it helps!


On Tue, Jun 18, 2013 at 3:09 PM, Imran Rajjad  wrote:

> Caused By: java.lang.NoSuchMethodError: com.google.common.util.**
> concurrent.MoreExecutors.**sameThreadExecutor()Lcom/**
> google/common/util/concurrent/**ListeningExecutorService;
>



Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli
--
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geoserver 2.3.2 and Neo4j [SOLVED]

2013-06-18 Thread Rodrigo Antonialli
Hello again!!

I just figured it out!!! Googling about the last error *"Caused by:
java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.
XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/**
XMLInputSource;)"* I've found this
post<http://stackoverflow.com/questions/7545340/java-lang-nosuchmethoderror-org-apache-xerces-impl-xs-xmlschemaloader-loadgramm>
and
looked again in geoserver/WEB-INF/lib... there were 2 xerces jar files. One
in version 2.7.1 (geoserver) and another 2.4.0 (neo4j).

I removed the xercesImpl-2.4.0.jar from lib and restarted geoserver. Now I
can see Neo4j as a Vector Data Source.

Well, I should have searched this before, but now, there's a hint in both
lists.

I didn't make a test yet... hope it works fine!

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


On Tue, Jun 18, 2013 at 12:16 PM, Rodrigo Antonialli  wrote:

> Hi everyone!
>
> First thing: I'm sending this to both geoserver and neo4j mailling lists.
> I hope someone can help!
> Also, that's my first time in neo4j list!
>
> I just got geoserver 2.3.2 and Apache Tomcat 7.0.35 (maybe not tomcat
> lastest version)
>
> Deployed the war file to webapps and geoserver run ok! Also fnished
> configurations (remove users.properties.old and so on).
>
> I'm trying to configure neo4j as a geoserver store following these steps:
> https://github.com/neo4j/spatial#neo4j-spatial-geoserver-plugin
>
> I did the following until now:
>
> 1. git clone https://github.com/neo4j/spatial.git
>
> This created a spatial dir.
>
> 2. cd spatial
>
> 3. mvn clean install (using a normal user. Build success =] )
>
> 4. unziped neo4j-spatial-0.12-neo4j-2.0.0-SNAPSHOT-server-plugin.zip
> generated at target dir to geoserver/WEB-INF/lib (backed up it before =) )
>
> Now, When I start geoserver I see the errors right bellow this message.
>
> I know that neo4j-spatial was only tested with geoserver 2.1.1. But it is
> a very old version, once its in 2.3.2 now. A lot of bug fixes and
> improvements along the way.
>
> I'm really interested to make neo4j-spatial to work with geoserver 2.3.2.
> But I'm stuck at these errors. Can someone help?! Maybe some clue!
>
> Neo4j-spatial worked with neo4j:
>
> *$ curl http://localhost:7474/db/data/*
> *
> *
> {
>   "extensions" : {
> "CypherPlugin" : {
>   "execute_query" : "
> http://localhost:7474/db/data/ext/CypherPlugin/graphdb/execute_query";
> },
> "SpatialPlugin" : {
>   "addEditableLayer" : "
> http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addEditableLayer";,
>   "addCQLDynamicLayer" : "
> http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addCQLDynamicLayer
> ",
>   "findGeometriesWithinDistance" : "
> http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesWithinDistance
> ",
>   "updateGeometryFromWKT" : "
> http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/updateGeometryFromWKT
> ",
>   "addGeometryWKTToLayer" : "
> http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addGeometryWKTToLayer
> ",
>   "getLayer" : "
> http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/getLayer";,
>   "addSimplePointLayer" : "
> http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer
> ",
>   "findGeometriesInBBox" : "
> http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesInBBox
> ",
>   "addNodeToLayer" : "
> http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addNodeToLayer";
> },
> "GremlinPlugin" : {
>   "execute_script" : "
> http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script";
> }
>   },
>   "node" : "http://localhost:7474/db/data/node";,
>   "reference_node" : "http://localhost:7474/db/data/node/0";,
>   "node_index" : "http://localhost:7474/db/data/index/node";,
>   "relationship_index" : "http://localhost:7474/db/data/index/relationship
> ",
>   "extensions_info" : "http://localhost:7474/db/data/ext";,
>   "relationship_types" : "http://localhost:7474/db/data/relationship/types
> ",
>   "batch" : "http://localhost:7474/db/data/batch";,
>   "cypher" : 

[Geoserver-users] Geoserver 2.3.2 and Neo4j

2013-06-18 Thread Rodrigo Antonialli
Hi everyone!

First thing: I'm sending this to both geoserver and neo4j mailling lists. I
hope someone can help!
Also, that's my first time in neo4j list!

I just got geoserver 2.3.2 and Apache Tomcat 7.0.35 (maybe not tomcat
lastest version)

Deployed the war file to webapps and geoserver run ok! Also fnished
configurations (remove users.properties.old and so on).

I'm trying to configure neo4j as a geoserver store following these steps:
https://github.com/neo4j/spatial#neo4j-spatial-geoserver-plugin

I did the following until now:

1. git clone https://github.com/neo4j/spatial.git

This created a spatial dir.

2. cd spatial

3. mvn clean install (using a normal user. Build success =] )

4. unziped neo4j-spatial-0.12-neo4j-2.0.0-SNAPSHOT-server-plugin.zip
generated at target dir to geoserver/WEB-INF/lib (backed up it before =) )

Now, When I start geoserver I see the errors right bellow this message.

I know that neo4j-spatial was only tested with geoserver 2.1.1. But it is a
very old version, once its in 2.3.2 now. A lot of bug fixes and
improvements along the way.

I'm really interested to make neo4j-spatial to work with geoserver 2.3.2.
But I'm stuck at these errors. Can someone help?! Maybe some clue!

Neo4j-spatial worked with neo4j:

*$ curl http://localhost:7474/db/data/*
*
*
{
  "extensions" : {
"CypherPlugin" : {
  "execute_query" : "
http://localhost:7474/db/data/ext/CypherPlugin/graphdb/execute_query";
},
"SpatialPlugin" : {
  "addEditableLayer" : "
http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addEditableLayer";,
  "addCQLDynamicLayer" : "
http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addCQLDynamicLayer";,
  "findGeometriesWithinDistance" : "
http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesWithinDistance
",
  "updateGeometryFromWKT" : "
http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/updateGeometryFromWKT
",
  "addGeometryWKTToLayer" : "
http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addGeometryWKTToLayer
",
  "getLayer" : "
http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/getLayer";,
  "addSimplePointLayer" : "
http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer
",
  "findGeometriesInBBox" : "
http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesInBBox
",
  "addNodeToLayer" : "
http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addNodeToLayer";
},
"GremlinPlugin" : {
  "execute_script" : "
http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script";
}
  },
  "node" : "http://localhost:7474/db/data/node";,
  "reference_node" : "http://localhost:7474/db/data/node/0";,
  "node_index" : "http://localhost:7474/db/data/index/node";,
  "relationship_index" : "http://localhost:7474/db/data/index/relationship";,
  "extensions_info" : "http://localhost:7474/db/data/ext";,
  "relationship_types" : "http://localhost:7474/db/data/relationship/types";,
  "batch" : "http://localhost:7474/db/data/batch";,
  "cypher" : "http://localhost:7474/db/data/cypher";,
  "neo4j_version" : "1.9"
}

*The errors in geoserver.log (and catalina.out):*

18 Jun 11:55:35 ERROR [context.ContextLoader] - Context initialization
failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'gwcFacade' defined in URL
[jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/applicationContext.xml]:
Cannot resolve reference to bean 'gwcTLDispatcher' while setting
constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'gwcTLDispatcher' defined in URL
[jar:file:/opt/tomcatGeoserver7035/webapps/geoserver/WEB-INF/lib/gwc-2.3.2.jar!/geowebcache-core-context.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not instantiate
bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw
exception; nested exception is java.lang.NoSuchMethodError:
org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
 at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
 at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
 at
org.springframework.be

Re: [Geoserver-users] WPS - Security by Process

2013-03-20 Thread Rodrigo Antonialli
Hi Andrea,

I'm following the
quickstartto
create a geoserver development environment. Until now, I  compiled
only
the WPS module to explore and change some PPIO.

With this environment set up, I'll analise if I'm able to help and develop
something.

Also, I need to check with my team if we will follow with that. Although
it's interesting for us, time isn't exactly left over here.

If we can't develop inside Geoserver, probably, we'll just keep a session
in the client application to keep user info.

Our ideia was to use only the session inside geoserver to control users,
and make the application only to check this session and user roles.

(For now, the only idea we had was to request a getCapabilities and check
for a specific protected namespace . If the namespace is there, the user is
logged, otherwise, he is not. But we couldn't find a way to check user
roles.).

As soon as I check the development environment and talk to my team, I'll
let you know!

Cheers

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


On Wed, Mar 20, 2013 at 8:37 AM, Andrea Aime
wrote:

> On Tue, Mar 19, 2013 at 9:10 PM, Tyler Mitchell
>  wrote:
> > Is there currently any security applied to WPS processes by default in
> Geoserver?
>
> None. You can only select which processes you can expose.
>
> Before WPS enters core I would like to add some admin configurable
> processing limits, such
> as max execution time, max input size and the like.
> I'm actually looking for funding to implement that.
>
> Cheers
> Andrea
>
> --
> ==
> Our support, Your Success! Visit http://opensdi.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
>
> ---
>
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] WPS - Security by Process

2013-03-19 Thread Rodrigo Antonialli
Hi Andrea!

Thanks!

Is there a way to "ask" geoserver what user is logged in??

I mean, j_spring_secutiry_check returns a cookie with JSESSIONID, and
everytime I send a request to geoserver, it checks this cookie. Is there a
way to ask to whom this JSESSIONID belongs to?

We only need to know if a user has a certain role or not, to check his
permission level or if he's admin.

Cheers,


Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


On Tue, Mar 19, 2013 at 4:53 PM, Andrea Aime
wrote:

> On Tue, Mar 19, 2013 at 8:22 PM, Rodrigo Antonialli
>  wrote:
> > Hi!!
> >
> > I'd like to know if it's possible to restrict a WPS process according to
> > some role.
> >
> > Example:
> >
> > Process1 - ADMIN_ROLE
> > Process2 - USER_ROLE (or any other).
> >
> > I know it's possible to restrict a WPS method, but, is there a by process
> > configuration?
>
> Not at the moment. It may not be too hard to extend the security in
> that direction
> though.
> What makes things a bit more complicated is process chaining, one would
> have to check more than just the top level process, and walk the whole
> chain
> instead.
>
> Cheers
> Andrea
>
>
> --
> ==
> Our support, Your Success! Visit http://opensdi.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
>
> ---
>
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] WPS - Security by Process

2013-03-19 Thread Rodrigo Antonialli
Hi!!

I'd like to know if it's possible to restrict a WPS process according to
some role.

Example:

Process1 - ADMIN_ROLE
Process2 - USER_ROLE (or any other).

I know it's possible to restrict a WPS method, but, is there a by process
configuration?

Regards,

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] use j_spring_security_logout

2013-03-12 Thread Rodrigo Antonialli
Hi, I've shared some PHP functions some time ago.

http://osgeo-org.1560.n6.nabble.com/Authenticate-in-Geoserver-from-PHP-application-td5009457.html

They were used with an older version of geoserver, but if you change the
URL to j_spring_security_check or j_spring_security_logout... they should
work.

Also, I've not used CURL at that time, but you should!!

Hope this can help!

Cheers

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


On Tue, Mar 12, 2013 at 5:50 PM,  wrote:

> Hi people i have no idea how does i use "j_spring_security_logout" to
> log out and what are the parameters to acomplish that, am using php,
> and i need some routine to do that, and my geoserver -s version is
> 2.1.4, please help, thanks
>
> 
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
> --
>
> Este mensaje le ha llegado mediante el servicio de correo electronico que
> ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema
> Nacional de Salud. La persona que envia este correo asume el compromiso de
> usar el servicio a tales fines y cumplir con las regulaciones establecidas
>
> Infomed: http://www.sld.cu/
>
>
> --
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] [bulk]: Graphic Card and Geoserver

2013-03-08 Thread Rodrigo Antonialli
On Fri, Mar 8, 2013 at 12:01 PM, Rodrigo Antonialli
wrote:

> GEOS


not GEOS... GDAL!

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli
--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Graphic Card and Geoserver

2013-03-08 Thread Rodrigo Antonialli
Thanks!

As I told Stefan, I thought that it could use, so better asking! =)

Cheers

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


On Fri, Mar 8, 2013 at 11:56 AM, Andrea Aime
wrote:

> On Fri, Mar 8, 2013 at 3:28 PM, Rodrigo Antonialli  > wrote:
>
>> I have a simple question regarding geoserver graphic card usage.
>>
>> Does geoserver or one of its image extensions depend of a good graphic
>> card?
>>
>
> Nope, as far as I know all GeoServer does happens against the CPU, there is
> no usage whatsoever of the graphics card
>
> Cheers
> Andrea
>
>
> --
> ==
> Our support, Your Success! Visit http://opensdi.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
>
> ---
>
--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] [bulk]: Graphic Card and Geoserver

2013-03-08 Thread Rodrigo Antonialli
Hi Stefan,

Thanks for your reply!

I thought that, for example, GEOS and JAI could use some graphic card
capabilities to some image operation. But I really don't know much about
them =)

Cheers

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


On Fri, Mar 8, 2013 at 11:52 AM, Stefan Engelhardt (HBT) <
stefan.engelha...@hbt.de> wrote:

> Hello Rodriko,
>
> as far as I know, GeoServer does not depend from a graphic card. Our
> server has low-end onboard graphics, just for a little bit administration
> and thats it.
>
> ** **
>
> I also couldn’t imagine where graphic cards could be used but if you would
> use the gpu for rendering the images.
>
> ** **
>
> Cheers
>
> Stefan
>
> ** **
>
> *From:* Rodrigo Antonialli [mailto:rcantonia...@gmail.com]
> *Sent:* Friday, March 08, 2013 3:29 PM
> *To:* Geoserver
> *Subject:* [bulk]: [Geoserver-users] Graphic Card and Geoserver
>
> ** **
>
> I have a simple question regarding geoserver graphic card usage. 
>
> ** **
>
> Does geoserver or one of its image extensions depend of a good graphic
> card? 
>
> ** **
>
> We are configuring a web server machine with a Matrox® G200eR2 with 16MB.*
> ***
>
> ** **
>
> Is it enough to run geoserver and its image processing capabilities?
>
> ** **
>
> Maybe the next question is not simple:
>
> ** **
>
> How to measure how much graphic card geoserver needs?
>
> ** **
>
> Regards,
>
> ** **
>
>
> 
>
> Rodrigo C. Antonialli
> ==
> Rio Claro - SP - Brasil
> LinkedIn: http://www.linkedin.com/in/rcaprofile
> Contato:  (19) 8136-2347
>   rcantonia...@gmail.com
>   Skype: rc_antonialli
>
--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Graphic Card and Geoserver

2013-03-08 Thread Rodrigo Antonialli
I have a simple question regarding geoserver graphic card usage.

Does geoserver or one of its image extensions depend of a good graphic
card?

We are configuring a web server machine with a Matrox® G200eR2 with 16MB.

Is it enough to run geoserver and its image processing capabilities?

Maybe the next question is not simple:

How to measure how much graphic card geoserver needs?

Regards,


Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli
--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] GeoServer Catalog - WPS

2013-03-05 Thread Rodrigo Antonialli
Hi Andrea!

My Data security has these rules:

 
*.*.r<http://neotec01.rc.unesp.br:8080/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.security.web.data.DataSecurityPage#>
*  
*.*.w<http://neotec01.rc.unesp.br:8080/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.security.web.data.DataSecurityPage#>
*  
mm_50.*.r<http://neotec01.rc.unesp.br:8080/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.security.web.data.DataSecurityPage#>
USUARIO,ADMINISTRADOR

and the catalog mode is HIDE.

The "common" workspace and the common:IBGE store are not protected... the
ws is listed and the store is not.

As you said, the mm_50 workspace shouldn't be visible by WPS because of the
third rule, right?

What about the IBGE store? Maybe because it's type is WMS?

Anyway, if WPS can't access restricted layers, it's really bad for me...
for a while, I'll have to send only text parameters...

Is there a plan to change this wps restriction? Maybe I could try to
help...(if I'm able to =P)


Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


On Tue, Mar 5, 2013 at 4:17 AM, Andrea Aime wrote:

> On Tue, Mar 5, 2013 at 12:07 AM, Rodrigo Antonialli <
> rcantonia...@gmail.com> wrote:
>
>> Hi everyone!
>>
>> Today I was testing access to geoserver catalog in a WPS process, but I
>> noticed that only some of my Workspaces and DataStores are listed.
>>
>
>  Are the stores and workspaces not listed under any security control?
> As it stands now WPS cannot access any secured layer, even if the user
> issuing the command theoretically has
> rigths, because of a tech issue (the authentication token is kept in a
> thread local in the request thread, but the
> process then runs in a separate thread pool and does not get to see it)
>
> Cheers
> Andrea
>
> --
> ==
> Our support, Your Success! Visit http://opensdi.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
>
> ---
>
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] GeoServer Catalog - WPS

2013-03-04 Thread Rodrigo Antonialli
Hi everyone!

Today I was testing access to geoserver catalog in a WPS process, but I
noticed that only some of my Workspaces and DataStores are listed.

My tests are based on the ImportProcess class and using geoserver UI, I
created 4 WS and 4 DS:

Workspaces:

1- common
2- mm_50
3- mm_100
4- mm_250

Stores:

A- MovMassas_1_5 - defined with workspace mm_50
B- MovMassas_1_10 - defined with workspace
C- MovMassas_1_25 - defined with workspace
D- IBGE - defined with workspace


The process bellow just prints information about Workspaces 1, 3 and 4...
and about Stores B and C.

Stores A, B, C are PostGIS stores, and D is a WMS store.

I can't find a reason why this is happening, once they are defined the same
way, just changing names, and with the PostGIS stores, changing database
schema too... I have only one layer published from store A, which is
secured for some ROLES. There is another layer published from Store D,
which is public.

Why just some of my ws and stores are visible when I access the catalog
inside the WPS? If needed, I can share the ws ans stores definitions.

Here is the WPS code:

*package br.rc.unesp.process;*
*
*
*import org.geoserver.catalog.Catalog;*
*import org.geoserver.catalog.DataStoreInfo;*
*import org.geoserver.catalog.WorkspaceInfo;*
*import org.geotools.process.ProcessException;*
*import org.geotools.process.factory.DescribeProcess;*
*import org.geotools.process.factory.DescribeResult;*
*import org.geotools.process.gs.GSProcess;*
*
*
*@DescribeProcess(title = "MyTest", description = "MyTest test")*
*public class MyTestProcess implements GSProcess {*
*
*
* *
*  private Catalog catalog;*
*
*
*public MyTestProcess(Catalog catalog) {*
*this.catalog = catalog;*
*}*
* *
*@DescribeResult(name = "result", description = "Return the infos")*
* public String execute() throws ProcessException{*
**
*StringBuilder strBuilder = new StringBuilder();*
*  *
**
*strBuilder.append("Workspaces:");*
*strBuilder.append("\n");*
*strBuilder.append("");*
*strBuilder.append("\n");*
**
*for(WorkspaceInfo wsi : catalog.getWorkspaces()){*
**
*strBuilder.append("ID: " + wsi.getId());*
*strBuilder.append("\n");*
*strBuilder.append("NAME: " + wsi.getName());*
*strBuilder.append("\n\r");*
* *
*}*
*
*
*strBuilder.append("DataStores:");*
*strBuilder.append("\n");*
*strBuilder.append("");*
*strBuilder.append("\n");*
* *
*for(DataStoreInfo dsi : catalog.getDataStores()){*
* *
* strBuilder.append("ID: " + dsi.getId());*
* strBuilder.append("\n");*
* strBuilder.append("NAME: " + dsi.getName());*
* strBuilder.append("\n");*
* strBuilder.append("DESCRITION: " + dsi.getDescription());*
* strBuilder.append("\n");*
* strBuilder.append("TYPE: " + dsi.getType());*
* strBuilder.append("\n");*
* strBuilder.append("WORKSPACE: " + dsi.getWorkspace().getName());*
* strBuilder.append("\n\r");*
* *
* }*
**
*return strBuilder.toString();*
**
*}*
*
*
*}*

It is defined at ApplicationContext.xml like this:

**
**
**

I'm trying to access the catalog to list published and unpublished layers
in the postgis datastores inside this WPS.

Any help will be appreciated!!

Regards,

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] SLD Transformation WPS

2013-02-08 Thread Rodrigo Antonialli
Hi,

This is really, really just a guess...

Maybe it's related to the GeoTiffPPIO class inside org.geoserver.wps.ppio.
You can check this class in WPS src.

Look at "encode" method, which receives an Object (GridCoverage2D) and an
OutputStream and writes the GeoTiff to this OutputStream.

I don't know the details of the parameters used to write the image, but
maybe it's somewhere to start.

Regards,

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


On Fri, Feb 8, 2013 at 3:31 PM, Tam O  wrote:

>  Dear GeoServer Users,
>
> ** **
>
> I sent this out awhile back but have not received any response. I thought
> I’d send this again in case it got lost. Any help you can provide is deeply
> appreciated.
>
> ** **
>
> I am trying to use the transformation element in the SLD to execute a WPS
> process (for testing purposes, it simply returns the passed in
> GridCoverage2D raster). The results are not the same (please see
> attachments).  One looks more smoothed and the other one does not. They are
> both WW3 global, 360x181 Maximum Wave Height coverages.
>
> ** **
>
> **1.   **Without calling WPS process: This looks more smoothed.
>
> ** **
>
>
> http://localhost/geoserver/WW3_GLOBAL/wms?service=WMS&version=1.1.0&request=GetMap&layers=WW3_GLOBAL:global_360x181.max_wav_ht.surface&styles=1_no_wps_style&bbox=-180.0,-90.0,180.0,90.0&width=660&height=330&srs=EPSG:4326&format=application/openlayers
> 
>
> ** **
>
> ** **
>
> **2.   **With calling WPS process: This does not.
>
> ** **
>
>
> http://localhost/geoserver/WW3_GLOBAL/wms?service=WMS&version=1.1.0&request=GetMap&layers=WW3_GLOBAL:global_360x181.max_wav_ht.surface&styles=2_yes_wps_style&bbox=-180.0,-90.0,180.0,90.0&width=660&height=330&srs=EPSG:4326&format=application/openlayers
> 
>
> ** **
>
> ** **
>
> Could you please tell me why the pictures look that way (and perhaps how
> to fix it)?
>
> ** **
>
> Thank you.
>
> ** **
>
> Tam O
>
> ** **
>
>
> --
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013
> and get the hardware for free! Learn more.
> http://p.sf.net/sfu/sophos-d2d-feb
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Create geoserver users

2013-02-06 Thread Rodrigo Antonialli
Hello everybody! Solved it... =)

I know that WPS is a standard to process "OGC-like" (geographic) data, but
actually, you can register any kind of process in WPS.

So, I was looking at Geoserver src and I found the
GeoServerDigestPasswordEncoder class.

I implemented a WPS that receives the user data (username, password, and
other stuff) to insert them in the users table created by geoserver (user
group service with JDBC).
I've added custom columns in this table to fit my user data.

To encode the password, was easy inside WPS:

GeoServerDigestPasswordEncoder digest = newGeoServerDigestPasswordEncoder();

(I've built wps src from geoserver src and loaded wps-core project in
eclipse).

Now, my app just sends data to the process and it registers a new user...
After setting the flag enabled = Y, I logged in geoserver with no
problems...

If anyone is interested, I can share the full src of WPS.

Maybe it's not the best solution, but it's the one I've found.

Regards,

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


On Tue, Feb 5, 2013 at 1:05 AM, Rodrigo Antonialli
wrote:

> I'm sorry... sent before finishing...
>
> Well, I configured JDBC user/group service, and it's working fine... I can
> login with user registered in postgre "user" table.
>
> What I need now is to create users without geoserver web UI.
>
> Is there a way to do it through geoserver? REST maybe? (Almost sure I read
> it's not possible to handle users with REST API)
>
> I just thought about insert user data directly to database, but, how to
> implement password encryption?!
>
> Anyone can help me?!
>
> Just to clarify, I need that the same users created in my application to be
> created in geoserver.
>
> Thanks!
>
> Em terça-feira, 5 de fevereiro de 2013, Rodrigo Antonialli escreveu:
>
> Hi everyone!
>>
>> I have a simple question about using
>> JDBC user/group service
>>
>> --
>> Rodrigo C. Antonialli
>> ==
>> Rio Claro - SP - Brasil
>> LinkedIn: http://www.linkedin.com/in/rcaprofile
>> Contato:  (19) 8136-2347
>>   rcantonia...@gmail.com
>>   Skype: rc_antonialli
>>
>
>
> --
> Rodrigo C. Antonialli
> ==
> Rio Claro - SP - Brasil
> LinkedIn: http://www.linkedin.com/in/rcaprofile
> Contato:  (19) 8136-2347
>   rcantonia...@gmail.com
>   Skype: rc_antonialli
>
--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] a table in postgis database with data of users and roles for geoserver authentication

2013-02-06 Thread Rodrigo Antonialli
Hi,

Maybe this can help you:

http://docs.geoserver.org/stable/en/user/security/usergrouprole/usergroupservices.html#jdbc-user-group-service

Regards,

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


On Wed, Feb 6, 2013 at 4:33 AM, indian.ganesh  wrote:

> hello everyone,
>
>   here i want to know that is it possible to map a postgis
> table containing the users and roles for authentication to geoserver.
>
>   the scenario is like that
>
>
> 1.  i make a authentication request with username and password to geoserver
> 2. geoserver will check in postgis database for the user information
> 3. and will authenticate the user depending on the user information
> availablity in geoserver as per user's role mentioned in the geoserver
>
>
> any ideas will be appreciated
>
>
> --
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013
> and get the hardware for free! Learn more.
> http://p.sf.net/sfu/sophos-d2d-feb
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Create geoserver users

2013-02-04 Thread Rodrigo Antonialli
I'm sorry... sent before finishing...

Well, I configured JDBC user/group service, and it's working fine... I can
login with user registered in postgre "user" table.

What I need now is to create users without geoserver web UI.

Is there a way to do it through geoserver? REST maybe? (Almost sure I read
it's not possible to handle users with REST API)

I just thought about insert user data directly to database, but, how to
implement password encryption?!

Anyone can help me?!

Just to clarify, I need that the same users created in my application to be
created in geoserver.

Thanks!

Em terça-feira, 5 de fevereiro de 2013, Rodrigo Antonialli escreveu:

> Hi everyone!
>
> I have a simple question about using
> JDBC user/group service
>
> --
> Rodrigo C. Antonialli
> ==
> Rio Claro - SP - Brasil
> LinkedIn: http://www.linkedin.com/in/rcaprofile
> Contato:  (19) 8136-2347
>   rcantonia...@gmail.com  'rcantonia...@gmail.com');>
>   Skype: rc_antonialli
>


-- 
Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli
--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Create geoserver users

2013-02-04 Thread Rodrigo Antonialli
Hi everyone!

I have a simple question about using
JDBC user/group service

-- 
Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli
--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Authenticate in Geoserver from PHP application

2012-10-20 Thread Rodrigo Antonialli
Hi again!!

I've did it! =)

Let me say that I'm using an older version of geoserver: 2.0-RC1. I know
that with newer versions this can be simpler, but I cannot update geoserver
in this environment.

Here are other info about my environment:

Apache Tomcat 6.0.18
Apache 2.0.63
PHP 5.2.11

For some reason, I forgot to compile this PHP with CURL, so I needed
another alternative.

Here is the functions created and working for me:

//Login Geoserver

function loginGeoserver($username, $password) {

$geoserverURL = "http:///geoserver/j_acegi_security_check";

$post = http_build_query(array(
"username" => $username,
"password" => $password,
));

$context = stream_context_create(array("http"=>array(
"method" => "POST",
"header" => "Content-Type: application/x-www-form-urlencoded\r\n" .
"Content-Length: ". strlen($post) . "\r\n",
"content" => $post,
)));

$page = file_get_contents($geoserverURL, false, $context);


for($i = 0; $i < sizeof($http_response_header); $i++){

$headerLine = $http_response_header[$i];

$pos = strpos($headerLine, 'Set-Cookie');

if ($pos === 0) {
$str = explode("=",$headerLine);
$value = explode(";",$str[1]);
$cookieValue = $value[0];
break;
}

}

$cookieName = "JSESSIONID";
$cookieDomain = "";
$cookiePath = "/geoserver";
$cookieExpiration = 0;

setcookie($cookieName,$cookieValue,$cookieExpiration,$cookiePath);

return $cookieValue;
}

For some reason that I couldn't find out, the cookie set in this function
is not listed in php $_COOKIE var...

So, I had to return $cookieValue and keep it with my sessions vars.

Inside the logout function, I use this value to post to j_acegi_logout:

function logoutGeoserver() {

//Logout do Geoserver
$geoserverURL = "http:///geoserver/j_acegi_logout";

$context = stream_context_create(array("http"=>array(
"method" => "POST",
"header" => "Content-Type: application/x-www-form-urlencoded\r\n" .
"Content-Length: ". strlen($post) . "\r\n".
"Cookie: JSESSIONID=".$_SESSION['geoserverCookie']."\r\n",
)));

$logout = file_get_contents($geoserverURL, false, $context);

}

Just remember to change the  if you need to use this..

Well, That's it... Maybe it can be usefull for someone!

Any suggestions are welcome!

Best Regards,

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


On Wed, Oct 17, 2012 at 7:19 PM, Rodrigo Antonialli
wrote:

> Hi everyone!
>
> I'm running an old version of Geoserver (GeoServer 2.0-RC1). I've set all
> layers (read and write permissions) to be accessed only by
> ROLE_ADMINISTRATOR users.
>
> Geoserver side is working fine. When I open geoserver web interface, I
> can't see any layers. If proceed with login with admin user, all layers are
> shown.
>
> My problem is with my PHP/OpenLayers application.
>
> When I try to see my maps, an error saying that the layer doesn't exists
> is shown. That's expected, but now, how can I login from PHP to Geoserver
> to see my layers?
>
> I'd like to use the same users in PHP login and Geoserver login (I just
> replicated the users in users.properties).
>
> If I login into geoserver interface, and after in PHP application, I can
> see the maps. If I logout from geoserver interface, I can't see it anymore.
>
> I'm trying to post user and password to geoserver login servlet (I think
> it is a servlet) like that:
>
> function loginGeoserver($username, $password) {
>
> $geoserverURL = "http://mydomain/geoserver/j_acegi_security_check
> ";
>
> $data = http_build_query(array(
> "username" => $username,
> "password" => $password
> ));
>
> $context = stream_context_create(array("http"=>array(
> "method"=>"POST",
> "header"=>"Content-Type:
> application/x-www-form-urlencoded\r\n" .
>   "Content-Length: ". strlen($post) . "\r\n",
> "content"=>$data
> )));
>
> $page = file_get_contents($geoserverUR

[Geoserver-users] Authenticate in Geoserver from PHP application

2012-10-17 Thread Rodrigo Antonialli
Hi everyone!

I'm running an old version of Geoserver (GeoServer 2.0-RC1). I've set all
layers (read and write permissions) to be accessed only by
ROLE_ADMINISTRATOR users.

Geoserver side is working fine. When I open geoserver web interface, I
can't see any layers. If proceed with login with admin user, all layers are
shown.

My problem is with my PHP/OpenLayers application.

When I try to see my maps, an error saying that the layer doesn't exists is
shown. That's expected, but now, how can I login from PHP to Geoserver to
see my layers?

I'd like to use the same users in PHP login and Geoserver login (I just
replicated the users in users.properties).

If I login into geoserver interface, and after in PHP application, I can
see the maps. If I logout from geoserver interface, I can't see it anymore.

I'm trying to post user and password to geoserver login servlet (I think it
is a servlet) like that:

function loginGeoserver($username, $password) {

$geoserverURL = "http://mydomain/geoserver/j_acegi_security_check";;

$data = http_build_query(array(
"username" => $username,
"password" => $password
));

$context = stream_context_create(array("http"=>array(
"method"=>"POST",
"header"=>"Content-Type:
application/x-www-form-urlencoded\r\n" .
  "Content-Length: ". strlen($post) . "\r\n",
"content"=>$data
)));

$page = file_get_contents($geoserverURL, false, $context);

return $page;

}

*mydomain was replaced only here =)

When I echo $page, I see the geoserver login form and a message informing
username or password are wrong.

I've built a teste.html with a form inside it, at the same place this php
function is set. From the HTML form, I can login to geoserver just pointing
the method=post and action=http://mydomain/geoserver/j_acegi_security_check

Can someone help me to solve this?? Am I using the wrong way to do it or it
is a problem with my PHP script?!

I'd appreciate any help!

Best Regards,

Rodrigo C. Antonialli
==
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Using Geoserver WFS across domains

2012-07-13 Thread Rodrigo Antonialli
Hi Robin,

Sorry for not having a direct answer, but I installed a system like this
using Apache and Tomcat servers.

I managed to solved this issue using a Apache Tomcat Connector (mod_jk).
Maybe you should google for something similar: "iis jetty connector" for
example.

This connector component (if there is one for Jetty and IIS) will redirect
the requests from IIS to Jetty, and avoid the cross domain issue.

Hope this is usefull!

Regards,

Rodrigo C. Antonialli
==
Campinas - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli


On Fri, Jul 13, 2012 at 5:44 AM, Robin Stockman  wrote:

> Hi All,
>
> I know this is not the first time this has been mentioned. I have searched
> for days for a solution without success, so I am hoping someone else has
> solved this in a similar environment.
>
> System:
> Windows 2008 Web Server
> IIS 7
> Geoserver 2.1.4
>
> The main website runs via IIS on ssl port 443 (
> https://geoserver.testdomain.com:443), whereas Geoserver's Jetty
> webserver runs on port 8080, non-ssl (http://geoserver.testdomain.com:8080
> ).
>
> The issue arises when the openlayers javascript runs on the main website.
> All WMS layers are fine, but javascript will not allow the WFS (XML) layers
> from the other port. This returns Origin
> https://geoserver.testdomain.com:443 is not allowed by
> Access-Control-Allow-Origin.
>
> I have tried a number of work-arounds, including:
>
> Using IIS URL Rewrite
>
> http://cartoninjas.pl/post/2010/10/12/Installing-GeoServer-on-Windows-7-(x32-or-x64)-and-IIS-75.aspx
>  (returns
> "forbidden" or "site not found" errors)
>
> Modify Jetty access control
>
> http://jetty.4.n6.nabble.com/Jetty-Access-Control-Allow-Origin-td4634198.html 
> (causes
> the jetty server to fail in starting up)
>
> Using an IIS proxy
> http://code.google.com/p/iisproxy/issues/detail?id=8 (returns a 500 -
> Internal server error)
>
> General Info
>
> http://stackoverflow.com/questions/9327218/access-control-allow-origin-not-allowed-by
>
>
> This is not the entire list, as some methods have been removed from my
> browser history, but it will give you an idea of the steps taken.
>
> I have not run the HTML / javascript directly from the WWW directory in
> Geoserver, as the WFS / WMS connection strings include a username and
> password, which would then be freely available to look at in the HTML
> document. Instead, they are encapsulated within the current PHP scripts
> running on the main IIS domain, which offers them some protection.
>
> If anyone has any experience with this issue, I would be grateful to hear
> from you.
>
> Many thanks,
>
> Rob
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] WPS Request - POST - not working

2012-06-06 Thread Rodrigo Antonialli
Hi everyone!

I need some help to build a client for geoserver wps...

Let me explain to you the whole context. I created a process that receives
a common json string (CDATA) and... process it.. (for now, it is just
sending the json string back).

I could test the process using the WPS Request Builder interface, and it
worked very fine =)

Now, I'm trying to develop a Javascript client to send a json string to
this wps process and get the string back... but it's not working =/

Here is what I'm doing:

var jsonDescription = JSON.stringify(array); *//Parsing a javascript array
to json string. *
var wpsRequest = new
WPSRequest("http://localhost:8080/geoserver/wps","gs:MyProcess","execute","POST",jsonDescription);
*//Object to define the request.*
var wpsInput = wpsRequest.wpsInput(); *//build the request using
jsonDescription
*wpsRequest.request(wpsInput); *//Does the request...*

Now, if you look inside my object:

//My object definition
function WPSRequest(url,process,processMethod, method, data){
this.urlRequest = url;
this.process = process;
this.processMethod = processMethod;
this.method = method;
this.data = data;
this.wpsInput = buildInput;
this.request = doRequest;
}

//function that does the request
function doRequest(input){

var urlreq = this.urlRequest;
var reqType = this.method;

alert(input);

$(function() {

*//The request using jquery ajax:*
$.ajax({
  type: reqType, //POST
  url: urlreq, //http://localhost:8080/geoserver/wps
  data: input
}).done(function(result){
alert(result);
});

});
}

function buildInput(){

switch(this.processMethod){
case "execute":
var wpsBody = ""
+ "http://www.w3.org/2001/XMLSchema-instance\"; xmlns=\"
http://www.opengis.net/wps/1.0.0\"; xmlns:wfs=\"http://www.opengis.net/wfs\";
xmlns:wps=\"http://www.opengis.net/wps/1.0.0\"; xmlns:ows=\"
http://www.opengis.net/ows/1.1\"; xmlns:gml=\"http://www.opengis.net/gml\";
xmlns:ogc=\"http://www.opengis.net/ogc\"; xmlns:wcs=\"
http://www.opengis.net/wcs/1.1.1\"; xmlns:xlink=\"
http://www.w3.org/1999/xlink\"; xsi:schemaLocation=\"
http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd\";>"
+ "" + this.process + ""
+ ""
+ ""
+ "jsonDescription"
+ ""
+ ""
+ ""
+ ""
+ ""
+ ""
+ ""
+ "result"
+ ""
+ ""
+ "";

wpsBody = this.data;

return wpsBody;
break;
}
  } *//End of WPSRequest obj*

When executing, I get the following error:

*org.geoserver.platform.ServiceException: Could not determine geoserver
request from http request
org.geoserver.platform.AdvancedDispatchFilter$AdvancedDispatchHttpRequest@4e7db1c0
*

Some details:

If I copy and paste the result of "alert(input);" (doRequest function) in
Geoserver WPS Request Builder, the request works fine!

If I just change the URL from: *
http://localhost:8080/geoserver/wps
*to
*
http://localhost:8080/geoserver/ows?service=WPS&version=1.0.0&request=Execute&Identifier=gs:MyProcess
*
in my object definition, the request seens to work, once the error is:
"Parameter jsonDescription is missing but has min multiplicity > 0"

I belive the second URL is a GET request, and, once the param is not in
URL, the error is expected... this happens even if I keep the ajax type
param = POST

The question is: Am I missing some thing to get the post request to work??

If someone knows a simple example showing how to do some request like this,
it will help!

My next step will be to define a simple javascript ajax function to post to
url *http://localhost:8080/geoserver/wps *

Any help will be appreciated!

Thanks!

-- 
Rodrigo C. Antonialli
==
Campinas - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geoserver 2.1.3 + Tomcat 7 + OpenSSL

2012-05-22 Thread Rodrigo Antonialli
Hi Ariel,

Only for information, this topic has been already answered... maybe this is
a duplicate email.

Probably the error occurred because I saved the certificate in a custom
keystore, and not in the default JVM keystore.

Certainly the custom repository is not configured correctly and neither the
pointing of tomcat to him.

When I saved the certificate in default JVM keystore, everything worked
fine!

Anyway, I'm still working only in a development environment, and your
reference will help to configure properly the production env.

Thanks for the reference and for the help!

Best Regards,

On Tue, May 22, 2012 at 10:38 AM, Ariel Nunez wrote:

> Are you sure you correctly installed the certificate in your Java VM
> using keytool ?
>
> It was part of the instructions that you linked to, and the only think
> I would imagine causing an error like that.
>
> The experience I have is setting up SSL in GeoNode (GeoServer proxied
> behind Apache using mod_proxy) - if that set up is something you are
> interested in: the instructions are here [1]
>
> Ariel.
>
> [1] http://docs.geonode.org/en/latest/deploy/ssl.html
>
> On Thu, May 17, 2012 at 12:41 PM, Rodrigo Antonialli
>  wrote:
> > javax.net.ssl.SSLHandshakeException:
> > sun.security.validator.ValidatorException: PKIX path building failed:
> > sun.security.provider.certpath.SunCertPathBuilderException: unable to
> find
> > valid certification path to requested target
>



-- 
Rodrigo C. Antonialli
==
Campinas - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Geoserver 2.1.3 + Tomcat 7 + OpenSSL

2012-05-22 Thread Rodrigo Antonialli
Hi everyone!

I need some help to configure Geoserver under SSL!

I've just configured SSL to work fine, following these instructions:
http://www.tomcatexpert.com/knowledge-base/using-openssl-configure-ssl-certificates-tomcat

I can login in web admin interface, and preview some layers. Examples:

https://tupi.rc.unesp.br/geoserver/topp/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=topp:states&maxFeatures=50
*- return the topp:states GML.*

https://tupi.rc.unesp.br/geoserver/topp/wms?service=WMS&version=1.1.0&request=GetMap&layers=topp:states&styles=&bbox=-124.7314220001,24.955967,-66.969849,49.371735&width=780&height=330&srs=EPSG:4326&format=application/openlayers
  * - The map is shown fine and I can click to show attributes.*

But when I try to run a Demo request, for example,
WFS_GetCapabilities-1.0.xml, or one of the above, it shows me the error:
*

javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
*

Does this error occurs because the Demo interface is not configured to work
with SSL? I didn't try to implement a client to work with this SSL...
Can someone help me to clarify this issue?

Best regards,

-- 
Rodrigo C. Antonialli
==
Campinas - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geoserver 2.1.3 + Tomcat 7 + SSL

2012-05-18 Thread Rodrigo Antonialli
Hello Andrea,

Your advice about the trusted certificate could help me solve the problem.

I just imported the cert file to the JVM default keystore:

*keytool -import -alias tomcat -file cacert.der -keystore
$JAVA_HOME/jre/lib/security/cacerts*

(My JAVA_HOME var is the root JDK install dir)

It was necessary to restart tomcat... after the restart, I was able to run
a demo request using https...

As my client will run under the same server/tomcat then geoserver, I also
created a simple client test:

--

URL wfs = new URL("
https://tupi.rc.unesp.br/geoserver/wfs?request=getCapabilities";);

HttpURLConnection con = (HttpURLConnection) wfs.openConnection();

con.setRequestMethod("GET");
con.setDoOutput(true);
con.connect();

int responseCode = con.getResponseCode();

out.println(responseCode);
out.println();

Writer writer = new StringWriter();

char[] buffer = new char[1024];

Reader reader = new BufferedReader(new
InputStreamReader(con.getInputStream()));

int n;

while((n = reader.read(buffer)) != -1){
writer.write(buffer, 0, n);
}

out.println(writer.toString());

---

Remembering this was just to see the request result, and nothing more!

So, it seens the problem was not exactly with geoserver, but with my SSL
configuration and certificate...

Thanks for your help guys!


On Fri, May 18, 2012 at 12:15 PM,  wrote:

> Zitat von Andrea Aime **:
>
>
>  On Thu, May 17, 2012 at 7:10 PM, Rodrigo Antonialli
>>  wrote:
>>
>>> Hi everyone!
>>>
>>> I need some help to configure Geoserver under SSL!
>>>
>>> I've just configured SSL to work fine, following these instructions:
>>> http://www.tomcatexpert.com/**knowledge-base/using-openssl-**
>>> configure-ssl-certificates-**tomcat<http://www.tomcatexpert.com/knowledge-base/using-openssl-configure-ssl-certificates-tomcat>
>>>
>>> I can login in web admin interface, and preview some layers. Examples:
>>>
>>> https://tupi.rc.unesp.br/**geoserver/topp/ows?service=**
>>> WFS&version=1.0.0&request=**GetFeature&typeName=topp:**
>>> states&maxFeatures=50<https://tupi.rc.unesp.br/geoserver/topp/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=topp:states&maxFeatures=50>
>>> - return the topp:states GML.
>>>
>>> https://tupi.rc.unesp.br/**geoserver/topp/wms?service=**
>>> WMS&version=1.1.0&request=**GetMap&layers=topp:states&**
>>> styles=&bbox=-124.**7314220001,24.955967,-66.**
>>> 969849,49.371735&width=780&**height=330&srs=EPSG:4326&**
>>> format=application/openlayers<https://tupi.rc.unesp.br/geoserver/topp/wms?service=WMS&version=1.1.0&request=GetMap&layers=topp:states&styles=&bbox=-124.7314220001,24.955967,-66.969849,49.371735&width=780&height=330&srs=EPSG:4326&format=application/openlayers>
>>>   - The map is shown fine and I can click to show attributes.
>>>
>>> But when I try to run a Demo request, for example,
>>> WFS_GetCapabilities-1.0.xml, or one of the above, it shows me the error:
>>>
>>> 
>>> javax.net.ssl.**SSLHandshakeException:
>>> sun.security.validator.**ValidatorException: PKIX path building failed:
>>> sun.security.provider.**certpath.**SunCertPathBuilderException: unable
>>> to find
>>> valid certification path to requested target
>>> 
>>>
>>
>> The demo pages are sending the details to a server side servlet,  which
>> in turn
>> does the actual post emulating a client using Java own URLConnection.
>> If your certificate is not trusted the above error will happen.
>>
>> The solution for URLConnection is not an easy one:
>> http://kerbtier.ch/2009/01/31/**urlconnection-and-https<http://kerbtier.ch/2009/01/31/urlconnection-and-https>
>>
>> Afaik if we rewrite the code using commons-httpclient it is instead
>> possible to ignore invalid certificates... requires some work though
>>
>> Cheers
>> Andrea
>>
>
> Yep, a solution is to implement an X509TrustManger trusting each
> certificate. I did something similar for my CAS tests here.
>
> https://svn.codehaus.org/**geoserver/trunk/src/security/**
> cas/src/test/java/org/**geoserver/security/cas/**LiveCasData.java<https://svn.codehaus.org/geoserver/trunk/src/security/cas/src/test/java/org/geoserver/security/cas/LiveCasData.java>
>
> Perhaps we should open a jira issue. If somebody can give me a starting
> point (where the url connection is created), I could try to solve the
> problem.
>
> Christian
>
>
>>
>> --
>> Ing. A

Re: [Geoserver-users] Geoserver 2.1.3 + Tomcat 7 + SSL

2012-05-18 Thread Rodrigo Antonialli
Hi Christian,

The URL of the demo request is: https://tupi.rc.unesp.br:443/geoserver/wfs

I also tried https://tupi.rc.unesp.br/geoserver/wfs and also
https://tupi.rc.unesp.br/geoserver/topp/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=topp:states&maxFeatures=50

Another test with this URL:
https://tupi.rc.unesp.br/geoserver/wfs?request=getCapabilities

It works and I request directly from my browser (the same one I'm acessing
geoserver interface), but it doesn't work when I use it in demo interface (
I clear the body).

By these tests, it doesn't seen to be the problem =/

Is there any configuration I should change in geoserver?

Best Regard,


On Fri, May 18, 2012 at 5:07 AM,  wrote:

> Hi Rodrigo, what is the exact URL of the demo request. The URL must
> include "tupi.rc.unesp.br" as the host name !!!
>
> SSL connections are transparent to geoserver, so I assume you have a
> problem with the URL.
>
> Cheers
> Christian
>
>
> Zitat von Rodrigo Antonialli :
>
>  Hi everyone!
>>
>> I need some help to configure Geoserver under SSL!
>>
>> I've just configured SSL to work fine, following these instructions:
>> http://www.tomcatexpert.com/**knowledge-base/using-openssl-**
>> configure-ssl-certificates-**tomcat<http://www.tomcatexpert.com/knowledge-base/using-openssl-configure-ssl-certificates-tomcat>
>>
>> I can login in web admin interface, and preview some layers. Examples:
>>
>> https://tupi.rc.unesp.br/**geoserver/topp/ows?service=**
>> WFS&version=1.0.0&request=**GetFeature&typeName=topp:**
>> states&maxFeatures=50<https://tupi.rc.unesp.br/geoserver/topp/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=topp:states&maxFeatures=50>
>>  *- return the topp:states GML.*
>>
>> https://tupi.rc.unesp.br/**geoserver/topp/wms?service=**
>> WMS&version=1.1.0&request=**GetMap&layers=topp:states&**
>> styles=&bbox=-124.**7314220001,24.955967,-66.**
>> 969849,49.371735&width=780&**height=330&srs=EPSG:4326&**
>> format=application/openlayers<https://tupi.rc.unesp.br/geoserver/topp/wms?service=WMS&version=1.1.0&request=GetMap&layers=topp:states&styles=&bbox=-124.7314220001,24.955967,-66.969849,49.371735&width=780&height=330&srs=EPSG:4326&format=application/openlayers>
>>
>>  * - The map is shown fine and I can click to show attributes.*
>>
>>
>> But when I try to run a Demo request, for example,
>> WFS_GetCapabilities-1.0.xml, or one of the above, it shows me the error:
>> *
>> 
>> javax.net.ssl.**SSLHandshakeException:
>> sun.security.validator.**ValidatorException: PKIX path building failed:
>> sun.security.provider.**certpath.**SunCertPathBuilderException: unable
>> to find
>> valid certification path to requested target
>> *
>>
>>
>> Does this error occurs because the Demo interface is not configured to
>> work
>> with SSL? I didn't try to implement a client to work with this SSL...
>> Can someone help me to clarify this issue?
>>
>> Best regards,
>>
>>
>> --
>> Rodrigo C. Antonialli
>> ==**
>> Campinas - SP - Brasil
>> LinkedIn: 
>> http://www.linkedin.com/in/**rcaprofile<http://www.linkedin.com/in/rcaprofile>
>> Contato:  (19) 8136-2347
>>  rcantonia...@gmail.com
>>  Skype: rc_antonialli
>>
>>
>
>
> --**--**
> This message was sent using IMP, the Internet Messaging Program.
>
>
>


-- 
Rodrigo C. Antonialli
==
Campinas - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Geoserver 2.1.3 + Tomcat 7 + SSL

2012-05-17 Thread Rodrigo Antonialli
Hi everyone!

I need some help to configure Geoserver under SSL!

I've just configured SSL to work fine, following these instructions:
http://www.tomcatexpert.com/knowledge-base/using-openssl-configure-ssl-certificates-tomcat

I can login in web admin interface, and preview some layers. Examples:

https://tupi.rc.unesp.br/geoserver/topp/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=topp:states&maxFeatures=50
*- return the topp:states GML.*

https://tupi.rc.unesp.br/geoserver/topp/wms?service=WMS&version=1.1.0&request=GetMap&layers=topp:states&styles=&bbox=-124.7314220001,24.955967,-66.969849,49.371735&width=780&height=330&srs=EPSG:4326&format=application/openlayers

 * - The map is shown fine and I can click to show attributes.*

But when I try to run a Demo request, for example,
WFS_GetCapabilities-1.0.xml, or one of the above, it shows me the error:
*

javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
*

Does this error occurs because the Demo interface is not configured to work
with SSL? I didn't try to implement a client to work with this SSL...
Can someone help me to clarify this issue?

Best regards,


-- 
Rodrigo C. Antonialli
==
Campinas - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato:  (19) 8136-2347
  rcantonia...@gmail.com
  Skype: rc_antonialli
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users