You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openmeetings.apache.org by GitBox <gi...@apache.org> on 2021/04/01 20:10:12 UTC

[GitHub] [openmeetings] andylin810 opened a new issue #141: Rest API not working, error.notallowed

andylin810 opened a new issue #141:
URL: https://github.com/apache/openmeetings/issues/141


   Hi, I am using OpenMeetings 5.0.1, when I tried making GET request to test the REST API, the login request always goes through and get a success response back with the sid (GET https://xxx.xxx.xxx.x/openmeetings/services/user/login?user=xx&pass=xx) , but when I tried make other request such as generating hash or a simple 'get' for listing all users (GET https://xxx.xxx.xxx.x/openmeetings/services/user?sid=xxxxxxxxx) an HTTP 500 error is returned on the browser. Inside the OpenMeetings log, when the error happens, the log shows a bunch of notallowed errors like this:
   
   `CalendarWebService has thrown exception, unwinding now, interceptor.Fault: error.notallowed`
   ....
   `caused by error.ServiceException: error.notallowed`
   
   I also tried the same thing with a previous working application that is using an older version of OpenMeetings(4.x.x), both requests work, and I receive responses for both requests.
   
   My OpenMeetings server has a restrictive network which blocks all ports besides port 443.
   Is there a place for setting up the REST API configurations that I should be checking?
   
   Any help is appreciated, thanks.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openmeetings] andylin810 commented on issue #141: Rest API not working, error.notallowed

Posted by GitBox <gi...@apache.org>.
andylin810 commented on issue #141:
URL: https://github.com/apache/openmeetings/issues/141#issuecomment-813374429


   Hi. @solomax , it turned out that is exactly the reason why it failed, I actually found out before I saw your comment by comparing the one working and not working and noticed the difference between the privilege tag but I never thought SOAP would be needed since it is a REST api instead of SOAP, thank you.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openmeetings] solomax commented on issue #141: Rest API not working, error.notallowed

Posted by GitBox <gi...@apache.org>.
solomax commented on issue #141:
URL: https://github.com/apache/openmeetings/issues/141#issuecomment-812255737


   Hello @andylin810,
   
   this example https://openmeetings.apache.org/RestAPISample.html works for me as expected
   (and this functionality is tested using unit tests in every build)
   
   so I guess there might be some issue with usage
   please check the `user` you are using in `.../user/login?user=xx&pass=xx` has `SOAP` privilege
   secure hash generation is only allowed to SOAP admin
   
   p.s. I would recommend to update to more recent version :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openmeetings] andylin810 closed issue #141: Rest API not working, error.notallowed

Posted by GitBox <gi...@apache.org>.
andylin810 closed issue #141:
URL: https://github.com/apache/openmeetings/issues/141


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openmeetings] solomax commented on issue #141: Rest API not working, error.notallowed

Posted by GitBox <gi...@apache.org>.
solomax commented on issue #141:
URL: https://github.com/apache/openmeetings/issues/141#issuecomment-813391755


   The role name was created while there was SOAP only :))


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org