Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Unable to fetch Doctrine metadata #140

Open
leandrogf opened this issue Feb 17, 2017 · 3 comments
Open

Unable to fetch Doctrine metadata #140

leandrogf opened this issue Feb 17, 2017 · 3 comments

Comments

@leandrogf
Copy link

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.

@michalbundyra
Copy link
Member

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

@michalbundyra
Copy link
Member

@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.

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas-api-tools/api-tools-admin-ui; a new issue has been opened at laminas-api-tools/api-tools-admin-ui#3.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants