aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/git-annex_adds_unicode_characters_at_end_of_checksum/comment_6_c39d87c005f82da6424064f61b8ccd58._comment
blob: a6b40418ff47f2854fd0b9ec62334c844eaff503 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[[!comment format=mdwn
 username="i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9"
 nickname="i"
 avatar="http://cdn.libravatar.org/avatar/661785c9bf4c87cc795f130b47a1c4ae"
 subject="thanks for the quick response!"
 date="2018-03-05T17:19:19Z"
 content="""
That was really quick, thanks. I had no idea that the E in SHA256E stands for adding extensions. That makes the fix much easier, and much neater than adding spaces to filenames. Although it does make me wonder, what's the advantage of having the file extension in the key?

And yes, the python glacier-cli is failing with:

[[!format sh \"\"\"
% git annex copy 12.\ Change\ The\ World\ \(feat.\ 웅산\).mp3 --to glacier
copy 12. Change The World (feat. 웅산).mp3 (checking glacier...) Traceback (most recent call last):
  File \"/usr/local/bin/glacier\", line 737, in <module>
    main()
  File \"/usr/local/bin/glacier\", line 733, in main
    App().main()
  File \"/usr/local/bin/glacier\", line 719, in main
    self.args.func()
  File \"/usr/local/bin/glacier\", line 600, in archive_checkpresent
    self.args.vault, self.args.name)
  File \"/usr/local/bin/glacier\", line 161, in get_archive_last_seen
    result = self._get_archive_query_by_ref(vault, ref).one()
  File \"/usr/local/bin/glacier\", line 136, in _get_archive_query_by_ref
    if ref.startswith('id:'):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xec in position 83: ordinal not in range(128)
(user error (glacier [\"--region=eu-west-1\",\"archive\",\"checkpresent\",\"music\",\"--quiet\",\"SHA256E-s7479642--957208748ae03fe4fc8d7877b2c9d82b7f31be0726e4a3dec9063b84cc64cf09.\50885\49328.mp3\"] exited 1)) failed
git-annex: copy: 1 failed
\"\"\"]]

I'll open an issue in their GitHub in a moment since now I can give them some more context. Cheers!
"""]]