Thanks for the new logs (please strip file contents in the future)

The valuable part of the logs is you last request:

On Sun, 12 Apr 2020 at 20:18, Daniel Baker <i...@collisiondetection.biz>
wrote:

> DEBUG 04-12 13:44:39.476 o.a.o.d.u.AuthLevelUtil:40 [nio-5443-exec-1] -
> Level SOAP :: [GRANTED]
>
> INFO 04-12 13:44:39.518 o.a.c.s.C.RESP_OUT:84 [nio-5443-exec-1] - RESP_OUT
> Address:
> https://192.168.1.116:5443/openmeetings/services/room/14?&sid=e610b2aa-4305-4075-976d-882e7781b40e
> Content-Type: application/json
> ResponseCode: 200
> ExchangeId: a9b1db16-e88d-43c4-bb30-b722ed6385a3
> Headers: {Date=Sun, 12 Apr 2020 12:44:39 GMT,
> Content-Type=application/json}
> Payload: {"roomDTO":{"id":14,"name":"Teacher: teacher 1 Topic: TESTING M4
> TRACE LEVEL SessionID: 77","comment":"Created by SOAP-Gateway:Teacher:
> teacher 1 Topic: Topic 1 SessionID:
> 77","type":"CONFERENCE","capacity":64,"appointment":false,"isPublic":true,"demo":false,"closed":false,"externalId":"null","externalType":"moodle","redirectUrl":"","moderated":false,"waitModerator":false,"allowUserQuestions":true,"allowRecording":true,"waitRecording":false,"audioOnly":false}}
>
> INFO 04-12 13:44:39.641 o.a.c.s.C.REQ_IN:84 [io-5443-exec-10] - REQ_IN
> Address:
> https://192.168.1.116:5443/openmeetings/services/user/hash?&sid=e610b2aa-4305-4075-976d-882e7781b40e
> HttpMethod: POST
> Content-Type: application/x-www-form-urlencoded
> ExchangeId: 62714a4b-56e3-44f0-bab8-289e42716399
> Headers: {Accept=/, host=192.168.1.116:5443,
> content-type=application/x-www-form-urlencoded, Content-Length=423,
> accept-encoding=deflate, gzip, user-agent=openmeetings}
> Payload:
> user=%7B%22login%22%3A%22teacher%22%2C%22firstname%22%3A%22teacher%22%2C%22lastname%22%3A%221%22%2C%22email%22%3A%22teacher1%
> 40teacher1.com%22%2C%22pictureUri%22%3A%22https%3A%5C%2F%5C%
> 2Fukom.hopto.org
> %3A449%5C%2Fpluginfile.php%5C%2F15%5C%2Fuser%5C%2Ficon%5C%2Ff2%22%2C%22externalId%22%3A%223%22%2C%22externalType%22%3A%22moodle%22%7D&options=%7B%22roomId%22%3Anull%2C%22moderator%22%3Atrue%2C%22allowRecording%22%3Atrue%7D
>
> DEBUG 04-12 13:44:39.685 o.a.o.d.u.AuthLevelUtil:40 [io-5443-exec-10] -
> Level SOAP :: [GRANTED]
> DEBUG 04-12 13:44:39.828 o.a.o.w.UserWebService:308 [io-5443-exec-10] -
> {"email":"teach...@teacher1.com" <teach...@teacher1.com>
> ,"externalId":"3","externalType":"moodle","firstname":"teacher","lastname":"1","username":"teacher"}
> DEBUG 04-12 13:44:39.833 o.a.o.w.UserWebService:312 [io-5443-exec-10] -
> jsonString {"email":"teach...@teacher1.com" <teach...@teacher1.com>
> ,"externalId":"3","externalType":"moodle","firstname":"teacher","lastname":"1","username":"teacher"}
> INFO 04-12 13:44:39.920 o.a.c.s.C.RESP_OUT:84 [io-5443-exec-10] - RESP_OUT
> Address:
> https://192.168.1.116:5443/openmeetings/services/user/hash?&sid=e610b2aa-4305-4075-976d-882e7781b40e
> Content-Type: application/json
> ResponseCode: 200
> ExchangeId: 62714a4b-56e3-44f0-bab8-289e42716399
> Headers: {Date=Sun, 12 Apr 2020 12:44:39 GMT,
> Content-Type=application/json}
> Payload:
> {"serviceResult":{"message":"1f78cf4d-cea4-492d-9c45-fabaf433e7ec","type":"SUCCESS"}}
>
> DEBUG 04-12 13:44:41.280 o.a.o.w.a.WebSession:230 [io-5443-exec-10] -
> checkHashes, secure: '1f78cf4d-cea4-492d-9c45-fabaf433e7ec', invitation:
> 'null'
> DEBUG 04-12 13:44:41.282 o.a.o.w.a.WebSession:232 [io-5443-exec-10] -
> checkHashes, has soap in session ? 'false'
> DEBUG 04-12 13:44:41.412 o.a.o.w.a.WebSession:279 [io-5443-exec-10] -
> Secure hash found, is used ? false
> DEBUG 04-12 13:44:41.447 o.a.o.w.a.WebSession:282 [io-5443-exec-10] - Do
> we have data for hash ? true
> DEBUG 04-12 13:44:41.448 o.a.o.w.a.WebSession:285 [io-5443-exec-10] - Hash
> data was parsed successfuly ? true, containg exterlaId ? true
> *INFO 04-12 13:44:41.483 o.a.o.d.d.r.RoomDao:82 [io-5443-exec-10] - [get]:
> No room id given*
> *WARN 04-12 13:44:41.499 o.a.o.w.a.WebSession:289 [io-5443-exec-10] - Room
> was not found*
>
>
> What  do you think  is the issue.  Is  it  easier to  see now  ?
>
>
> so To get what is wrong I need to do

`unescape('user=%7B%22login%22%3A%22teacher%22%2C%22firstname%22%3A%22teacher%22%2C%22lastname%22%3A%221%22%2C%22email%22%3A%22teacher1%
40teacher1.com%22%2C%22pictureUri%22%3A%22https%3A%5C%2F%5C%2Fukom.hopto.org
%3A449%5C%2Fpluginfile.php%5C%2F15%5C%2Fuser%5C%2Ficon%5C%2Ff2%22%2C%22externalId%22%3A%223%22%2C%22externalType%22%3A%22moodle%22%7D&options=%7B%22roomId%22%3Anull%2C%22moderator%22%3Atrue%2C%22allowRecording%22%3Atrue%7D')`

The output of this command shows that your call was:
`$.ajax({

  method: "POST",  url:
"services/user/hash?sid=78189aff-d68d-458a-8840-5b18d15a50b0",  data:
{user: {      
"login":"teacher","firstname":"teacher","lastname":"1","email":"teach...@teacher1.com","pictureUri":"https:\/\/ukom.hopto.org:449\/pluginfile.php\/15\/user\/icon\/f2","externalId":"3","externalType":"moodle"
      },    options: {      "roomId":null,"moderator":true,"allowRecording":true
      }
    },  dataType: "json"

})`

While https://openmeetings.apache.org/RestAPISample.html clearly states it
should be

$.ajax({  method: "POST",  url:
"services/user/hash?sid=78189aff-d68d-458a-8840-5b18d15a50b0",  data:
{user: JSON.stringify({
"login":"teacher","firstname":"teacher","lastname":"1","email":"teach...@teacher1.com","pictureUri":"https://ukom.hopto.org:449/pluginfile.php/15/user/icon/f2","externalId":"3","externalType":"moodle";
      }),    options: JSON.stringify({
"roomId":null,"moderator":true,"allowRecording":true
      })
    },  dataType: "json"})


And "roomId: null" is NOT what is expected

-- 
Best regards,
Maxim

Reply via email to