Skip to content

Add native hints for default LDIF file #32084

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

Closed
marcusdacoregio opened this issue Aug 15, 2022 · 2 comments
Closed

Add native hints for default LDIF file #32084

marcusdacoregio opened this issue Aug 15, 2022 · 2 comments
Assignees
Labels
theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Milestone

Comments

@marcusdacoregio
Copy link

marcusdacoregio commented Aug 15, 2022

Spring Boot supports importing an LDIF file into an embedded LDAP server via spring.ldap.embedded.ldif.
When running the application natively, it fails with a NullPointerException because the resource is not added to the generated binary. It works when doing hints.resources().registerPattern("*.ldif");

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 15, 2022
@snicoll snicoll added type: enhancement A general enhancement theme: aot An issue related to Ahead-of-time processing and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 18, 2022
@snicoll snicoll added this to the 3.0.0-M5 milestone Aug 18, 2022
@snicoll snicoll self-assigned this Aug 18, 2022
@snicoll snicoll changed the title Add native hints for LDIF files Add native hints for default LDIF file Aug 18, 2022
@snicoll
Copy link
Member

snicoll commented Aug 18, 2022

I am trying to make this work with the default schema.ldif and it doesn't in the smoke test at the moment. Not sure why.

The generated hint is as follows:

{
        "pattern": "\\Qschema.ldif\\E"
      }

@snicoll
Copy link
Member

snicoll commented Aug 18, 2022

An additional hint specific to unboundid was required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants