jumpinjackie / mapguide-rest

REST Extension for MapGuide Open Source
GNU Lesser General Public License v2.1
26 stars 14 forks source link

schema report preview error #178

Closed AlenKelemen closed 6 years ago

AlenKelemen commented 6 years ago

GET /library/{resourcePath}.FeatureSource/preview returns:

PHP Warning: DOMDocument::load(): I/O warning : failed to load external entity "C:\Program Files\OSGeo\MapGuide\Web\www\schemareport\displayschema.xsl" in C:\Program Files\OSGeo\MapGuide\Web\www\schemareport\displayschema.php on line 110 PHP Warning: XSLTProcessor::importStylesheet(): compilation error in C:\Program Files\OSGeo\MapGuide\Web\www\schemareport\displayschema.php on line 114 PHP Warning: XSLTProcessor::importStylesheet(): xsltParseStylesheetProcess : empty stylesheet in C:\Program Files\OSGeo\MapGuide\Web\www\schemareport\displayschema.php on line 114 PHP Warning: XSLTProcessor::transformToXml(): No stylesheet associated to this object in C:\Program Files\OSGeo\MapGuide\Web\www\schemareport\displayschema.php on line 137

I have Mapguide 3.0.0.8701. It seems that something is missing in those files. Sometimes it works OK so I think it is depending on the feature source content.

jumpinjackie commented 6 years ago

The preview is just a redirect to the existing schema report that comes with the MapGuide install (as evidenced by the paths in your provided stack trace). So the problem isn't with mapguide-rest.

Does this consistently fail on some feature sources? If so, can it be isolated to a particular FDO provider, or certain properties in its class definition?

AlenKelemen commented 6 years ago

Yes, the same schema report problem also occurs in Maestro. I tested schema report with different feature sources, different MG installs and different computers. I did not found this kind of problem on other machines (but found some others :-) ) and MG installations. On my machine error occurs randomly with no correlation to feature source or FDO. I will close this issue as now I believe that its cause must be somewhere else.