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

analyse VendorSpecific promble #22

Open
joshenWang opened this issue Aug 19, 2024 · 5 comments
Open

analyse VendorSpecific promble #22

joshenWang opened this issue Aug 19, 2024 · 5 comments

Comments

@joshenWang
Copy link

joshenWang commented Aug 19, 2024

Hi~ when i use this project to analyse my radius request, i find some promble
This is the message I constructed
private static Attribute<?> createVendorSpecificAttribute() {
// build VendorSpecificAttribute
final VsaData vsaData1 = new VsaData(10415,22,new byte[] {
xxxx
});
return new VendorSpecific( vsaData1);
}

when i use aaa4j-radous-core to analyse message , it will report null pointer, i see the method of getAttributeDefinition,but i find
typeAttributeDefinitionsMap dose not have the key of generator by AttributeType nextType = nextAttribute.getType().with(containerData.getContainedType());
AttributeDefinition attributeDefinition = dictionary.getAttributeDefinition(nextType);
int numComplete = attributeDefinition.getAttributeCodec().decode(codecContext, attributeStack);

thanks

@joshenWang
Copy link
Author

Look forward to your reply

@tsyd
Copy link
Member

tsyd commented Aug 21, 2024

Hello,

Thank you for reporting this. There was an issue encoding the VendorSpecific attribute when the vendor attribute is not found in the attribute dictionary. This is now fixed in v0.3.1.

Please try the new version:

<dependency>
    <groupId>org.aaa4j.radius</groupId>
    <artifactId>aaa4j-radius-core</artifactId>
    <version>0.3.1</version>
</dependency>

@joshenWang
Copy link
Author

Thanks for your reply, i can download this project but i can not pull the depency from the mvnrepository,and i can't find the version of 0.3.1 from the repository

@tsyd
Copy link
Member

tsyd commented Aug 22, 2024

It's available now: https://central.sonatype.com/artifact/org.aaa4j.radius/aaa4j-radius Sometimes Maven Central takes a few hours to update.

@joshenWang
Copy link
Author

thanks

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

No branches or pull requests

2 participants