Uh oh!
There was an error while loading. Please reload this page.
feat(c14n): add canonicalization functionality - #37
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| local ffi = require("ffi") | ||
Uh oh!
There was an error while loading. Please reload this page.
kou
commented
Nov 22, 2024
Wow! I didn't know that libxml2 provides the c14n API. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
250e088 to
e57e61dCompareUh oh!
There was an error while loading. Please reload this page.
Tieske
commented
Nov 27, 2024
For the CI failures, not sure what happened. Since the failures are unrelated to this PR, it reminds me of the ffi-reloading issue. The test frameworks tend to isolate tests, by clearing the environment and run the next test clean. However the LuaJIT ffi is not suited for that and will occasionally segfault if you do. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Tieske
commented
Nov 30, 2024
I reworked your review comments one-by-one, a commit per comment. Just the last commit (merge into document.lua) is a big one that obfuscates all other changes. So probably best to review the changes on a per commit basis. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kou
commented
Dec 4, 2024
Could you add some tests for |
Tieske
commented
Dec 4, 2024
yes it should, but my priorities are shifting, so might take a while. |
Tieske
commented
Dec 4, 2024
basic test added |
Tieske
commented
Dec 10, 2024
@kou any update on this? |
| -- From: https://www.w3.org/2008/xmlsec/Drafts/c14n-20/test-cases/Overview.src.html | ||
| function TestDocumentC14N.test_PIs_Comments_and_Outside_of_Document_Element() | ||
| -- https://www.w3.org/2008/xmlsec/Drafts/c14n-20/test-cases/files/inC14N1.xml |
There was a problem hiding this comment.
Ah, we don't need to test C14N behaviors implemented in libxml2. Because they must be tested in libxml2.
We only need to test our API. For example, document:canonicalize(function) case, document:canonicalize(nodes) case, document:canonicalize(..., options) case and so on.
There was a problem hiding this comment.
agreed, all I did was just grab some of them to verify it works as intended.
This tests with and without "with_comments" probably also needs a test with the prefix list
Sorry for my late response... How about the followings to proceed this?
(We can write documents for this later.) |
Tieske
commented
Dec 11, 2024
Done
if you handle item 2, then 3 is also yours to handle. So please go ahead. |
kou
commented
Dec 16, 2024
I've fixed test failures on macOS on master and rebased on master. I've added tests. I also added some changes:
I'll merge this if you don't object these changes. |
Tieske
commented
Dec 16, 2024
Lgtm! |
kou
commented
Dec 16, 2024
Merged! Should we release the current master as a new version? Or should we release a new version after #40? |
Tieske
commented
Dec 17, 2024
no real opinion here. Since that would add a feature, it can be done at any later time as well. |
kou
commented
Dec 17, 2024
OK. I'll release a new version before #40. |
kou
commented
Dec 17, 2024
Released. |
GitHub: fixGH-36