Skip to content
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

remove a weird special case in path traversal #20

Closed
wants to merge 3 commits into from
Closed

Conversation

doy
Copy link
Collaborator

@doy doy commented Dec 27, 2012

Previously, given

my $c = container 'Foo', as {
container 'Bar', as {
service 'Baz' => (value => 1);
};
};

you could do $c->fetch('/Foo/Foo/Bar/Bar/Bar/Baz') and still get out the
Baz service, because giving the name of the current container as a path
component was treated as a no-op. This doesn't actually make any sense,
is fairly confusing, and required extra code to implement it as a
special case, so I'm not sure why it was behaving that way at all
originally. So, remove it.

Previously, given

  my $c = container 'Foo', as {
      container 'Bar', as {
          service 'Baz' => (value => 1);
      };
  };

you could do $c->fetch('/Foo/Foo/Bar/Bar/Bar/Baz') and still get out the
Baz service, because giving the name of the current container as a path
component was treated as a no-op. This doesn't actually make any sense,
is fairly confusing, and required extra code to implement it as a
special case, so I'm not sure why it was behaving that way at all
originally. So, remove it.
@doy
Copy link
Collaborator Author

doy commented Jan 2, 2013

Alright, updated this pull request to turn it into a deprecation warning for now.

@doy
Copy link
Collaborator Author

doy commented Jan 28, 2013

Any thoughts on this?

@doy
Copy link
Collaborator Author

doy commented Aug 1, 2013

Merged.

@doy doy closed this Aug 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant