Skip to content

Commit cd4b0a1

Browse files
committed
fix: Use length 65535 for WebAuthn blob columns to avoid MySQL MEDIUMBLOB promotion
65536 is 1 byte over MySQL's BLOB threshold (65535), causing Hibernate to generate MEDIUMBLOB instead of BLOB. Also update README version to 4.2.2.
1 parent fc53d8b commit cd4b0a1

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ Spring Boot 4.0 brings significant changes including Spring Security 7 and requi
130130
<dependency>
131131
<groupId>com.digitalsanctuary</groupId>
132132
<artifactId>ds-spring-user-framework</artifactId>
133-
<version>4.2.1</version>
133+
<version>4.2.2</version>
134134
</dependency>
135135
```
136136

137137
**Gradle:**
138138
```groovy
139-
implementation 'com.digitalsanctuary:ds-spring-user-framework:4.2.1'
139+
implementation 'com.digitalsanctuary:ds-spring-user-framework:4.2.2'
140140
```
141141

142142
#### Spring Boot 4.0 Key Changes
@@ -207,7 +207,7 @@ Follow these steps to get up and running with the Spring User Framework in your
207207

208208
**Spring Boot 4.0 (Java 21+):**
209209
```groovy
210-
implementation 'com.digitalsanctuary:ds-spring-user-framework:4.2.1'
210+
implementation 'com.digitalsanctuary:ds-spring-user-framework:4.2.2'
211211
```
212212

213213
**Spring Boot 3.5 (Java 17+):**

src/main/java/com/digitalsanctuary/spring/user/persistence/model/WebAuthnCredential.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ public class WebAuthnCredential {
5858
private boolean backupState;
5959

6060
/** Attestation data from registration (can be several KB). */
61-
@Column(name = "attestation_object", length = 65536)
61+
@Column(name = "attestation_object", length = 65535)
6262
private byte[] attestationObject;
6363

6464
/** Client data JSON from registration (can be several KB). */
65-
@Column(name = "attestation_client_data_json", length = 65536)
65+
@Column(name = "attestation_client_data_json", length = 65535)
6666
private byte[] attestationClientDataJson;
6767

6868
/** Creation timestamp. */

0 commit comments

Comments
 (0)