Skip to content

Conversation

@edeati
Copy link

@edeati edeati commented Apr 27, 2023

This is a fix for groups api calls where the api call throws an exception:
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: org.ihtsdo.rvf.core.data.model.AssertionGroup$HibernateProxy$PhV4dVWY["hibernateLazyInitializer"])

To reproduce this either try to get an existing assertion group with a GET groups/{id} call or try to add new tests to an assertion group with a POST groups/{id}/assertions

@QuyenLy87 QuyenLy87 requested a review from CoderMChu April 27, 2023 11:05
@edeati edeati marked this pull request as draft April 28, 2023 04:07
@CoderMChu CoderMChu changed the base branch from master to develop May 17, 2023 07:06
Copy link
Member

@CoderMChu CoderMChu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@edeati Thanks for your pull request. Well spotted and thanks for fixing the group api call. This api is not used internally and should have been removed. It would be great if you can split your changes in 3 different PRs. (i.e group api call fix, docker-compose change and azure pipeline)

- 8081:8081
environment:
- SPRING_DATASOURCE_URL=jdbc:mysql://db:3306/?useSSL=false
- SPRING_DATASOURCE_URL=jdbc:mysql://db:3306/?useSSL=false&llowLoadLocalInfile=true&allowPublicKeyRetrieval=true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"llowLoadLocalInfile=true" is missing a (i.e allowLoadLocalInfile=true)

- mysql:/var/lib/mysql
command:
mysqld --sql_mode="NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES" --lower_case_table_names=1
mysqld --local-infile=ON --sql_mode="NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES" --lower_case_table_names=1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea

@QuyenLy87 QuyenLy87 force-pushed the develop branch 5 times, most recently from 6352584 to d047fec Compare September 12, 2024 12:57
@QuyenLy87 QuyenLy87 force-pushed the develop branch 3 times, most recently from 947fe13 to c926f70 Compare September 19, 2024 02:46
@dmcgihtsdo dmcgihtsdo force-pushed the develop branch 2 times, most recently from 3b84396 to 198f2cd Compare November 19, 2024 11:20
@QuyenLy87 QuyenLy87 force-pushed the develop branch 3 times, most recently from ee0a5ae to 2fdc132 Compare April 9, 2025 13:59
@QuyenLy87 QuyenLy87 force-pushed the develop branch 2 times, most recently from 9297e60 to d00441a Compare August 21, 2025 10:21
@QuyenLy87 QuyenLy87 force-pushed the develop branch 4 times, most recently from cb2fb0f to ac59775 Compare September 9, 2025 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants