You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@openmeetings.apache.org by "K, Amit (MIND)" <Am...@mind-infotech.com> on 2018/02/07 11:03:50 UTC

RE: Warning!!!PossibleSpam Re: FW: FW: OPENMEETINGS-1826

I also sent already…..:)

You can check with the attachment and follow the below steps for testing:

This attached package containing necessary js and html to run.


1)      Js folder contains necessary js files

2)      Launch.html -> containing launch class button  to launch class (open it in chrome)

3)      Openmeetings-sso.js  -> contains three functions

a)      function login -> to get sid

b)      function createRoom -> to create room

c)       function joinClass -> to join in to room.


So, open Launch.html in chrome and click on launch class button after unzipping the enclosed package.

Hope it can help.

Best Regards,
Amit


From: Maxim Solodovnik [mailto:solomax666@gmail.com]
Sent: Wednesday, February 7, 2018 4:17 PM
To: Vishal Sirsodiya <vi...@webdunia.net>
Cc: Openmeetings user-list <us...@openmeetings.apache.org>; pradeep1.tiwari@ril.com
Subject: Warning!!!PossibleSpam Re: FW: FW: OPENMEETINGS-1826

I don't know what "postman tool" is
I sent you JS example and text description of what is wrong with your code :)))

You can use PHP API: https://github.com/openmeetings/openmeetings-api-plugin

On Wed, Feb 7, 2018 at 5:43 PM, Vishal Sirsodiya <vi...@webdunia.net>> wrote:
Hello Maxim,

I am using postman tool for open-meeting API test. I follow below as steps :-

First Step :-

API URL :- http://localhost:5080/openmeetings/services/user/login?user=admin&pass=adminPass@111

Method : GET

Output : {"serviceResult":{"message":"f8475432-65ea-4abe-a193-9d52871fd697","type":"SUCCESS"}}


Second Step :-

API URL  :- http://localhost:5080/openmeetings/services/user/hash?sid=f8475432-65ea-4abe-a193-9d52871fd697

Method : POST
Header : [{"key":"Content-Type","value":"multipart/form-data","description":""}]

Body( form-data) :

  1.  firstname:John
  2.  lastname:Doe
  3.  externalId:1
  4.  externalType:myCMS
  5.  login:superjohn
OR

Body (JSON) :-
Post DATA :-  {user:[{ firstname: 'John', lastname: 'Doe', externalId: 'uid1', externalType: 'myCMS', login: 'superjohn' }]}

OR

Post DATA :-  {"user":{"firstname":"John","lastname":"Doe","externalId":"1","externalType":"myCMS","login":"superjohn"},"options": "roomId:5,moderator:true,showAudioVideoTest:true}}

OR

Post DATA :-  { firstname: 'John', lastname: 'Doe', externalId: 'uid1', externalType: 'myCMS', login: 'superjohn' }

Return Output :- HTTP Status 500 – Internal Server Error


Also we have used PHP script using curl PFA

Please could you tell me How to data post from postman tool.





On Wed, Feb 7, 2018 at 3:49 PM, Maxim Solodovnik <so...@gmail.com>> wrote:
The page http://openmeetings.apache.org/RestAPISample.html
Clearly states:

data: {user: JSON.stringify({

      firstname: 'John',

      lastname: 'Doe',

      externalId: 'uid1',

      externalType: 'myCMS',

      login: 'superjohn'

      }),

    options: JSON.stringify({

      roomId: 5,

      moderator: true,

      showAudioVideoTest: true

      })

    },

  dataType: "json"

So you MUST send data as {user: JSON.stringify({ .... your object here .....}), options: JSON.stringify({ .... your object here .....})}
You are skipping "JSON.stringify" and sending plain JS object ....


On Wed, Feb 7, 2018 at 5:15 PM, Vishal Sirsodiya <vi...@webdunia.net>> wrote:
Hello Maxim,

Thank you for quick reply :)

Now I have connected open meeting 4.0.1. its working fine. but we facing same issue with this all version.

Please could you check it and let us know what is issue ?

PFA.


Thanks & Ragards
Vishal Sirsodiya

On Wed, Feb 7, 2018 at 3:39 PM, Maxim Solodovnik <so...@gmail.com>> wrote:
Your OpenMeetings is not working:
"Database at C:\Users\admin1\Downloads\apache-openmeetings-3.3.2\openmeetings has an incompatible format with the current version of the software.  The database was created by or upgraded by version 10.14."

According to the error above you are trying to "re-use 3.3.2 derby database" with OM 4
It will not work

You have to backup/re-install
You need working OM _before_ you can use REST API

On Wed, Feb 7, 2018 at 4:48 PM, Vishal Sirsodiya <vi...@webdunia.net>> wrote:

Hello Team,

As per below discussion, I  have checked my openmeetings log. We have find some java errors but I am not getting this errors.

I am sending my today log file. Could you check it, and let us know what is the issue ?

PFA


Thanks & Regards
Vishal Sirsodiya


Hello Vishal,

As I already wrote you in the issue: you have to subscribe to the list before you can post
Your question is not related to development of OpenMeetings. It is about using OpenMeetings, so you need to write to user@ mailing list

According to your question: you are getting "500 internal server error "
This usually means there should be some detailed description in openmeetings.log
have you checked the log?


Hello Team,

As per our discussion on jira, We have installed openmeetings version 4.0.1 on windows server(Also try on Ubuntu & mac server as well as different versions of open meetings but facing same issue). Its working fine, when using openmeetings interface but we used openmeetings API for room creation, rser creation and so on. its not working. We have describe step by step process (on postman). See below :-


First we call login api

API : http://localhost:5080/openmeetings/services/user/login?user=UserName&pass=PASS

Successful response :-

{ "serviceResult":

{ "code": 1, "message": "78189aff-d68d-458a-8840-5b18d15a50b0", "type": "SUCCESS" }
}

its working fine and return session ID,

Then we follow next step (http://openmeetings.apache.org/RestAPISample.html)

API : http://localhost:5080/openmeetings/services/user/hash?sid=78189aff-d68d-458a-8840-5b18d15a50b0

method: "POST"

Post DATA :-  {user:[{ firstname: 'John', lastname: 'Doe', externalId: 'uid1', externalType: 'myCMS', login: 'superjohn' }]}

OR

Post DATA :-  {"user":{"firstname":"John","lastname":"Doe","externalId":"1","externalType":"myCMS","login":"superjohn"},"options": "roomId:5,moderator:true,showAudioVideoTest:true}}

OR

Post DATA :-  { firstname: 'John', lastname: 'Doe', externalId: 'uid1', externalType: 'myCMS', login: 'superjohn' }


return : "500 internal server error "


And header return's connection cloed message, See Below.

connection →close
content-length →0
date →Wed, 07 Feb 2018 08:15:11 GMT
server →Apache-Coyote/1.1



We are referring below links

http://openmeetings.apache.org/RestAPISample.html

Please help me.


Thanks & Regards
Vishal Sirsodiya

"Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s).
are confidential and may be privileged. If you are not the intended recipient. you are hereby notified that any
review. re-transmission. conversion to hard copy. copying. circulation or other use of this message and any attachments is
strictly prohibited. If you are not the intended recipient. please notify the sender immediately by return email.
and delete this message and any attachments from your system.

Virus Warning: Although the company has taken reasonable precautions to ensure no viruses are present in this email.
The company cannot accept responsibility for any loss or damage arising from the use of this email or attachment."



--
WBR
Maxim aka solomax

"Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential and may be privileged. If you are not the intended recipient, you are hereby notified that any review, re-transmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this message and any attachments from your system.

Virus Warning: Although the company has taken reasonable precautions to ensure no viruses are present in this email. The company cannot accept responsibility for any loss or damage arising from the use of this email or attachment."




--
WBR
Maxim aka solomax




--
WBR
Maxim aka solomax




--
WBR
Maxim aka solomax

________________________________

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus/trojan/worms/malicious code transmitted by this email. www.motherson.com