Wednesday, May 11, 2011

Spring ACL with UUID

Attempt 1

  1. Change acl_object_identity.object_id_identity field to varchar.
  2. Start application. Expecting error.
  3. App started normally (before any page call)
  4. Browse page, error come up. (Yes~!)
  5. java.lang.String cannot be cast to java.math.BigInteger
  6. Error at existing ACL entry.
Attempt 2
  1. Try insert an object with UUID as PK.
  2. And this is what I'm waiting for: java.lang.NumberFormatException: For input string: "741d25fe-f281-4747-95ef-229c1ba60000"
Attempt 3
  1. Create a Java Project in eclipse
  2. Import from spring-security-acl-3.0.5.RELEASE-sources.jar
  3. Modify (trial-and-error) and (mostly change long to String)
  4. And it works, for now...

No comments: