New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[portal] Error on defining OAuth resource #484

Closed
vdelattre opened this Issue Mar 6, 2017 · 0 comments

Comments

Projects
None yet
3 participants
@vdelattre

vdelattre commented Mar 6, 2017

On an api, i want to declare a new resource.
On resource screen, i click on '+' button, i fill name field, and when i choose resource type, i made a mistake, i select Cache type. I see my mistake and i change it right now.
I fill all fields and save
when i deploy api, in log, there is these errors:

13:10:40.220 [sync-1] [27dbfc47-8b90-4852-9bfc-478b90485206] INFO i.g.g.r.h.i.DefaultReactorHandlerRegistry - Register a new handler for Ap i{id='27dbfc47-8b90-4852-9bfc-478b90485206', name='API Ref Site beta Qualif OAUTH', version='0.0'} on path /betaqualification/oauth/v0/sites
13:10:40.249 [sync-1] [27dbfc47-8b90-4852-9bfc-478b90485206] INFO i.g.g.handlers.api.ApiReactorHandler - API handler is now starting, prepa ring API context...
13:10:40.253 [sync-1] [27dbfc47-8b90-4852-9bfc-478b90485206] ERROR i.g.g.r.i.ResourceConfigurationFactoryImpl - Unable to instance resource configuration for io.gravitee.resource.oauth2.configuration.OAuth2ResourceConfiguration
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "name" (class io.gravitee.resource.oauth2.configuration .OAuth2ResourceConfiguration), not marked as ignorable (10 known properties: "authorizationHeaderName", "secure", "authorizationValue", "htt pMethod", "serverURL", "tokenIsSuppliedByQueryParam", "authorizationScheme", "tokenHeaderName", "tokenQueryParamName", "tokenIsSuppliedByHtt pHeader"])
at [Source: {"name":"my-cache","timeToIdleSeconds":0,"timeToLiveSeconds":0,"maxEntriesLocalHeap":1000,"httpMethod":"GET","secure":false,"au thorizationHeaderName":"Authorization","authorizationScheme":"Basic","tokenIsSuppliedByQueryParam":true,"tokenQueryParamName":"token","token IsSuppliedByHttpHeader":false,"serverURL":"url","authorizationValue":"value"}; line: 1, column: 10] (through reference chain: io.gravitee.re source.oauth2.configuration.OAuth2ResourceConfiguration["name"])
at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:62)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:834)
at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:1094)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1470)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1448)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:282)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:140)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3798)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2842)
at io.gravitee.gateway.resource.internal.ResourceConfigurationFactoryImpl.create(ResourceConfigurationFactoryImpl.java:44)
at io.gravitee.gateway.resource.internal.ResourceManagerImpl.lambda$initialize$3(ResourceManagerImpl.java:125)
at java.lang.Iterable.forEach(Iterable.java:75)
at io.gravitee.gateway.resource.internal.ResourceManagerImpl.initialize(ResourceManagerImpl.java:109)
at io.gravitee.gateway.resource.internal.ResourceManagerImpl.doStart(ResourceManagerImpl.java:55)
at io.gravitee.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:32)
at io.gravitee.gateway.handlers.api.ApiReactorHandler.doStart(ApiReactorHandler.java:258)
at io.gravitee.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:32)
at io.gravitee.gateway.reactor.handler.impl.DefaultReactorHandlerRegistry.create(DefaultReactorHandlerRegistry.java:46)
at io.gravitee.gateway.reactor.handler.impl.DefaultReactorHandlerRegistry.update(DefaultReactorHandlerRegistry.java:62)
at io.gravitee.gateway.reactor.impl.DefaultReactor.onEvent(DefaultReactor.java:122)
at io.gravitee.common.event.impl.EventManagerImpl.publishEvent(EventManagerImpl.java:44)
at io.gravitee.common.event.impl.EventManagerImpl.publishEvent(EventManagerImpl.java:36)
at io.gravitee.gateway.handlers.api.manager.impl.ApiManagerImpl.update(ApiManagerImpl.java:90)
at io.gravitee.gateway.services.sync.SyncManager.lambda$refresh$4(SyncManager.java:101)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1548)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at io.gravitee.gateway.services.sync.SyncManager.refresh(SyncManager.java:93)
at io.gravitee.gateway.services.sync.ScheduledSyncService.doSync(ScheduledSyncService.java:87)
at io.gravitee.gateway.services.sync.ScheduledSyncService.run(ScheduledSyncService.java:77)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

for information, if when i declare resource i choose right type, it's ok

Your Environment

  • Version used: 1.3.3

@brasseld brasseld added this to the 1.4.0 milestone Mar 6, 2017

@brasseld brasseld added the type: bug label Mar 6, 2017

@brasseld brasseld self-assigned this Mar 6, 2017

brasseld added a commit to gravitee-io/gravitee-management-webui that referenced this issue Mar 6, 2017

brasseld added a commit to gravitee-io/gravitee-management-webui that referenced this issue Mar 6, 2017

tcompiegne added a commit to gravitee-io/gravitee-management-webui that referenced this issue Mar 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment