Document upload on create

157 views
Skip to first unread message

clnstwrt

unread,
Aug 2, 2012, 4:18:57 AM8/2/12
to bigbluebu...@googlegroups.com
Hi,
I'm wanting to use the document upload on meeting create feature and need some help.
I always want the same documents to be available to any meeting. To keep things simple, the documents could be stored somewhere on the BBB server and I could use local URL's to the documents to add them to the meeting on the create.

Where would a good place be to store those documents in the BBB (or linux) file system so they were only accessible from inside and what would the local (localhost) URL be to them in linux terms that I would pass to the create API?

I hope this makes sense, please ask if any clarification needed.

Thanks,
Colin.

Fred Dixon

unread,
Aug 2, 2012, 8:25:43 AM8/2/12
to bigbluebu...@googlegroups.com
Hi Colin,

Where would a good place be to store those documents in the BBB (or linux) file system so they were only accessible from inside and what would the local (localhost) URL be to them in linux terms that I would pass to the create API?

You can pass a set of URLs to the 'create' command that loads local content from the server. See


A good example of how to do this is in the API demos, see


The code for this is 


While the URL is externally accessible (which allows BigBlueButton to open it), if you store the presentations in a folder that had a password-like name, so instead of using


presentations.put( "BigBlueButton.pptx", "BigBlueButton.pptx" );
presentations.put( "presentation1.pdf", "pdfs/presentation1.pdf" );
presentations.put( "presentation2.pdf", "pdfs/presentation2.pdf" );
presentations.put( "presentation3.pdf", "pdfs/presentation3.pdf" );

which is in


you changed the folder from 'pdfs/...' to 'xdsyerw324/...' (or something cryptic).  Technically, the URL would still be accessible externally, but the parameters for the create command do not go through the user's browser, so unless they have access to the server, it would be difficult to guess the URL.


Regards,... Fred
-- 
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton



--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To view this discussion on the web visit https://groups.google.com/d/msg/bigbluebutton-setup/-/guVLM-nz7vwJ.
To post to this group, send email to bigbluebu...@googlegroups.com.
To unsubscribe from this group, send email to bigbluebutton-s...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bigbluebutton-setup?hl=en.





Message has been deleted

Colin Stewart

unread,
Aug 3, 2012, 9:16:17 AM8/3/12
to bigbluebu...@googlegroups.com
Hi Fred,
Thanks for the help. 
Do you have an example of what the full request should look like with this included?  So I guess I'm after an example of what the string looks like that is returned from getJoinURL()

Thanks,
Colin.

Colin Stewart

unread,
Aug 3, 2012, 10:21:28 AM8/3/12
to bigbluebu...@googlegroups.com
Here is my current http request:

http://bbb.myserver.info/bigbluebutton/api/create?meetingID=55&password=vUQfaGBNKr&nid=6&name=Colin%20Stewart&attendeePW=KXPSYm9gPc&moderatorPW=SajQsJMAA7&welcome=Welcome%20to%20the%20lesson&dialNumber=70001&voiceBridge=77922&logoutURL=logo.png&record=true&xml=%3C%3Fxml%20version%3D%271.0%27%20encoding%3D%27UTF-8%27%3F%3E%20%3Cmodules%3E%20%3Cmodule%20name%3D%27presentation%27%3E%20%3Cdocument%20url%3D%27http%3A/%252Fbbb.myserver.info/bigbluebutton/pdfs/bbbtest.pdf%27%20/%3E%20%3C/module%3E%20%3C/modules%3E&initialized=0&created=1344002222&checksum=e4d59467c0eca54dc038f1b2de20bae6f4a0d021

I think the cause of the problem is that my pre-load document XML bit has the label "xml=" (highlighted in red above) and I think it should be something else, but I don't know what.  If someone could provide me with an example of a correctly formatted request, that would help greatly.

Thanks.

On Thursday, August 2, 2012 9:18:57 AM UTC+1, Colin Stewart wrote:

Colin Stewart

unread,
Aug 4, 2012, 7:30:54 AM8/4/12
to bigbluebu...@googlegroups.com
Can anyone explain where I've gone wrong here, I can't get it working?


On Thursday, August 2, 2012 9:18:57 AM UTC+1, Colin Stewart wrote:

Fred Dixon

unread,
Aug 4, 2012, 8:04:08 AM8/4/12
to bigbluebu...@googlegroups.com
Hi Colin,

If we URLdecode your xml, it gives

xml=<?xml version='1.0' encoding='UTF-8'?> <modules> <module name='presentation'> <document url='http:/%2Fbbb.myserver.info/bigbluebutton/pdfs/bbbtest.pdf' /> </module> </modules>

I realize your masking your url, but can you URLdecode the original url parameter and double-check that it is, in fact, a valid URL and it's loadable by the BigBlueButton server.

The latter point is important.  Depending on your network setup, you may be able to open the URL from your browser, but to make sure the BigBlueButton server can open the URL, you want to do 


Try the above and let us know if that gets you further.

Regards,.. Fred
-- 
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton



--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.

Colin Stewart

unread,
Aug 4, 2012, 8:42:55 AM8/4/12
to bigbluebu...@googlegroups.com
Fred,
I'll do the test you suggested, but I now think my URL is badly formed.  I've added the xml as and xml parameter (xml=...) and reading your links it seems the xml must be in the body of the request not the header.  So how should my string look in that case?

