summaryrefslogtreecommitdiff
path: root/bugs/Unhelpful_error_for_missing_key.mdwn
blob: 9845930485e3b21e95f97a0e9451314f22475b69 (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
[[!tag obnam-wishlist]]

I decided to try running fsck on a remote repo from a user account that doesn't have the GPG key used to encrypt with.  I got this error, which isn't helpful.  I think, at least, it should mention the possibility that there is a missing key.

<pre>ERROR: Unknown filter tag encountered: '\x8c\r\x04\x03\x03\x02n\x7fX8\xa5\xd7\xf1\xbd`\xc9[\xba\xc0\x11kU\xd0\x8f\xf3\r\x97J@\x0c\xc9\x11\xaan\xefxx\x89\xe9\x9b\xac\x96\xce \x1cD{:\x02\x10I\xda\xbb;\x0e\xac\xd3d9\x18(\x0c\xe4\x8a\xf89\xed\x9a!\x85\xd0t\xd0\xaa^0\xee\x17{\xe3\x9d\xa3\x89O\xc6\x04$c\x96\xee\xf3\xbb{.|\xd5\xb0\x96Z\xb3\x11\x0f&B\xf0'</pre>

---

Someone else also reported this:

Minor improvement: using Obnam 1.0 on Debian Unstable, the error message when using an encrypted repository without specifying any key is not helpful. Please consider using a human-readable error message to warn the user that the key is missing (or wrong).

Here is an example of error message when using "obnam fsck" without the key:

    Traceback (most recent call last):
    [lots of debug info]
    File "/usr/lib/python2.7/dist-packages/obnamlib/hooks.py", line 122, in run_filter_read
      tag, content = data.split("\0", 1)
    ValueError: need more than 1 value to unpack


---

Fixed in git now. [[done]] --liw