Skip to content

Regression with Rack::File.new(nil) #1471

Closed

Description

@gverger

Hello,

I updated rack to 2.1.0 on my Rails 6.0.2.1 app, and it broke with the active storage disk controller.
It seems that it comes from this line in rails, where Rack::File.new(nil) is called.

It has been changed here in version 2.1.0 of Rack.

On the git repository of Rails, it seems this code is not called anymore and that should be fixed in a subsequent version of Rails.

But browsing version 5.2 of Rails showed the same issue here, which makes me think the responsibility would come from Rack to fix it.

I think we could just fix it by expanding the root path only when the root path is not nil, but I am not familiar at all with this codebase and it might be more complicated than that.

Activity

  1. gverger commented on Jan 11, 2020

    @gverger
    Author
  2. tagliala commented on Jan 11, 2020

    @tagliala
    Contributor

    Hi, I've stumbled into this

    Found a duplicate of this issue: #1464

    This has already been fixed on rack master via 1b82d84

  3. ioquatix commented on Jan 11, 2020

    @ioquatix
    Member

    I think the rails use case is fragile. We didn't expect root to be nil. However, we've reverted the change and added specs for this use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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