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

Unable to fetch Doctrine metadata #3

Open
weierophinney opened this issue Dec 31, 2019 · 2 comments
Open

Unable to fetch Doctrine metadata #3

weierophinney opened this issue Dec 31, 2019 · 2 comments

Comments

@weierophinney
Copy link
Contributor

The request for address http://myapp.com/apigility/api/doctrine/doctrine.entitymanager.orm_default/metadata/Application%5CEntity%5CUser return :

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /apigility/api/doctrine/doctrine.entitymanager.orm_default/metadata/Application\Entity\User was not found on this server.</p>
<hr>
<address>Apache/2.4.18 (Win32) PHP/7.0.4 Server at myapp.com Port 80</address>
</body></html>

The request it's performed with AngularJS service $http, but the Url is incorrect. The bars () that are guilty. I modified the Url replacing the bars for the hyphen in the request and adding the server side the rule to reverse.

I don't know if is the best solution, but I needed to be fast. The solution is temporary. I wait for solution.


Originally posted by @leandrogf at zfcampus/zf-apigility-admin-ui#140

@weierophinney
Copy link
Contributor Author

@leandrogf Can you submit PR with your solution, please?


Originally posted by @michalbundyra at zfcampus/zf-apigility-admin-ui#140 (comment)

@weierophinney
Copy link
Contributor Author

@leandrogf Sorry, I just noted that probably everything is fine with it, please see "note about using apache" in zf-apigility-skeleton:
https://github.com/zfcampus/zf-apigility-skeleton#note-about-using-apache

Basically you need add to your apache configuration:

AllowEncodedSlashes On

Hope it helps.


Originally posted by @michalbundyra at zfcampus/zf-apigility-admin-ui#140 (comment)

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

No branches or pull requests

1 participant