Skip to content

UrlBuilder doesn't trim whitespaces #12

@eMTyMe

Description

@eMTyMe

Every time I tried to create a new virtual meeting room, this error was thrown (I added the curl_errno($ch) to the throw Error(...) in /var/www/ilias/Customizing/global/plugins/Services/Repository/RepositoryObject/MultiVc/src/bbb/src/BigBlueButton.php:595 myself)

RuntimeException thrown with message "Unhandled curl error: 3"

Stacktrace:
#9 RuntimeException in /var/www/ilias/Customizing/global/plugins/Services/Repository/RepositoryObject/MultiVc/src/bbb/src/BigBlueButton.php:595
#8 BigBlueButton\BigBlueButton:sendRequest in /var/www/ilias/Customizing/global/plugins/Services/Repository/RepositoryObject/MultiVc/src/bbb/src/BigBlueButton.php:627
#7 BigBlueButton\BigBlueButton:processXmlResponse in /var/www/ilias/Customizing/global/plugins/Services/Repository/RepositoryObject/MultiVc/src/bbb/src/BigBlueButton.php:261
#6 BigBlueButton\BigBlueButton:getMeetings in /var/www/ilias/Customizing/global/plugins/Services/Repository/RepositoryObject/MultiVc/classes/class.ilApiBBB.php:270
#5 ilApiBBB:setConcurrent in /var/www/ilias/Customizing/global/plugins/Services/Repository/RepositoryObject/MultiVc/classes/class.ilApiBBB.php:99
#4 ilApiBBB:__construct in /var/www/ilias/Customizing/global/plugins/Services/Repository/RepositoryObject/MultiVc/classes/class.ilObjMultiVcGUI.php:144
#3 ilObjMultiVcGUI:__construct in /var/www/ilias/Services/Repository/PluginSlot/class.ilObjPluginDispatchGUI.php:60
#2 ilObjPluginDispatchGUI:executeCommand in /var/www/ilias/Services/UICore/classes/class.ilCtrl.php:199
#1 ilCtrl:forwardCommand in /var/www/ilias/Services/UICore/classes/class.ilCtrl.php:174
#0 ilCtrl:callBaseClass in /var/www/ilias/ilias.php:24

-- GET Data --
...

After looking into the error and tracking it back to the UrlBuilder I noticed that in the Public URL of the BBB server and Private URL of the BBB server fields of the MultiVC configuration, I entered the urls with a trailing whitespace.
This is a code issue, since user inputs (especially sensitive things like urls) should be trimmed. But, it'll be an easy fix!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions