[magnolia-user] Re: Magnolia Rest Module

2014-04-30 Thread Xueqian Chen (via Magnolia Forums)
I also solved the problem.I downloaded magnolia-cms-5.2.4 and magnolia-rest-tools-1.0.3-bundle.After the module installation, I configurated the apiBasepath with the value (http://localhost:8080/magnoliaAuthor/.rest),and then it worked -- Context is everything: http://forum.magnolia-cms.com/f

[magnolia-user] Re: Magnolia Rest Module

2014-04-30 Thread Xueqian Chen (via Magnolia Forums)
Hi Alberto, How did you solved your problem finally?Can you give us details? Thanks for help Xueqian Chen -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=38fd2e42-620f-4515-998b-abf1e94c28e3 -

[magnolia-user] Re: Magnolia Rest Module

2014-04-11 Thread Alberto Giovannone (via Magnolia Forums)
Hi all, finally I can say my problem is solved for both Magnolia 5.2 and Magnolia 5.2.3. Thanks all for the help Alberto Giovannone -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=38fd2e42-620f-4515-998b-abf1e94c28e3

[magnolia-user] Re: Magnolia Rest Module

2014-04-10 Thread Alberto Giovannone (via Magnolia Forums)
Yeah, I found java.lang.NoClassDefFoundError: scala/MatchError and importing the library in magnolia-rest-tools-1.0.3-bundle.zip finally I can say the Rest Tools on the bundle version work. I hope it works for my project too. Thank you for all and I'll keep you updated. Regargs from Milan

[magnolia-user] Re: Magnolia Rest Module

2014-04-10 Thread Alberto Giovannone (via Magnolia Forums)
Hi Federico, I've just tried with the Magnolia 5.2.3 bundle on Chrone, Opera,Firefox and Explorer and I obtained the same result : Can't read swagger JSON from http://localhost:8080/magnoliaAuthor/.rest/api-docs. Are there some special configurations to do before installign resto tools? I think

[magnolia-user] Re: Magnolia Rest Module

2014-04-10 Thread federico grilli (via Magnolia Forums)
Hi Alberto, could it be a browser issue as suggested by Jan? Cheers, Federico -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=38fd2e42-620f-4515-998b-abf1e94c28e3 For list details, see http:

[magnolia-user] Re: Magnolia Rest Module

2014-04-10 Thread Alberto Giovannone (via Magnolia Forums)
Hi all, thank you for your help, much appreciated. Today I tried to install a new clean version of Magnolia 5.2.3 and Rest Tools 1.0.3 but the problem is the same. Furthermore I tried to install the Magnolia version contained in zip magnolia-tomcat-bundle-5.2.3-tomcat-bundle and I installed the

[magnolia-user] Re: Magnolia Rest Module

2014-04-10 Thread Jan Haderka (via Magnolia Forums)
Hiya, I've seen exactly the same behaviour today, but only in firefox. exactly same thing worked just fine in chrome. What I was able to find out is that invoked with FF, request arrived at server with application/xhml mime type that made rest servlet really unhappy :D HTH, Jan -- Context is

[magnolia-user] Re: Magnolia Rest Module

2014-04-09 Thread Alberto Giovannone (via Magnolia Forums)
Hi Philiph, This morning I tried to upgrated my Magnolia project from 5.2 to 5.2.3 and it works on Tomcat except for the rest tools. I caught your suggestion an I try to create a new clean in all part project of Magnolia 5.2.3 and I'll tell what will happen If you have any observations on my upgr

[magnolia-user] Re: Magnolia Rest Module

2014-04-09 Thread Philip Mundt (via Magnolia Forums)
Hi Alberto. I've tried several installs and everywhere that nodes endpoint works. Could you try installing a clean Magnolia 5.2.3 on that Tomcat and try with that one? You're still running the upgraded instance? From which version did you upgrade? Regards Philip -- Context is everything: htt

[magnolia-user] Re: Magnolia Rest Module

2014-04-09 Thread Alberto Giovannone (via Magnolia Forums)
Hi Philip, I try to use this url : http://localhost:8080/uniqa.extranet-webapp/.rest/nodes/v1/website/index where index is my first node in website workspace, but the result is the same. Can this proof help you? Thank you in advance Alberto Giovannone -- Context is everything: http://forum.

[magnolia-user] Re: Magnolia Rest Module

2014-04-09 Thread Philip Mundt (via Magnolia Forums)
Hi Alberto, my intention was to point you to a URL that *should* be accessible. So whatever root page-node you have, let's say "test", try [quote]http://localhost:8080/uniqa.extranet-webapp/.rest/nodes/v1/website/test[/quote] If you look at the implementation, you'll see that the above URL cons

[magnolia-user] Re: Magnolia Rest Module

2014-04-09 Thread Alberto Giovannone (via Magnolia Forums)
Hi Philips, I try with your url and I obtain this error at page : Could not find resource for full path: http://localhost:8080/uniqa.extranet-webapp/.rest/nodes/v1/website/demo-project and this stack trace : info.magnolia.rest.RestExceptionMapper: Exception thrown executing REST en

[magnolia-user] Re: Magnolia Rest Module

2014-04-09 Thread Philip Mundt (via Magnolia Forums)
Hi Alberto. Could you make sure that this URL doesn't work for you and if so please post any stacktrace you're experiencing [code]http://localhost:8080/uniqa.extranet-webapp/.rest/nodes/v1/website/demo-project[/code] Regards Philip -- Context is everything: http://forum.magnolia-cms.com/forum

[magnolia-user] Re: Magnolia Rest Module

2014-04-09 Thread Alberto Giovannone (via Magnolia Forums)
Hi Federico, thank you for your support. Now my apiBasepath points to : http://localhost:8080/uniqa.extranet-webapp/.rest/ but now the exception is changed. You can see the new exception below : : Exception thrown executing REST endpoint, returning 500 javax.ws.rs.NotFoundException: Could not

[magnolia-user] Re: Magnolia Rest Module

2014-04-09 Thread federico grilli (via Magnolia Forums)
Tbh the very first time I used the REST module I had your same problem about the wrong api basepath but once fixed that in the configuration, it worked like a charm. Is the apiBasepath now reading "http://localhost:8080/uniqa.extranet-webapp/.rest/"; ? Federico -- Context is everything: htt

[magnolia-user] Re: Magnolia Rest Module

2014-04-09 Thread Alberto Giovannone (via Magnolia Forums)
Hi Federico, I finished to update Magnolia to the latest 5.2.3 and the latest REST module 1.0.3 but the result is the same described before. Probably the problem is an other one but I can't understand what it is. In your experience what do you suggest? Thank you in advance Alberto Giovannone -

[magnolia-user] Re: Magnolia Rest Module

2014-04-08 Thread federico grilli (via Magnolia Forums)
The rest role should have already been assigned to superuser, see Security App -> System Users tab-> Edit superuser -> Roles tab -> Granted roles. And the error you're getting while saving the form sounds like you're hitting http://jira.magnolia-cms.com/browse/MGNLUI-2468 which shouldn't have an

[magnolia-user] Re: Magnolia Rest Module

2014-04-08 Thread Alberto Giovannone (via Magnolia Forums)
Hi, I forgot this point : if I try to call this url http://localhost:8080/uniqa.extranet-webapp/.rest/api-docs/ with Chrome Advanced Rest Client I obtain this response : { apiVersion: "1.0.0" swaggerVersion: "1.2" } Is it correct? But if I put this url in apiBasepath property I catch the followi

[magnolia-user] Re: Magnolia Rest Module

2014-04-08 Thread Alberto Giovannone (via Magnolia Forums)
Hi Federico, I tried to put "get&post" for /.rest/api-docs* for the rest role, but the result is the same. I'm using the superuser account I think it couldn't be any problems of grants, but maybe I can mistake. During my proofs I saw that if I try to change the Userrole parameter of superuser ac

[magnolia-user] Re: Magnolia Rest Module

2014-04-08 Thread federico grilli (via Magnolia Forums)
Hi Alberto, make sure you grant the rest role get&post for /.rest/api-docs* in the Security App. However, if yo'veu just installed the module without changing its default configuration, that would be weird as that should be already granted. HTH, Federico -- Context is everything: http://for

[magnolia-user] Re: Magnolia Rest Module

2014-04-08 Thread Alberto Giovannone (via Magnolia Forums)
Hi all, can someone help me for this topic? It's very important. Regards from Milan Alberto Giovannone -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=38fd2e42-620f-4515-998b-abf1e94c28e3 For