Authentifcation dialog shows on mapguide-rest request

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Authentifcation dialog shows on mapguide-rest request

Alen
Reply | Threaded
Open this post in threaded view
|

Re: Authentifcation dialog shows on mapguide-rest request

Jackie Ng
The above URL should not throw an authentication dialog in 0.9.

- Jackie
Reply | Threaded
Open this post in threaded view
|

Re: Authentifcation dialog shows on mapguide-rest request

Alen
In 0.9  URL
http://localhost/mapguide/rest/library/Samples/Sheboygan/Data/Parcels.FeatureSource/features/SHP_Schema/Parcels?maxfeatures=1000

throws error:

Slim Application Error
The application could not run because of the following error:

Details

Type: ErrorException
Code: 2
Message: Cannot modify header information - headers already sent by (output started at C:\Program Files (x86)\OSGeo\MapGuide\Web\www\rest\app\util\readerchunkedresult.php:87)
File: C:\Program Files (x86)\OSGeo\MapGuide\Web\www\rest\app\util\readerchunkedresult.php
Line: 94
Trace

#0 [internal function]: Slim\Slim::handleErrors(2, 'Cannot modify h...', 'C:\Program File...', 94, Array)
#1 C:\Program Files (x86)\OSGeo\MapGuide\Web\www\rest\app\util\readerchunkedresult.php(94): header('Content-Type: t...')
#2 C:\Program Files (x86)\OSGeo\MapGuide\Web\www\rest\app\util\readerchunkedresult.php(171): MgHttpChunkWriter->StartChunking()
#3 C:\Program Files (x86)\OSGeo\MapGuide\Web\www\rest\app\util\readerchunkedresult.php(270): MgReaderChunkedResult->OutputXml(Object(mgfeatureschemacollection))
#4 C:\Program Files (x86)\OSGeo\MapGuide\Web\www\rest\app\controller\featureservicecontroller.php(801): MgReaderChunkedResult->Output('xml')
#5 C:\Program Files (x86)\OSGeo\MapGuide\Web\www\rest\app\routes\routes.library.php(506): MgFeatureServiceController->SelectFeatures(Object(mgresourceidentifier), 'SHP_Schema', 'Parcels', 'xml')
#6 [internal function]: {closure}(Array, 'SHP_Schema', 'Parcels')
#7 C:\Program Files (x86)\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\Route.php(462): call_user_func_array(Object(Closure), Array)
#8 C:\Program Files (x86)\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\Slim.php(1326): Slim\Route->dispatch()
#9 C:\Program Files (x86)\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\Middleware\Flash.php(85): Slim\Slim->call()
#10 C:\Program Files (x86)\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\Middleware\MethodOverride.php(92): Slim\Middleware\Flash->call()
#11 C:\Program Files (x86)\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\Middleware\PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#12 C:\Program Files (x86)\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\Slim.php(1271): Slim\Middleware\PrettyExceptions->call()
#13 C:\Program Files (x86)\OSGeo\MapGuide\Web\www\rest\index.php(133): Slim\Slim->run()
#14 {main}
Reply | Threaded
Open this post in threaded view
|

Re: Authentifcation dialog shows on mapguide-rest request

Jackie Ng
What is your MapGuide version and web server / install configuration?

- Jackie
Reply | Threaded
Open this post in threaded view
|

Re: Authentifcation dialog shows on mapguide-rest request

Alen
I am running MapGuide 2.5.0. x86, IIS 7.5, on Windows 7.

Jackie, I tested rest sampleapps, all of them are responding fine, excellent work!

There is a small bug in the file \rest\conf\data\districts\restcfg.json, the line:
"FeatureClass": "Default:VotingDistricts" should be:
"FeatureClass": "SDF_2_Schema:VotingDistricts".

Also when I run basic /rest/index.php it returns:
PHP Notice:  Undefined index: UNENCODED_URL in C:\Program Files (x86)\OSGeo\MapGuide\Web\www\rest\index.php on line 30.

Regards, Alen Kelemen
Reply | Threaded
Open this post in threaded view
|

Re: Authentifcation dialog shows on mapguide-rest request

Jackie Ng
If you can, please put such issues on the github issue tracker

https://github.com/jumpinjackie/mapguide-rest/issues

- Jackie