-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
OPDSParser.parse
is always returning true
#1099
Comments
@BPerlakiH Which exception is thrown? And what exactly is wrong in the OPDS stream to trigger this exception? |
I think that the bug description is not formulated correctly. I believe that it should rather state that |
From the screenshot in kiwix/kiwix-apple#851, it seems this is a allocation error (not enough memory ? to much memory allocated ?) inside icu73 (called by But we need to fix this issue first. This is not related to this method always returning |
I have open the issue #1101 about the memory allocation error in I keep this issue open about the method always returning true. |
@BPerlakiH Can you please open the corresponding issue lin this repo to clearly state what does not work? |
Sorry, I also think that the description was misleading. I did update it, to reflect a more narrow scope: the actual return value of this specific libkiwix function, and how it is described in the compiled header file. |
@veloman-yunkan @mgautierfr We need your feedback here. In a way or the other the libkiwix user would benefit to know if the parsing went well or not. The boolean returns seems appropriate for that and this is what the documentation implies. Documentation and testset around this function should probably be updated. |
OPDSParser.parse
is always returning true
The code proves the opposite -
|
Updated:
On the Apple reader side, we would like to be rest assured, that when invalid data is passed into the
OPDSParser.parse(data:)
function, we can get afalse
value back,so we can handle it gracefully. We already had a unit test on the reader side, but so far it was disabled.
Currently the libkiwix function never returns false:
libkiwix/src/manager.cpp
Lines 167 to 179 in ece4096
Whereas on compiled libkiwix header files, I see this information, which is misleading:
So we either need to return False in case of invalid content, or if that's not possible, update the header file to reflect this special case.
The text was updated successfully, but these errors were encountered: