-
-
Notifications
You must be signed in to change notification settings - Fork 183
Failing atob test case for malformed input #940
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
Conversation
This should catch a regression potentially introduced in 7a3c32b
|
@cburgmer will have a look - but sounds reasonalble |
|
@cburgmer will merge this, and fix it soon. |
|
@cburgmer fix is in, please have a look and if you can think about other error situations please provide simply as comment here Do you need a fresh snapshot build? |
|
Thanks! I cannot think of other edge cases as of now. I will have to wait for a new upstream version of the selenium driver, so no rush in releasing, it would likely not speed up things much. |
|
Guten Morgen @cburgmer after some sleet and a bit more thinking i fear that this fix will not solve your problem. From my understanding handling this error was also not correct in the old versions. Therefore i guess the behavior is not so much different from the old one. Sonnige Grüße Ronald |
|
If I use the bleeding edge build my script executes successfully, if I go back to the latest version if fails. Here's how I tweaked it to take the bleeding edge: For me this proves the change works. My assumption and oversimplified understanding also was the following: |
|
looks like we are both correct :-D Have done the same test with version 4.7.0. The code passes without throwing an error because the commons lib simply returns '' instead of throwing. Therefore your tests passing.... So the old impl had the same bug - not doing the right think at invalid input. |
|
and the whitespace handling was also broken... |
Upgrading org.seleniumhq.selenium:htmlunit3-driver to v4.28.0 fails a local project. The change set points to an upgrade of htmlunit from 4.7.0 to 4.9.0. Included in this change set is a switch (7a3c32b) to java.util.Base64. I suspect that switch comes with a subtle change in an edge case with invalid input.
This change adds a failing test case with an expectation for a InvalidCharacterError as documented in https://developer.mozilla.org/en-US/docs/Web/API/Window/atob.
I have not implemented a fix as to first confirm my understanding.