marklogic-community / Corona

Community REST API for MarkLogic
Other
37 stars 9 forks source link

setup throws an error #48

Closed crichey closed 12 years ago

crichey commented 12 years ago

When I hit the setup.xqy at http://localhost:8010/config/setup.xqy I get the following error. The framework otherwise seems to be functioning fine, indicating that I have the correct configuration for the url rewriter. {"error":{"status":404,"code":"corona:ENDPOINT-NOT-FOUND","message":"Invalid endpoint. Check path and parameters for errors."}}

eedeebee commented 12 years ago

I wonder if any of the config should be established using the 5.0 config mechanism.

crichey commented 12 years ago

MaybeŠinteresting idea. I think only users are being created though so

probably overkill.

Clark Richey clark@clarkrichey.com

On 11/19/11 2:31 PM, "Eric Bloch" <reply+i-2289465-bb7174e9d6e2d85cc1fb431938d7b7af6879125a-214112@reply.gith ub.com> wrote:

I wonder if any of the config should be established using the 5.0 config mechanism.


Reply to this email directly or view it on GitHub: https://github.com/marklogic/Corona/issues/48#issuecomment-2800429

ryangrimm commented 12 years ago

Oops, this error was introduced when I put in the new error handler and rewriter last week. I just pushed some changes that should fix things up. As a side note, the setup script now lives at /config/setup (dropping the .xqy).

ryangrimm commented 12 years ago

Regarding the use of the 5.0 config goodies, I'm guessing that you're referring to the REST interface that has been created. I'd be open to using it as the admin function calls are kind of painful. However, that leaves the 4.1 and 4.2 folks out in the insecure cold. So for the time being I think we should stick with using the admin API.

crichey commented 12 years ago

Actually it would be the package management but I think it is overkill in

this case. I think the existing approach is much better.

Clark Richey clark@clarkrichey.com

On 11/19/11 3:19 PM, "Ryan Grimm" <reply+i-2289465-bb7174e9d6e2d85cc1fb431938d7b7af6879125a-214112@reply.gith ub.com> wrote:

Regarding the use of the 5.0 config goodies, I'm guessing that you're referring to the REST interface that has been created. I'd be open to using it as the admin function calls are kind of painful. However, that leaves the 4.1 and 4.2 folks out in the insecure cold. So for the time being I think we should stick with using the admin API.


Reply to this email directly or view it on GitHub: https://github.com/marklogic/Corona/issues/48#issuecomment-2800671

crichey commented 12 years ago

Works now

ryangrimm commented 12 years ago

Excellent. Thanks for finding and reporting. I'll cook up a test for the setup page to catch further issues.

Sent from my iPhone

On Nov 19, 2011, at 12:30 PM, "Clark D. Richey, Jr."reply@reply.github.com wrote:

Works now


Reply to this email directly or view it on GitHub: https://github.com/marklogic/Corona/issues/48#issuecomment-2800738