Closed dgtlmoon closed 3 years ago
I've included whitespace in reference_data.py without ignoring any characters.
Finally, you see the key problem. Exiv2 returns x:xmptk="XMP Core 4.4.0-Exiv2"
. I haven't investigated the cause of it.
https://github.com/LeoHsiao1/pyexiv2/issues/41#issuecomment-753575807
OK - do you agree to this
@check_md5
def test_read_raw_xmp():
with Image(test_img) as img:
f = open("test_read_raw_xmp.txt", "w+")
f.write(img.read_raw_xmp())
diff_text(reference_data.RAW_XMP, img.read_raw_xmp())
I see in test_read_raw_xmp.txt
Ubuntu 18.0.4.5 (me) - x:xmptk="Adobe XMP Core 5.6-c128 79.159124, 2016/03/18-14:01:55 ">
(same as in image)
Ubuntu 18.0.4.2 (you) - x:xmptk="XMP Core 4.4.0-Exiv2 ">
(something else)
Can you confirm yes/no that you see this in your test_read_raw_xmp.txt
?
Yeah, that's what I got with exiv2 : x:xmptk="XMP Core 4.4.0-Exiv2"
So I use it as a reference output for test cases.
@LeoHsiao1 OK, maybe nice idea is to include the output of img.read_raw_xmp()
in the debug test verbose output, so then we can see how it looks in github actions too..
Something in your setup is weird, if what you're saying is true..
The current version of Exiv2 I am using is
0.27.2
. Ubuntu 18.0.4.2 (you)
because the current 18.0.4 LTS package should be 0.25-3
https://ubuntu.pkgs.org/18.04/ubuntu-main-amd64/libexiv2-14_0.25-3.1_amd64.deb.html
are you running something weird like testing
?
How do you have 0.27 ?
Well. According to the document pyexiv2/lib, you should download the distribution of Exiv2 from the website.
Download the release version of Exiv2, unpack it.
- Linux64 : <https://www.exiv2.org/archive.html>
This project gets more insane,
Your perspective "We tested for ubuntu 18.04 but using a version of the library that is not shipped lib 18.04"
fuck man :/ sorry, this is just completely insane
I cant contribute here anymore, it's just too insane
Is there a reason why you insist on a version of a library that is not shipped with that distribution? I bet you did not bother to document that reason?
Of course, I am using the latest version as possible.
So your thoughts are strange: Why did you stick with the old version 4 years ago?
This statement is false: a version of a library that is not shipped with that distribution
Pkgs.org does not include Exiv2 0.27 because no one updated the release package above, not because Exiv2 0.27 does not support Ubuntu 18.04.
Anyway, when you download a software, you always look to see if the package exists on Pkgs.org, rather than the official website of the software? That idea is crazy! Pkgs.org doesn't update packages very often, they are just volunteers.
If you are a beginner, I suggest you download general software in these ways:
By the way, the CI process of Exiv2 is running on ubuntu18.0.4
.
If you build from the source package, you can execute Exiv2 on a lower version of Ubuntu.
USE THE ACTUAL LIBRARY THAT IS SHIPPED WITH THE DISTRIBUTION
THIS STOPS YOU FROM HAVING TO MANUALLY UPGRADE THE LIBRARY WHEN THERE IS A SECURITY ISSUE FOUND!
THIS IS THE WHOLE REASON FOR USING THE ACTUAL LIBRARY THAT IS SHIPPED WITH THE DISTRIBUTION !!
THERE IS NOTHING WRONG WITH USING AN "OLDER" VERSION IF IT STILL FUNCTIONS FINE!
it's all about managing the risks, you cannot expect the site owner to check his exiv version for updates/security issues every night
this is insane!
In your opinion, the older the software, the more secure it is. So why are you using ubuntu18.04, not Ubuntu 14.04, Ubuntu 4.04 ?
In your opinion, ubuntu18.04 is not safe to use exiv2 0.27.2. However, exiv2 does not officially say this and has been using ubuntu18.04 as the CI environment. Your opinion is not reasonable.
To make matters worse: Exiv2 fixes a number of problems with each version update: https://www.exiv2.org/changelog.html If you use an older version, you can be attacked with a known defect. Surprise!
I just released v2.4.1 , which adds APIs for handling Comment embedded in images. Although the API was implemented two weeks ago, I spent the rest of the time adding APIs for handling ICC, improving test cases, and improving the Workflow scripts.
This issue has been automatically closed because there has been no activity for a month.
Python3.6 on ubuntu here