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

Problem with the namespace of entities #62

Closed
Gonzalo1987 opened this issue Apr 17, 2019 · 5 comments
Closed

Problem with the namespace of entities #62

Gonzalo1987 opened this issue Apr 17, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@Gonzalo1987
Copy link
Contributor

Hello!
I have been using your package since v1.2 and I like it a lot, but I had a problem with the routes because the characters '' are in the namespace of my entities and the URLs.

The package creates routes such as:
http://localhost/myproject/public/audit/App\Entity\MyEntity
And I can not reach them.

In the version 1.2, I modified the controller and the routes of the views changing the \ in favour of ##, and the trick succeded. But I've updated the bundle and I should make the change again (what is more I lack the DependencyInjector and my Custom Controller haven't the reader in the container).

It would be possible make the change in future versions (I guess that I could implement it, or you can implement a better solution if you wish), but I would prefer that I don't have to make changes about this in the next updates.

I'm sorry for my poor english, I want you to understand what I'm talking about, and thank you for this amazing bundle. 👍

@DamienHarper
Copy link
Owner

DamienHarper commented Apr 17, 2019

Hi @Gonzalo1987
First of all, thanks for your feedback! but I don't really get what the problem is in your use case :/
What do you mean by "I can not reach them"?
What is your current stack (OS, webserver, browser)?
FYI, backslashes in URL are urlencoded (automatically by Symfony) as %5C sequence (see HTML URL Encoding Reference)

@Gonzalo1987
Copy link
Contributor Author

Hi @DamienHarper,
I am using Windows with Apache, it is easily reproducible using wamp64. Windows has problem with the backslashes in the routes. My project is using Symfony 4.x Thank you very much!

@DamienHarper
Copy link
Owner

@Gonzalo1987 OK, it seems to be Windows specific, I'll have a look at this.

@Gonzalo1987
Copy link
Contributor Author

Thank you very much!

DamienHarper added a commit that referenced this issue Apr 18, 2019
DamienHarper added a commit that referenced this issue Apr 18, 2019
@DamienHarper
Copy link
Owner

@Gonzalo1987 this is fixed on master branch. It will be available in upcoming 2.3.0 release.

@DamienHarper DamienHarper added the bug Something isn't working label Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants