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

Fix import of javax.security.auth.login #771

Closed
wants to merge 2 commits into from

Conversation

stbischof
Copy link

@stbischof stbischof commented Aug 4, 2021

The bundle does not import the package of "javax.security.auth.login.LoginException" and "javax.security.auth.Subject"

This is just a "quick fix". I recommend to use it this way:

    jar.manifest.attributes['Import-Package'] = [
        '!foo.bar.*', // ! signals to exclude from importing 
        'io.netty.*;resolution:=optional',
        'org.xerial.snappy.*;resolution:=optional',
        'com.github.luben.zstd.*;resolution:=optional',
        'org.slf4j.*;resolution:=optional',
        'jnr.unixsocket.*;resolution:=optional',
        'com.mongodb.crypt.capi.*;resolution:=optional',
        '*' // import all that is not excluded or modified before
    ].join(',')

The bundle does not import the package of "javax.security.auth.login.LoginException".

This is just a "quick fix". I recommend to use it this way:

```
    jar.manifest.attributes['Import-Package'] = [
        '!foo.bar.*', // ! signals to exclude from importing 
        'io.netty.*;resolution:=optional',
        'org.xerial.snappy.*;resolution:=optional',
        'com.github.luben.zstd.*;resolution:=optional',
        'org.slf4j.*;resolution:=optional',
        'jnr.unixsocket.*;resolution:=optional',
        'com.mongodb.crypt.capi.*;resolution:=optional',
        '*' // import all that is not excluded or modified before
    ].join(',')
```
@jyemin
Copy link
Contributor

jyemin commented Aug 23, 2021

Hi @stbischof,

I like your recommendation. If you wouldn't mind changing the PR to reflect it and then testing it (unfortunately we don't have an OSGi testing environment set up), we'd be happy to merge it.

Thanks,
Jeff

@rozza
Copy link
Member

rozza commented Sep 3, 2021

Hi @stbischof I've created #779 applying your suggested fix. Closing this PR in favour of that PR.

@rozza rozza closed this Sep 3, 2021
@stbischof
Copy link
Author

stbischof commented Sep 3, 2021

Hadn't seen you comment. Thx for fixing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants