Skip to content

Conversation

@timbl
Copy link
Contributor

@timbltimbl commented Jun 2, 2019

Closes#1211.
Closes#1212.

RubenVerborgh
RubenVerborgh previously requested changes Jun 2, 2019
Copy link
Contributor

@RubenVerborghRubenVerborgh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got some nits; will fix them myself.

@RubenVerborghRubenVerborgh self-assigned this Jun 2, 2019
@RubenVerborghRubenVerborghforce-pushed the getFilePath branch 2 times, most recently from 4bffc6b to f4cba19CompareJune 2, 2019 20:08
@RubenVerborghRubenVerborgh changed the title Tweak put.js to avoid problem with URIs with spaces inRestrict knowledge of the URL/file mapping again to ResourceMapperJun 2, 2019
@RubenVerborgh
Copy link
Contributor

@megoth Too much knowledge about the URL/file mapping was leaking in other components, leading to bugs such as #1211, which #643 was created to prevent.

Unit tests run, but have not checked anything else. In particular, you want to look at:

  • allow.js
  • globbing (which now no longer is a hack, but has been reduced in functionality to only folder globs)
  • a skipped test which I think was incorrect

Copy link
Contributor

@megothmegoth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a lot happening here, but AFAICT it looks good ^_^

@kjetilk
Copy link
Member

@RubenVerborgh perhaps you can hit merge on this when you're happy?

@RubenVerborghRubenVerborgh merged commit 111e63b into masterJun 7, 2019
@RubenVerborghRubenVerborgh deleted the getFilePath branch June 7, 2019 08:22
@RubenVerborgh
Copy link
Contributor

Thanks all!

@michielbdejong
Copy link
Member

@RubenVerborgh so did #1226 start happening when this PR was merged, or was that a coincidence?

@RubenVerborgh
Copy link
Contributor

Yes; some of the knowledge that needed to be inside of ResourceMapper was encoded externally, and in a different way. Relying again on ResourceMapper brought to light the incorrect mapping.

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

Labels

Projects

None yet

6 participants

@timbl@RubenVerborgh@kjetilk@michielbdejong@megoth