Skip to content

Ruby Warning: URI::RFC3986_PARSER.escape is obsoleted. Use URI::RFC2396_PARSER.escape explicitly #816

@andreavocado

Description

@andreavocado

Expected behavior

With Ruby warnings enabled there should be no warnings in the logs. URI::RFC2396_PARSER is used instead of URI::RFC3986_PARSER

Actual behavior

When enabling Ruby warnings with RUBYOPT="-W2 -W:deprecated -W:experimental -W:performance" there is a warning like this:
/baseimage/cache/bundler/ruby/3.3.0/gems/sprockets-4.2.1/lib/sprockets/uri_utils.rb:66: warning: URI::RFC3986_PARSER.escape is obsolete. Use URI::RFC2396_PARSER.escape explicitly.

AND other cases
/baseimage/cache/bundler/ruby/3.3.0/gems/sprockets-4.2.1/lib/sprockets/uri_utils.rb:165
/baseimage/cache/bundler/ruby/3.3.0/gems/sprockets-4.2.1/lib/sprockets/uri_utils.rb:48
/baseimage/cache/bundler/ruby/3.3.0/gems/sprockets-4.2.1/lib/sprockets/uri_utils.rb:185

System configuration

  • 4.2.1
  • 3.3.4

Related PR

#812

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions