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

oauth2-authorization-schema.sql produces org.postgresql.util.PSQLException: ERROR: type "blob" does not exist #1253

Closed
pratikpanchal4472 opened this issue Jun 3, 2023 · 2 comments
Assignees
Labels
status: duplicate A duplicate of another issue

Comments

@pratikpanchal4472
Copy link

Describe the bug
Getting below error when using registredClientRepository with Postgres 15.x version
org.postgresql.util.PSQLException: ERROR: type "blob" does not exist
seems like blob datatype is not supported in postgres anymore: oauth2-authorization-schema.sql

To Reproduce
Use postgres v15.2 and below configuration

spring:
sql:
init:
schema-locations:
- 'classpath:org/springframework/security/oauth2/server/authorization/client/oauth2-registered-client-schema.sql'
- 'classpath:org/springframework/security/oauth2/server/authorization/oauth2-authorization-consent-schema.sql'
- 'classpath:org/springframework/security/oauth2/server/authorization/oauth2-authorization-schema.sql'

Expected behavior
It should create the tables for all provided schema locations

@pratikpanchal4472 pratikpanchal4472 added the type: bug A general bug label Jun 3, 2023
@m-thirumal
Copy link

m-thirumal commented Jun 5, 2023

For PostgreSQL, update ALL columns defined with blob to text, as PostgreSQL does not support the blob data type.

OR

Use oauth2-authorization-schema.sql which is modified for this PostgreSQL repository

@jgrandja
Copy link
Collaborator

jgrandja commented Jun 5, 2023

@jgrandja jgrandja closed this as completed Jun 5, 2023
@jgrandja jgrandja self-assigned this Jun 5, 2023
@jgrandja jgrandja added status: duplicate A duplicate of another issue and removed type: bug A general bug labels Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants