--eliot-destination reservation of "\" for escape is incompatible with typical Windows usage #2980

Closed
opened 2019-02-26 23:42:15 +00:00 by exarkun · 1 comment
ERROR
Traceback (most recent call last):
> File "c:\projects\tahoe-lafs\.tox\py\lib\site-packages\unittest2\case.py", line 67, in testPartExecutor
    yield
> File "c:\projects\tahoe-lafs\.tox\py\lib\site-packages\unittest2\case.py", line 625, in run
    testMethod()
> File "c:\projects\tahoe-lafs\src\allmydata\test\test_eliotutil.py", line 471, in test_regular_file
    _parse_destination_description("file:{}".format(path))(reactor),
> File "c:\projects\tahoe-lafs\src\allmydata\util\eliotutil.py", line 410, in parse
    return parser(kind, args)
> File "c:\projects\tahoe-lafs\src\allmydata\util\eliotutil.py", line 426, in _parse_file
    u"Unsupported escape character (\\) in destination text ({!r}).".format(arg_text),
exceptions.ValueError: Unsupported escape character (\) in destination text (u'\\\\?\\C:\\projects\\tahoe-lafs\\_trial_temp\\allmydata.test.test_download\\DownloadV2\\test_download_no_overrun\\pjsjzk\\temp\\clients\\ol2lnqfj\\tmp\\tmps1zefj\\regular_file').
allmydata.test.test_eliotutil.ParseDestinationDescriptionTests.test_regular_file
``` ERROR Traceback (most recent call last): > File "c:\projects\tahoe-lafs\.tox\py\lib\site-packages\unittest2\case.py", line 67, in testPartExecutor yield > File "c:\projects\tahoe-lafs\.tox\py\lib\site-packages\unittest2\case.py", line 625, in run testMethod() > File "c:\projects\tahoe-lafs\src\allmydata\test\test_eliotutil.py", line 471, in test_regular_file _parse_destination_description("file:{}".format(path))(reactor), > File "c:\projects\tahoe-lafs\src\allmydata\util\eliotutil.py", line 410, in parse return parser(kind, args) > File "c:\projects\tahoe-lafs\src\allmydata\util\eliotutil.py", line 426, in _parse_file u"Unsupported escape character (\\) in destination text ({!r}).".format(arg_text), exceptions.ValueError: Unsupported escape character (\) in destination text (u'\\\\?\\C:\\projects\\tahoe-lafs\\_trial_temp\\allmydata.test.test_download\\DownloadV2\\test_download_no_overrun\\pjsjzk\\temp\\clients\\ol2lnqfj\\tmp\\tmps1zefj\\regular_file'). allmydata.test.test_eliotutil.ParseDestinationDescriptionTests.test_regular_file ```
exarkun added the
code-frontend-cli
supercritical
defect
1.12.1
labels 2019-02-26 23:42:15 +00:00
exarkun added this to the undecided milestone 2019-02-26 23:42:15 +00:00
GitHub <noreply@github.com> commented 2019-02-27 15:16:49 +00:00
Owner

In 64ef320/trunk:

Merge pull request #557 from tahoe-lafs/2980.eliot-destination-escaping

Fix escaping in Eliot destinations

Fixes: ticket:2980
In [64ef320/trunk](/tahoe-lafs/trac-2024-07-25/commit/64ef32059235b4aea1fb2a33383cab5e3dc2b8ae): ``` Merge pull request #557 from tahoe-lafs/2980.eliot-destination-escaping Fix escaping in Eliot destinations Fixes: ticket:2980 ```
tahoe-lafs added the
fixed
label 2019-02-27 15:16:49 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#2980
No description provided.