Skip to content

implemented getRoutesByNames(), removed bogus try/catch #187

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
merged 1 commit into from
Oct 7, 2013

Conversation

lsmith77
Copy link
Member

@lsmith77 lsmith77 commented Oct 7, 2013

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #142
License MIT
Doc PR n/a

// https://github.com/symfony-cmf/RoutingBundle/issues/143
// for example, getting /my//test (note the double /) is just an invalid path
// and means another router might handle this.
// but if the PHPCR backend is down for example, we want to alert the user
Copy link
Member

Choose a reason for hiding this comment

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

i don't think we can simply remove this. it will lead to an error 500 if i make my url look like /my//test (see the comment) or anything else not valid in phpcr, like /a:b:c. while i agree that its edge cases, it should still not break as the symfony router or whatever other router comes later in the chain could handle those. and instead of a 500 a weird url should lead to a 404.

the only thing with this exception is that its eating away things we care about while developping, like the repository being down.

Copy link
Member Author

Choose a reason for hiding this comment

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

err .. this was an accident

Copy link
Member Author

Choose a reason for hiding this comment

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

i wanted to remove this from the ORM .. done now

// also check if there are valid reasons for the orm manager to
// throw an exception or if we should just not catch it to not hide
// a severe problem.
$collection->add($key, $route);
Copy link
Member

Choose a reason for hiding this comment

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

this would fix #142 - do we lose anything here or can we never get exceptions except when the db is down?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

great. i added a note to the issue that we fix #142 with this

dbu added a commit that referenced this pull request Oct 7, 2013
implemented getRoutesByNames(), removed bogus try/catch
@dbu dbu merged commit 3082ce5 into master Oct 7, 2013
@dbu dbu deleted the orm_route_provider branch October 7, 2013 14:47
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.

2 participants