Skip to content

An asset cannot be read from a location outside the project configuration 1.6.0 #8783

Closed
@eromano

Description

@eromano

Versions

1.6.0

Repro steps

  • Create a project
  • Configure the .angular-cli.json to Read a file from a parent folder

Observed behavior

Load file from an external folder now fails because of this check :

An asset cannot be read from a location outside the project

Introduced by the PR:

64c6031#diff-9eb0a75e499bdadd44d6dc62218812b8

could be possible introduce a parameter configuration as allowOutsideOutDir but for reading? something like :

 "allowOutsideReadDir": true 

It could be false by default and be enabled by the user only when he knows the security risk behind this kind of decision.

Side note the warning message could be improved indicating the assets failing

Desired behavior

Mention any other details that might be useful (optional)

If the idea above are ok for the project I could create a PR

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions