•  
      request #9286 All Personal widgets no more accessible when a jenkins job has no name defined
    Infos
    #9286
    Sandra Echinard (sechinard)
    2016-06-28 09:32
    2016-06-24 16:43
    9569
    Details
    All Personal widgets no more accessible when a jenkins job has no name defined
    We got a fatal error when accessing "Customize Widgets" on personal page, the php error logs are showing this:
    [09-Jun-2016 13:02:26] PHP Fatal error: Uncaught exception 'HudsonJobURLFileNotFoundException' with message 'File not found at URL: https://example.com/job/gerrit_live-test/api/xml' in /usr/share/tuleap/plugins/hudson/include/HudsonJob.class.php:97
    Stack trace:
    #0 /usr/share/tuleap/plugins/hudson/include/HudsonJob.class.php(84): HudsonJob->_getXMLObject('https://example...';)
    #1 /usr/share/tuleap/plugins/hudson/include/HudsonJob.class.php(78): HudsonJob->buildJobObject()
    #2 /usr/share/tuleap/plugins/hudson/include/HudsonJob.class.php(120): HudsonJob->getDomJob()
    #3 /usr/share/tuleap/plugins/hudson/include/HudsonJobWidget.class.php(66): HudsonJob->getName()
    #4 /usr/share/tuleap/src/common/widget/WidgetLayoutManager.class.php(531): HudsonJobWidget->getInstallPreferences('15698')
    #5 /usr/share/tuleap/src/common/widget/WidgetLayoutManager.class.php(329): WidgetLayoutManager->_displayWidgetsSelectionForm('15698', 'Codex Widgets', Array, Array)
    #6 /usr/share/tuleap/src/www/widgets/widgets.php(35): WidgetLayoutManager->displayAvailableWidgets(' in /usr/share/tuleap/plugins/hudson/include/HudsonJob.class.php on line 97
    Continuous Integration
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2016-06-28
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2016-06-27 14:05
    • Original Submission
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes
    User avatar

    Two issues : one on "customize widgets" and one on personal page (if incrimated job was set as widget)

    How to reproduce :

    • On CI, create a new job.
    • Add it in CI service
    • Add a CI widget using this new job
    • Delete the job on CI server
    • Edit it while removing the name in CI service

    You should have a fatal error, on personal page and on customize widget page.