-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
NullBufferedCipher Broken #1153
Comments
Why do you wanna use NullBufferedCipher? |
@tonyqus we dont want to use NullBufferedCipher but we are doing some reflaction stuff in our unit tests. Something like this:
Than you get the same error, so your break with npoi the .net reflaction |
Not every class in NPOI is fully implemented. I have no idea why you wanna iterate all the classes in NPOI. |
With version 2.6.0 it's works fine. Its feels a little bit unsafe, if we using a library, where some classes are not working correctly and they are public and not internal. We are using 87 different nuget packages and no one did something like that, so its feels like a bad habbit. But if you say its a good practice to do something like that, maybe other libraries will following this trend and we need to accept it. |
Some follow up: @tonyqus
You publish a nuget package with .netstandard2.0 and .netstandard2.1, but you use .net 6 feature like dateonly in your project. see https://www.nuget.org/packages/NPOI
This compile condition will never be true since you are using .netstandard2.1. |
It was already reported in #1118 |
Okay so then the NullBufferedCipher will be fixed in #1118 too, like you see here:
So the answer "Not every class in NPOI is fully implemented. I have no idea why you wanna iterate all the classes in NPOI." is not correct, because you implement the NullBufferedCipher correctly and we can use GetTypes like before. |
We are evaluating the impact of the incorrect release of NPOI 2.6.1. If impact is huge, we will release NPOI 2.6.2. But it looks not many developers are using new features of .NET 6.0 or .NET 7.0 |
I'm having the same issue too |
Same issue here too - any reflection that attempts to load the NPOI assembly throws this:
|
I'm preparing NPOI 2.6.2 release. This issue will be fixed. Release notes: #1168 |
NPOI 2.6.2 rc1 released |
@tonyqus Thanks for releasing 2.6.2, everything is working fine now. |
Hello,
i created a fresh console .net 7 project and used npoi 2.6.1 (newest version).
Than you get the following exception:
Unhandled exception. System.TypeLoadException: Method 'ProcessByte' in type 'NPOI.POIFS.Crypt.Standard.NullBufferedCipher' from assembly 'NPOI.Core, Version=2.6.1.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1' does not have an implementation.
Can you please fix it?
The text was updated successfully, but these errors were encountered: