You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After 0.7.1 (which worked), when accessing the page of a tag begin with number and a hyphen, whatever the tag exist or not, for example: https://example.com/tag/2016-election/ a 500 (or 422 using the Ghost demo) error is returned:
Parse error on line 1:
tags:2016-election
---------^
Expecting 'OR', 'AND', 'RPAREN', 'RBRACKET', got 'NOT'
When there's no hyphen, everything worked. For example https://example.com/tag/24hour/ And after remove the number and hyphen part, everything works again.
The text was updated successfully, but these errors were encountered:
@fengkaijia, thanks for the clear bug report. I've seen this error a couple of times and not known what was causing it, the only way I could reproduce was with badly formatted API calls. Now I know the cause I should be able to get it fixed up pretty quickly.
fixesTryGhost#6247
- GQL has a bug where literals starting with numbers are incorrectly parsed
- Using strings instead of literals is a workaround, but is probably safer anyway
I've got a PR in for a quick fix. The underlying issue is the same as this: TryGhost/GQL#3 and is going to require a bit of a redesign of GQL's lexer, I think
After 0.7.1 (which worked), when accessing the page of a tag begin with number and a hyphen, whatever the tag exist or not, for example: https://example.com/tag/2016-election/ a 500 (or 422 using the Ghost demo) error is returned:
When there's no hyphen, everything worked. For example https://example.com/tag/24hour/ And after remove the number and hyphen part, everything works again.
The text was updated successfully, but these errors were encountered: