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

v1.28.0 — version has been yanked to avoid escape character bug #3680

Closed
BrynCooke opened this issue Aug 25, 2023 · 6 comments
Closed

v1.28.0 — version has been yanked to avoid escape character bug #3680

BrynCooke opened this issue Aug 25, 2023 · 6 comments
Assignees

Comments

@BrynCooke
Copy link
Contributor

BrynCooke commented Aug 25, 2023

Using the following comment will within a graphql schema will prevent the Router starting.

"""
'/\W/'
"""

This worked on 1.27.0.

@o0Ignition0o
Copy link
Contributor

Here is a snippet that reproduces the issue:

use apollo_compiler::ApolloCompiler;
use apollo_compiler::AstDatabase;

fn main() {
    let stuff = r#"
    """
    '/\W/'
    """
    "#;

    let mut compiler = ApolloCompiler::new();
    let id = compiler.add_type_system(stuff, "schema.graphql");

    let ast = compiler.db.ast(id);

    let mut parse_errors = ast.errors();
    assert_eq!(
        "ERROR@5:27 \"expected definition\" \"\"\"\n    '/\\W/'\n    \"\"\"",
        parse_errors.next().unwrap().to_string()
    );
}

This test passes using apollo_compiler "=0.10.0" and fails using apollo_compiler "=0.11.0" and above.

The test fails with this output:

thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `"ERROR@5:27 \"expected definition\" \"\"\"\n    '/\\W/'\n    \"\"\""`,
 right: `"ERROR@5:27 \"unexpected escaped character\" \"\"\"\n    '/\\W/'\n    \"\"\""`', src/main.rs:17:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@abernix abernix changed the title Graphql comment escape character parsing is broken in 1.28.0 v1.28.0: escape character in comment results in failure Aug 25, 2023
@abernix abernix pinned this issue Aug 25, 2023
@abernix
Copy link
Member

abernix commented Aug 25, 2023

We're looking at the upstream fix in apollographql/apollo-rs#632.

@SimonSapin
Copy link
Contributor

I think the underlying cause is the same as #3541

BrynCooke pushed a commit that referenced this issue Aug 25, 2023
We have discovered an issue with comment parsing in graphql schema in this release (#3680).

To prevent issues for our users we have decided to yank this release.
Users should use 1.27.0 until we fixed the issue and released 1.28.1.

This commit reverts our documentation and also points `install.sh` back to 1.27.0.
abernix added a commit that referenced this issue Aug 25, 2023
We have discovered an issue with comment parsing in graphql schema in
this release (#3680).

To prevent issues for our users we have decided to yank this release.
Users should use 1.27.0 until we fixed the issue and released 1.28.1.

This commit reverts our documentation and also points `install.sh` back
to 1.27.0.

---------

Co-authored-by: bryn <[email protected]>
Co-authored-by: Jesse Rosenberger <[email protected]>
@abernix abernix changed the title v1.28.0: escape character in comment results in failure v1.28.0 — version has been yanked to avoid escape character bug Aug 25, 2023
@abernix
Copy link
Member

abernix commented Aug 25, 2023

We yanked 1.28.0. We will re-publish a new 1.28.x series as soon as this issue is resolved. v1.27.0 is again the latest version as of this time. Thanks for your patience!

@goto-bus-stop
Copy link
Member

Fix in #3675

xuorig pushed a commit to xuorig/router that referenced this issue Aug 28, 2023
We have discovered an issue with comment parsing in graphql schema in
this release (apollographql#3680).

To prevent issues for our users we have decided to yank this release.
Users should use 1.27.0 until we fixed the issue and released 1.28.1.

This commit reverts our documentation and also points `install.sh` back
to 1.27.0.

---------

Co-authored-by: bryn <[email protected]>
Co-authored-by: Jesse Rosenberger <[email protected]>
abernix added a commit that referenced this issue Aug 28, 2023
We yanked v1.28.0 due to
#3680, but re-published it
with #3696 (v1.28.1).

This moves the changelog from 1.28.0 to 1.28.1 where the full contents of
the release can be recognized!
abernix added a commit that referenced this issue Aug 28, 2023
We yanked v1.28.0 due to
#3680, but re-published it
with #3696 (v1.28.1).

This moves the changelog from 1.28.0 to 1.28.1 where the full contents
of the release can be recognized!
@abernix
Copy link
Member

abernix commented Aug 28, 2023

Thank you @goto-bus-stop! We have released https://github.com/apollographql/router/releases/tag/v1.28.1 with the fix. It takes the place of our 1.28.0 recommendation and we've updated the release notes for v1.28.1 to include all of v1.28.0's notes.

@abernix abernix closed this as completed Aug 28, 2023
@abernix abernix self-assigned this Aug 28, 2023
@abernix abernix unpinned this issue Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants