Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Andrea Aime
    @aaime
    LOL no worries
    Gabriel Roldan
    @groldan
    right, let's keep'em coming at the pace we can
    I'm looking into integrating geofence in gs-cloud... looks like fun
    do you know if the standalone server is up to date? or have we fully switched to embedded?
    Andrea Aime
    @aaime
    I think both are still used, but not following geofence all that much
    Gabriel Roldan
    @groldan
    gotcha, thanks
    Andrea Aime
    @aaime
    you should check with Alessio and Emanuele on the list
    Björn Harrtell
    @bjornharrtell
    @aaime: Thanks for merge and ticket. I will try to find time to do the first steps needed for graduation from community, feel free to nudge me in the right direction.
    Andrea Aime
    @aaime
    I believe the first thing would be to make the store testable by the adventurous.. right now it does not have a zip packaging in GeoServer, not even as a community module, meaning nobody will try it out
    It should be a separate zip from the wfs output format, I believe
    For the procedure to graduate a module to supported, in GeoTools, see here: https://docs.geotools.org/latest/developer/procedures/supported.html
    (for GeoServer it might just be packaging directions, unless you want to create a nicer looking configuration panel for the store)
    James Hughes
    @jnh5y
    @jodygarnett others, if I recall, some Transforms can be set in a WFS request with propertyName=newField=func(existingField).
    We are having some issues with functions that take multiple arguments. I think the crux of the matter is around handling the commas. Anyone seen that and remember the solution? (We've tried some various escaping but we have not hit the right version yet)
    Andrea Aime
    @aaime
    @jnh5y being able to support transformations in WFS requests is new to me... WFS has to return documents abinding to a given XML schema, so transformation on the fly would be a breaking option (not a big deal though, the client using it would have to know the returned schema is not compliant... but it's a vendor capability, if it's present at all)
    James Hughes
    @jnh5y
    @aaime thanks! That makes sense. I suppose I lost track of how the various GeoTools Transforms can be used.
    Björn Harrtell
    @bjornharrtell
    @aaime: I was thinking if there is an option to aim for geotools graduation so that it will be a mainline datastore and as such not require a geoserver plugin at all. I suspect getting users to install community plugins is not optimal to get broad usage.
    Andrea Aime
    @aaime
    @bjornharrtell nope, too new to become core in GeoServer, it can be an extension though
    GeoPackage took years to get there :-D
    Before anything goes into extension, we want 3 separate sites/projects using it (like, users, customers)
    Before anything goes into core, it has to be battle tested with heavy use cases, and something that at large set of of people would be interested into (and that the PSC is comfortable with, meaning, they are using it already)
    Now, I am trying to push for FlatGeoBuf every time an occasion presents, but things have to be done in order
    Gabriel Roldan
    @groldan
    Aside, a huge use case would be for QGIS' WFS client to consume flatgeobuf from geoserver
    Björn Harrtell
    @bjornharrtell
    @aaime : alright I'll make an extension ASAP 🙂 perhaps need to rename the existing one to make it clear what is what though.
    @groldan : agreed I have had that precise thought but the QGIS WFS client code is.. not easy to adapt to alternative formats.
    Koji Saruya
    @koji117

    Hi, I am trying to implement SSO using OpenID connect plugin. I followed the instruction below.
    https://docs.geoserver.org/latest/en/user/community/oauth2/index.html#openid-connect-authentication

    However, after adding username and password I redirect back to the top page and I see the following error in geoserver log.

    2021-03-31 14:28:15,417 ERROR [geoserver.security] - Could not Authorize OAuth2 Resource due to the following exception: error="invalid_request", error_description="Possible CSRF detected - state parameter was present but no state could be found" at org.springframework.security.oauth2.client.token.grant.code.AuthorizationCodeAccessTokenProvider.getParametersForAuthorizeRequest(AuthorizationCodeAccessTokenProvider.java:313) at org.springframework.security.oauth2.client.token.grant.code.AuthorizationCodeAccessTokenProvider.obtainAuthorizationCode(AuthorizationCodeAccessTokenProvider.java:139) at org.springframework.security.oauth2.client.token.grant.code.AuthorizationCodeAccessTokenProvider.obtainAccessToken(AuthorizationCodeAccessTokenProvider.java:207) at org.springframework.security.oauth2.client.token.AccessTokenProviderChain.obtainNewAccessTokenInternal(AccessTokenProviderChain.java:148) at org.springframework.security.oauth2.client.token.AccessTokenProviderChain.obtainAccessToken(AccessTokenProviderChain.java:121) at org.springframework.security.oauth2.client.OAuth2RestTemplate.acquireAccessToken(OAuth2RestTemplate.java:221) at org.springframework.security.oauth2.client.OAuth2RestTemplate.getAccessToken(OAuth2RestTemplate.java:173) at org.springframework.security.oauth2.client.OAuth2RestTemplate$$FastClassBySpringCGLIB$$ca6dc720.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:752) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691) at org.springframework.security.oauth2.client.OAuth2RestTemplate$$EnhancerBySpringCGLIB$$100f8fb0.getAccessToken(<generated>) at org.springframework.security.oauth2.client.filter.OAuth2ClientAuthenticationProcessingFilter.attemptAuthentication(OAuth2ClientAuthenticationProcessingFilter.java:105) at org.geoserver.security.oauth2.GeoServerOAuthAuthenticationFilter.getPreAuthenticatedPrincipal(GeoServerOAuthAuthenticationFilter.java:382) at org.geoserver.security.oauth2.GeoServerOAuthAuthenticationFilter.doAuthenticate(GeoServerOAuthAuthenticationFilter.java:284) at org.geoserver.security.oauth2.GeoServerOAuthAuthenticationFilter.doFilter(GeoServerOAuthAuthenticationFilter.java:156) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) at org.geoserver.security.oauth2.GeoServerOAuthAuthenticationFilter.doFilter(GeoServerOAuthAuthenticationFilter.java:172) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
    Can anybody tell me how I should debug this? I already tried to disable CORS by setting GEOSERVER_CSRF_DISABLED property to true but it has no effect.
    Andrea Aime
    @aaime
    @koji117 try setting the log level to "geoserver developer logging" and see if you get more interesting information
    also if you have control over the openid connect server, check its logs too
    failing that, you'll have to setup the source code in a IDE and do a step by step debugging (that's what I end up doing most of the time anyways)
    Brad Hards
    @bradh
    @aaime isn't running in a debugger usually your first option? :-)
    Björn Harrtell
    @bjornharrtell
    Getting into the debugger isn't easy :) Just spent an hour trying to import geoserver main into Eclipse and no success yet.
    Andrea Aime
    @aaime
    @bradh when the system is in production I cannot run a debugger :-D
    Björn Harrtell
    @bjornharrtell
    @aaime: no I gave up, but was able to barely run it using vs code instead
    @aaime: btw looks like geoserver/geoserver#4952 makes flatgeobuf available as datastore with the existing gs-flatgeobuf
    well, after follow up fix geoserver/geoserver#4963 that is. :)
    Björn Harrtell
    @bjornharrtell
    @aaime: Perhaps it is because I'm on Eclipse 2021-03.. it seems to need alot of massage.
    Björn Harrtell
    @bjornharrtell
    @aaime: Whatever I do I can't seem to get it to live with the unresolved lifecycle things.
    Björn Harrtell
    @bjornharrtell
    @aaime: finally got it to work, but only after removing git-commit-id-plugin and avoiding all community modules
    Andrea Aime
    @aaime
    odd... dunno, haven't been using eclipse in a while
    Björn Harrtell
    @bjornharrtell
    What are you using?
    Brad Hards
    @bradh
    IntelliJ is popular, and I think that is what @aaime uses. I like netbeans though. Its had a bit of a rough time in migrating to Apache, but seems to be getting back on its feet now.
    Andrea Aime
    @aaime
    What Brad said, yup
    James Hughes
    @jnh5y
    I've used IntelliJ when working with GT/GWC/GS and I have liked it
    Gabriel Roldan
    @groldan
    @jodygarnett would you have a moment to review geotools/geotools#3444 sometime soon?
    loridigia
    @loridigia
    Hello everyone, i have a question: i have a custom plugin for geoserver-hbase (CoverageStore) and in the DB i have only tiled images. Now, for huge images, what could be a good strategies to improve geoserver performance on layer-preview. Since now when you request for a preview the flow is: getImageFromDB(filter:BBOX) -> mergeTiles -> return GridCoverage2D ... It works, but of course is really slow since hundred or thousands of MB requires time to download all of those.
    Thanks
    James Hughes
    @jnh5y
    Two obvious suggestions come to mind: 1) pre-compute coarser versions of the images (basically, make a pyramid) 2) set up a way to generate downsampled images on the fly in HBase
    since HBase has distributed processing, it is possible (in general) to do the latter and push the computation to the RegionServers