Thanks,
Colin.

To post to this group, send email to bigbluebutton-setup@googlegroups.com.
To unsubscribe from this group, send email to bigbluebutton-setup+unsub...@googlegroups.com.

Fred Dixon

unread,
Aug 4, 2012, 9:55:05 AM8/4/12
to bigbluebu...@googlegroups.com
Hi Colin,

Right ... there is no 'xml' parameter in the API spec.  You need to send the <xml > ... </xml> as the body in the POST request, not on the URL.


Regards,... Fred
-- 
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton

To view this discussion on the web visit https://groups.google.com/d/msg/bigbluebutton-setup/-/CNmaSESAXA8J.

To post to this group, send email to bigbluebu...@googlegroups.com.
To unsubscribe from this group, send email to bigbluebutton-s...@googlegroups.com.

Colin Stewart

unread,
Aug 4, 2012, 1:29:34 PM8/4/12
to bigbluebu...@googlegroups.com
How do I add the <xml>...</xml> after the URL, is there a delimiter needed or some marker?  I don't know HTTP request well enough to work it out?


On Thursday, August 2, 2012 9:18:57 AM UTC+1, Colin Stewart wrote:

Fred Dixon

unread,
Aug 4, 2012, 1:56:49 PM8/4/12
to bigbluebu...@googlegroups.com
Hi Colin,

You need to send the xml in the body of a POST request, not on the URL in a GET request.  For an example of this, see


This code is in JSP, so you'll need to adapt it to whatever language you are using to generate the API calls.

If the terms GET and POST are not familiar, There are some good tutorials at



Regards,... Fred
-- 
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton
--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.

Colin Stewart

unread,
Aug 5, 2012, 2:22:52 PM8/5/12
to bigbluebu...@googlegroups.com
I've tried modifying my code to use a POST instead and I now get this error returned:
HTTP Status 404 - /bigbluebutton/WEB-INF/grails-app/views/api/create.jsp

Any idea what would cause that. Remember my set up all works fine normally, this error just appears on my new POST code.

Thanks,
Colin.

To post to this group, send email to bigbluebutton-setup@googlegroups.com.
To unsubscribe from this group, send email to bigbluebutton-setup+unsub...@googlegroups.com.

Fred Dixon

unread,
Aug 5, 2012, 6:50:26 PM8/5/12
to bigbluebu...@googlegroups.com
Hi Colin,

  >  I've tried modifying my code to use a POST instead and I now get this error returned 

The API examples demonstrate how to do a post request.  Recommend you try both the API examples and your examples and output the contents of

  /var/log/bigbluebutton/bbb-web.log

so you can see what are the dereferences in the data being sent to the server.  Modify your code the log in bbb-web.log matches the log when running the API examples, and they your code should work.


Regards,... Fred
-- 
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton


To view this discussion on the web visit https://groups.google.com/d/msg/bigbluebutton-setup/-/dzd-lMpj9yEJ.

To post to this group, send email to bigbluebu...@googlegroups.com.
To unsubscribe from this group, send email to bigbluebutton-s...@googlegroups.com.

Colin Stewart

unread,
Aug 6, 2012, 8:27:55 PM8/6/12
to bigbluebu...@googlegroups.com
Hi Fred,
I've followed your suggestion and seem to be making progress.  I now get this error in the viewer window:
FAILEDinvalidPasswordYou either did not supply a password or the password supplied is neither the attendee or moderator password for this conference.

I can't see why I'm getting this error.  I don't need passwords, can I disable them?  Or do you have any suggestions as to why I get this error?

Thanks again,
Colin.
To unsubscribe from this group, send email to bigbluebutton-setup+unsubscribe...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/bigbluebutton-setup?hl=en.

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.

Fred Dixon

unread,
Aug 7, 2012, 8:11:55 AM8/7/12
to bigbluebu...@googlegroups.com
Hi Colin,

Think of the passwords that you send on the API 'create' call for viewer and moderator as security tokens. 

When you create a Join URL for a user, you don't need to have them enter any passwords, but you do need to pass one of tokens to the BigBlueButton Server; otherwise, BigBlueButton will not know how to join the user into the session.

Regards,... Fred
-- 
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton
To view this discussion on the web visit https://groups.google.com/d/msg/bigbluebutton-setup/-/m6WhmI5RvcAJ.

To post to this group, send email to bigbluebu...@googlegroups.com.
To unsubscribe from this group, send email to bigbluebutton-s...@googlegroups.com.

Colin Stewart

unread,
Aug 10, 2012, 9:33:35 AM8/10/12
to bigbluebu...@googlegroups.com
Fred,
I now have this working.  I followed your advice, running the demo and looking at the logs and then running my code.  By modifying my request, I got them to match and as if by magic, it works!

Thanks for all the advice,
Colin.
To post to this group, send email to bigbluebu...@googlegroups.com.
To unsubscribe from this group, send email to bigbluebutton-setup+unsubscribe...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bigbluebutton-setup?hl=en.

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To post to this group, send email to bigbluebu...@googlegroups.com.
To unsubscribe from this group, send email to bigbluebutton-setup+unsubscribe...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bigbluebutton-setup?hl=en.

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.

To post to this group, send email to bigbluebu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages