•  
      request #24177 Submitting LDAP welcome page without a timezone throws an error
    Infos
    #24177
    Thomas Gerbet (tgerbet)
    2021-11-25 11:29
    2021-11-25 08:54
    25723
    Details
    Submitting LDAP welcome page without a timezone throws an error

    Not exactly sure how this can happen in real life but this issue has been identified from a production instance logs.

    Reproduction steps:

    1. Go to /plugins/ldap/welcome
    2. Edit the DOM to drop the timezone select form field
    3. Submit

    Trace:

    PHP Fatal error:  Uncaught TypeError: Account_TimezonesCollection::isValidTimezone(): Argument #1 ($timezone) must be of type string, bool given, called in /usr/share/tuleap/plugins/ldap/include/WelcomeUpdateController.php on line 72 and defined in /usr/share/tuleap/src/common/account/TimezonesCollection.class.php:27
    Stack trace:
    #0 /usr/share/tuleap/plugins/ldap/include/WelcomeUpdateController.php(72): Account_TimezonesCollection->isValidTimezone()
    #1 /usr/share/tuleap/src/common/Request/FrontRouter.php(248): Tuleap\LDAP\WelcomeUpdateController->process()
    #2 /usr/share/tuleap/src/common/Request/FrontRouter.php(108): Tuleap\Request\FrontRouter->routeHandler()
    #3 /usr/share/tuleap/src/www/index.php(49): Tuleap\Request\FrontRouter->route()
    #4 {main}
      thrown in /usr/share/tuleap/src/common/account/TimezonesCollection.class.php on line 27
    
    Authentication & LDAP
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2021-11-25
    Attachments
    Empty
    References

    Follow-ups

    User avatar

    integrated to Tuleap 13.2.99.84


    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2021-11-25