Skip to content
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

[management] Lifecycle state is required when updating an API #2337

Closed
fmercier-almerys opened this issue Jun 6, 2019 · 2 comments

Comments

4 participants
@fmercier-almerys
Copy link

commented Jun 6, 2019

I move to 1.26.0 and I have an error on the UI/REST API of APIM

the UI and REST API return me error 500 "can't be null update.arg1.lifecycleState" when I want to modify any information about API.

Json payload used is extracted from api export endpoint but the endpoint response does not include the field lifecycle_state whereas for /put api/:id this key is mandatory.
Should the export endpoint include lifecycle_state in the json response to solve this issue ?

@brasseld

This comment has been minimized.

Copy link
Member

commented Jun 6, 2019

Seems that you did not run the MongoDB script.

Regards,

@brasseld brasseld changed the title 1.26.0 : error 500 "can't be null" [management] Error 500 "can't be null" Jun 6, 2019

@fmercier-almerys

This comment has been minimized.

Copy link
Author

commented Jun 6, 2019

checked : Mongo upgrade script was correctly executed. I update the first description to add more information about my analysis

@fmercier-almerys fmercier-almerys changed the title [management] Error 500 "can't be null" [management] Error 500 "can't be null" for /put/api/:api_id Jun 6, 2019

@fmercier-almerys fmercier-almerys changed the title [management] Error 500 "can't be null" for /put/api/:api_id [management] Error 500 "can't be null" for PUT /api/:api_id Jun 6, 2019

@brasseld brasseld added this to the APIM - 1.26.x milestone Jun 6, 2019

@aelamrani aelamrani changed the title [management] Error 500 "can't be null" for PUT /api/:api_id [management] Lifecycle state is required when updating an API Jun 18, 2019

aelamrani added a commit to gravitee-io/gravitee-apim-tests that referenced this issue Jun 18, 2019

aelamrani added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue Jun 18, 2019

NicolasGeraud added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue Jun 18, 2019

NicolasGeraud added a commit to gravitee-io/gravitee-apim-tests that referenced this issue Jun 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.