Skip to content
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

cylc review: can't handle suite names with special characters #3441

Open
dpmatthews opened this issue Nov 19, 2019 · 6 comments
Open

cylc review: can't handle suite names with special characters #3441

dpmatthews opened this issue Nov 19, 2019 · 6 comments
Assignees
Labels
bug Something is wrong :(
Milestone

Comments

@dpmatthews
Copy link
Contributor

If I create a suite named cylc-run/test and then try to list my suites using cylc review (7.8.4) I get:

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "/net/home/h03/fcm/cylc-7.8.4/lib/cherrypy/_cprequest.py", line 679, in respond
    response.body = self.handler()
  File "/net/home/h03/fcm/cylc-7.8.4/lib/cherrypy/lib/encoding.py", line 230, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/net/home/h03/fcm/cylc-7.8.4/lib/cherrypy/_cpdispatch.py", line 60, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/net/home/h03/fcm/cylc-7.8.4/lib/cylc/review.py", line 493, in suites
    return template.render(**data)
  File "/net/home/h03/fcm/cylc-7.8.4/lib/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
  File "/net/home/h03/fcm/cylc-7.8.4/lib/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/net/home/h03/fcm/cylc-7.8.4/lib/cylc/cylc-review/template/suites.html", line 170, in top-level template code
    <td><small>{{entry.name}}</small></td>
  File "/net/home/h03/fcm/cylc-7.8.4/lib/markupsafe/_native.py", line 22, in escape
    return Markup(text_type(s)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 4: ordinal not in range(128)

Probably not worth fixing at this stage?

@dpmatthews dpmatthews added the bug Something is wrong :( label Nov 19, 2019
@dpmatthews dpmatthews added this to the cylc-7.8.x milestone Nov 19, 2019
@kinow
Copy link
Member

kinow commented Nov 19, 2019

Probably not worth fixing at this stage?

Not sure, but if anyone works on this, there are other three or four cylc review bugs in the backlog too. Maybe we can tackle everything when moving to Cylc 8?

@oliver-sanders
Copy link
Member

See also #2979

@oliver-sanders
Copy link
Member

Closed by #3274?

@hjoliver
Copy link
Member

Closed by #3274?

That will help a lot, but we still wouldn't want a manually-created cylc-run sub-directory to crash cylc review (users shouldn't do that, but they can)

@wxtim
Copy link
Member

wxtim commented Jan 31, 2020

This happened again yesterday, so it's not fully resolved.

@oliver-sanders
Copy link
Member

oliver-sanders commented Feb 3, 2020

Fair enough, actually I seem to remember someone creating a symlink to $HOME within cylc-run once, we wouldn't want the UI Server to be vulnerable to mess like that.

@oliver-sanders oliver-sanders self-assigned this Oct 31, 2024
oliver-sanders added a commit to oliver-sanders/cylc-flow that referenced this issue Oct 31, 2024
* Addresses cylc#3441
* Patch a urllib method that does not support non-ASCII characters.
* Search functionality will not work, this is challenging to fix under
  Python 2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :(
Projects
None yet
Development

No branches or pull requests

5 participants