Afaik there is no such field .... Most probably some .NET feature ... Glad I was able to help
BTW why don't you using latest release? On Fri, Sep 25, 2020, 23:59 farid bekran <[email protected]> wrote: > Hi Maxim > Apparently, the problem was caused by not setting the roomIdSpecified > field to true in roomOptionsDTO. > The problem is fixed by setting the field to true. > Checking the log file out was so helpful. > Thanks for your time and help. > > > On Fri, Sep 25, 2020 at 1:08 PM Maxim Solodovnik <[email protected]> > wrote: > >> According to the log: " No room id given" >> >> can you enable debug logging to ensure what is going on? >> >> This line >> https://github.com/apache/openmeetings/blob/master/openmeetings-web/src/test/resources/logback-test.xml#L49 >> should be added to logback-config.xml file >> OM should be restarted >> >> On Fri, 25 Sep 2020 at 16:28, farid bekran <[email protected]> >> wrote: >> > >> > Sorry. >> >> >> >> This is the log >> >> DEBUG 09-25 12:35:08.612 o.a.o.w.a.WebSession:227 [io-5443-exec-10] - >> checkHashes, has soap in session ? 'false' >> >> DEBUG 09-25 12:35:08.644 o.a.o.w.a.WebSession:284 [io-5443-exec-10] - >> Secure hash found, is used ? false >> >> DEBUG 09-25 12:35:08.691 o.a.o.w.a.WebSession:287 [io-5443-exec-10] - >> Do we have data for hash ? true >> >> DEBUG 09-25 12:35:08.692 o.a.o.w.a.WebSession:290 [io-5443-exec-10] - >> Hash data was parsed successfuly ? true, containg exterlaId ? true >> >> INFO 09-25 12:35:08.735 o.a.o.d.d.r.RoomDao:82 [io-5443-exec-10] - >> [get]: No room id given >> >> WARN 09-25 12:35:08.737 o.a.o.w.a.WebSession:294 [io-5443-exec-10] - >> Room was not found >> >> DEBUG 09-25 12:35:08.952 o.a.o.d.u.AuthLevelUtil:40 [io-5443-exec-10] >> - Level ADMIN :: [DENIED] >> >> INFO 09-25 12:35:09.077 o.a.o.w.a.WebSession:329 [io-5443-exec-10] - >> Hash was authorized >> >> DEBUG 09-25 12:43:42.776 o.a.o.s.q.s.ReminderJob:93 [Bean#0_Worker-1] >> - Rss disabled by Admin >> >> DEBUG 09-25 12:53:42.770 o.a.o.s.q.s.ReminderJob:93 [Bean#0_Worker-2] >> - Rss disabled by Admin >> > >> > >> > On Fri, Sep 25, 2020 at 12:39 PM farid bekran <[email protected]> >> wrote: >> >> >> >> Hi again. >> >> This is the log of OM >> >>> >> >>> >> >>> 37.98.45.61 - - [25/Sep/2020:12:34:48 +0330] "POST >> /openmeetings/services/UserService HTTP/1.1" 200 295 >> >>> 37.98.45.61 - - [25/Sep/2020:12:34:49 +0330] "POST >> /openmeetings/services/UserService HTTP/1.1" 200 307 >> >>> 37.98.45.61 - - [25/Sep/2020:12:35:07 +0330] "-" 400 - >> >>> 37.98.45.61 - - [25/Sep/2020:12:35:09 +0330] "GET >> /openmeetings/hash?secure=70f99db9-ecdf-4a0b-916b-58d0074ba609 HTTP/1.1" >> 200 7887 >> >>> 37.98.45.61 - - [25/Sep/2020:12:35:10 +0330] "GET >> /openmeetings/wicket/resource/de.agilecoders.wicket.themes.markup.html.bootswatch.BootswatchCssReference/css/bootstrap.sandstone-ver-B164B91379C7277B723B262D93226799.css >> HTTP/1.1" 200 90112 >> >>> 37.98.45.61 - - [25/Sep/2020:12:35:12 +0330] "GET >> /openmeetings/css/theme.css HTTP/1.1" 304 - >> >>> 37.98.45.61 - - [25/Sep/2020:12:35:12 +0330] "GET >> /openmeetings/css/theme_om/jquery-ui.min.css HTTP/1.1" 200 31071 >> >>> 37.98.45.61 - - [25/Sep/2020:12:35:12 +0330] "GET >> /openmeetings/css/custom.css HTTP/1.1" 200 112 >> >>> 37.98.45.61 - - [25/Sep/2020:12:35:13 +0330] "GET >> /openmeetings/css/images/logo.png HTTP/1.1" 304 - >> >>> 37.98.45.61 - - [25/Sep/2020:12:35:13 +0330] "GET >> /openmeetings/wicket/resource/de.agilecoders.wicket.webjars.request.resource.WebjarsCssResourceReference/webjars/font-awesome/5.13.0/webfonts/fa-solid-900.woff2 >> HTTP/1.1" 200 79444 >> >> >> >> >> >> On Fri, Sep 25, 2020 at 12:15 PM Maxim Solodovnik < >> [email protected]> wrote: >> >>> >> >>> Could you check openmeetings.log? >> >>> does it have any errors? >> >>> >> >>> On Fri, 25 Sep 2020 at 15:32, farid bekran <[email protected]> >> wrote: >> >>> > >> >>> > Hi guys. >> >>> > I am trying to use the GetRoomHash of service web service in order >> to redirect my user to a room without forcing the user to log in manually. >> >>> > I am following this tutorial. >> >>> > The code sample I am using is as follows. (C#) >> >>> > There is an API in which I am generating hash code. >> >>> > I am redirecting to my open-meeting installation with the use of >> the code. >> >>> > >> >>> >> var user = "admin"; >> >>> >> var pass = "adminpass"; >> >>> >> var openMeetingUserService = new >> Openmeetings.UserWebServiceClient(); >> >>> >> var loginResult = await >> openMeetingUserService.loginAsync(user, pass); >> >>> >> if ([email protected] != "SUCCESS") >> >>> >> throw new UserFriendlyException("Error in login."); >> >>> >> var sid = [email protected]; >> >>> >> >> >>> >> >> >>> >> var roomHash = await >> openMeetingUserService.getRoomHashAsync(sid, new >> Openmeetings.externalUserDTO >> >>> >> { >> >>> >> externalId = "id89", >> >>> >> externalType = "Tutykid", >> >>> >> firstname = "Farid", >> >>> >> lastname = "External", >> >>> >> login = "externaluser1" >> >>> >> }, new Openmeetings.roomOptionsDTO >> >>> >> { >> >>> >> allowSameURLMultipleTimes = true, >> >>> >> roomId = roomId, >> >>> >> moderator = true >> >>> >> }); >> >>> >> return new GoToRoomOutput { RoomHash = >> [email protected] }; >> >>> > >> >>> > >> >>> > And the url I have generated based on the hash code/. >> >>> > >> >>> >> >> https://myinstallationhost/openmeetings/hash?secure=7d34224f-04c8-4546-87a9-f83c36ea03b1#id6 >> >>> > >> >>> > >> >>> > The room exists and is a public room >> >>> > OM version: 5.0.0-M4 >> >>> > Revision: 9753e61 >> >>> > Build date: 2020-04-19T03:54:23Z >> >>> > The error I have got upon rediraction is the following: >> >>> > >> >>> >> Invalid hash >> >>> >> Access denied. You have no rights to enter this room. >> >>> > >> >>> > >> >>> > Could anyone please help me on this issue. I have tried almost >> three days but not found any workaround. >> >>> > >> >>> > Thanks in advance. >> >>> >> >>> >> >>> >> >>> -- >> >>> Best regards, >> >>> Maxim >> >> >> >> -- >> Best regards, >> Maxim >> >
