Skip to content

[Static Web Assets] Allow assets with empty base paths #17414

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

Merged

Conversation

javiercn
Copy link
Member

@javiercn javiercn commented Nov 26, 2019

Description

Static web assets don't work properly if the library specifies an empty base path "/".
Fixes #17375

Customer Impact

This prevents customers from exposing static web assets at the root of the app. The asset will still get published to the root, but will be inaccessible when running the build output.

Regression?

No

Risk

Low. This is not a default use case for static web assets (normally the content for libraries gets exposed from _content/<<LibraryName>>/...). But we want to be able to expose the content from "/" for Blazor applications and this is blocking it.

We are not changing a behavior in how the scenario work, simply fixing a bug where something didn't work to something that works.

Implementation details
We simply detect this special case and handle it.

@javiercn javiercn requested a review from pranavkm November 26, 2019 20:27
@Pilchie Pilchie added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Nov 26, 2019
@javiercn javiercn marked this pull request as ready for review December 12, 2019 14:55
@javiercn javiercn force-pushed the javiercn/static-web-assets-empty-base-paths branch from 8e554a5 to 5b67aed Compare December 12, 2019 15:03
@javiercn javiercn force-pushed the javiercn/static-web-assets-empty-base-paths branch from 5b67aed to 3b5c36e Compare December 12, 2019 15:53
@analogrelay analogrelay removed their request for review December 12, 2019 16:22
@mkArtakMSFT mkArtakMSFT added the Servicing-consider Shiproom approval is required for the issue label Dec 12, 2019
@mkArtakMSFT mkArtakMSFT added this to the 3.1.x milestone Dec 12, 2019
@jamshedd jamshedd added Servicing-approved Shiproom has approved the issue and removed Servicing-consider Shiproom approval is required for the issue labels Dec 12, 2019
@jamshedd jamshedd modified the milestones: 3.1.x, 3.1.2 Dec 12, 2019
@jamshedd
Copy link
Member

Approved for 3.1.2

@vivmishra vivmishra modified the milestones: 3.1.2, 3.1.3 Jan 9, 2020
@vivmishra
Copy link

Moved to Mar as per Tactics. Will need to be explicitly approved for Feb, if required.

@mkArtakMSFT mkArtakMSFT modified the milestones: 3.1.3, 3.1.2 Jan 15, 2020
@mkArtakMSFT
Copy link
Contributor

Moving back to 3.1.2 per a later Tactics decision (@vivmishra, @jamshedd)

@mkArtakMSFT mkArtakMSFT merged commit b4d2f9a into release/3.1 Jan 15, 2020
@mkArtakMSFT mkArtakMSFT deleted the javiercn/static-web-assets-empty-base-paths branch January 15, 2020 19:45
dougbu added a commit that referenced this pull request Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates Servicing-approved Shiproom has approved the issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants