Uploaded image for project: 'Openmeetings'
  1. Openmeetings
  2. OPENMEETINGS-1857

RoomWebService hash method is broken

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.2
    • Fix Version/s: 4.0.3, 5.0.0-M1
    • Component/s: SOAP/REST API
    • Labels:
      None

      Description

      Hello,

       

                                      I have a problem with Room hash invitation in RoomWebService.

                                      Given Service  : 

                                      @Path(value="/hash")

                                      public ServiceResult hash(@QueryParam(value="sid")

                                                            String sid,

                                                            @QueryParam(value="invite")

                                                            InvitationDTO invite,

                                                            @QueryParam(value="sendmail")

                                                            boolean sendmail)

                                      I can generate following URL :

                                      URL : /room/hash?sid=94bc68fa-a946-4b0d-a845-e959deeab317&invite=

      {"firstname":"Mark","lastname":"Steven","email":"[abc@gmail.com|mailto:abc@gmail.com]","password":"Sys@123!","passwordProtected":true,"subject":"Health Meeting","roomId":"2","message":"Meeting","validFrom":"2018-03-19 02:25:12","validTo":"2018-04-20 02:25:12"}

      &sendmail=true

                                     

                                       parameter as bellow,

                                      sid = 94bc68fa-a946-4b0d-a845-e959deeab317

                                      invite =

      {"firstname":"Mark","lastname":"Steven","email":"[abc@gmail.com|mailto:abc@gmail.com]","password":"Sys@123!","passwordProtected":true,"subject":"Health Meeting","roomId":"2","message":"Meeting","validFrom":"2018-03-19 02:25:12","validTo":"2018-04-20 02:25:12"}

                                      sendmail = true

                                     

                                       On Restlet it will give me 500 Error :

                                      Parameter Class org.apache.openmeetings.db.dto.room.InvitationDTO has no constructor with single String parameter, static valueOf(String) or fromString(String) methods

                                     

                                       So please suggest how to pass parameter in room hash webservice, Specifically  @QueryParam(value="invite")InvitationDTO invite. And How to genarate URL for this RoomWebService.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                solomax Maxim Solodovnik
                Reporter:
                solomax Maxim Solodovnik
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: