Continuum

make AclInitializer read SQL statements from classpath

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.1-alpha-1
  • Component/s: Web interface
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    2

Description

AclInitializer in continuum-acegi-security reads and executes SQL from a file.

To make it work in the webapp needs to read from classpath.

Issue Links

Activity

Hide
Carlos Sanchez added a comment -

Can you take a look to this? it currently works with files, using SqlExecMojo, but in the webapp we'd need to read classpath

I've commented it out in application.xml to load at startup in the meantime

Show
Carlos Sanchez added a comment - Can you take a look to this? it currently works with files, using SqlExecMojo, but in the webapp we'd need to read classpath I've commented it out in application.xml to load at startup in the meantime
Hide
Nap Ramirez added a comment -

This patch can locate the sql file in the jar's context but not in the webapps. I get the following error:

org.apache.maven.plugin.MojoExecutionException: file:/tmp/Jetty__continuum-webapp-1_1-SNAPSHOT/webapp/WEB-INF/lib/continuum-security-acegi-1.1-SNAPSHOT.jar!/org/apache/maven/continuum/security/acegi/acl/acegi-acl-derby.sql not found.

Show
Nap Ramirez added a comment - This patch can locate the sql file in the jar's context but not in the webapps. I get the following error: org.apache.maven.plugin.MojoExecutionException: file:/tmp/Jetty__continuum-webapp-1_1-SNAPSHOT/webapp/WEB-INF/lib/continuum-security-acegi-1.1-SNAPSHOT.jar!/org/apache/maven/continuum/security/acegi/acl/acegi-acl-derby.sql not found.
Hide
Carlos Sanchez added a comment -

Improved patch that reads from classpath.

Nap: it's not possible to get a File object from a classpath resource.

Show
Carlos Sanchez added a comment - Improved patch that reads from classpath. Nap: it's not possible to get a File object from a classpath resource.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: