•  
      request #9093 Notice when you import or create a tracker with some permissions set to UGROUP_TRACKER_ADMIN
    Infos
    #9093
    Thomas Gerbet (tgerbet)
    2016-04-21 14:17
    2016-04-21 08:46
    9319
    Details
    Notice when you import or create a tracker with some permissions set to UGROUP_TRACKER_ADMIN
    A notice is raised you try to import or create a tracker from a XML file setting permissions to the dynamic ugroup UGROUP_TRACKER_ADMIN.

    You will attached a XML file to reproduce the issue.

    Stack trace:
    PHP Notice: Undefined offset: 15 in /usr/share/tuleap/plugins/tracker/include/tracker_permissions.php on line 291, referer: http://tuleap_web_1.tuleap-aio-dev.docker/plugins/tracker/?group_id=147&func=create
    PHP Stack trace:, referer: http://tuleap_web_1.tuleap-aio-dev.docker/plugins/tracker/?group_id=147&func=create
    PHP 1. {main}() /usr/share/tuleap/plugins/tracker/www/index.php:0, referer: http://tuleap_web_1.tuleap-aio-dev.docker/plugins/tracker/?group_id=147&func=create
    PHP 2. TrackerManager->process() /usr/share/tuleap/plugins/tracker/www/index.php:33, referer: http://tuleap_web_1.tuleap-aio-dev.docker/plugins/tracker/?group_id=147&func=create
    PHP 3. TrackerManager->doCreateTracker() /usr/share/tuleap/plugins/tracker/include/Tracker/TrackerManager.class.php:148, referer: http://tuleap_web_1.tuleap-aio-dev.docker/plugins/tracker/?group_id=147&func=create
    PHP 4. TrackerXmlImport->createFromXMLFileWithInfo() /usr/share/tuleap/plugins/tracker/include/Tracker/TrackerManager.class.php:242, referer: http://tuleap_web_1.tuleap-aio-dev.docker/plugins/tracker/?group_id=147&func=create
    PHP 5. TrackerXmlImport->createFromXML() /usr/share/tuleap/plugins/tracker/include/TrackerXmlImport.class.php:410, referer: http://tuleap_web_1.tuleap-aio-dev.docker/plugins/tracker/?group_id=147&func=create
    PHP 6. TrackerFactory->saveObject() /usr/share/tuleap/plugins/tracker/include/TrackerXmlImport.class.php:435, referer: http://tuleap_web_1.tuleap-aio-dev.docker/plugins/tracker/?group_id=147&func=create
    PHP 7. Tracker_FormElementFactory->saveObject() /usr/share/tuleap/plugins/tracker/include/Tracker/TrackerFactory.class.php:633, referer: http://tuleap_web_1.tuleap-aio-dev.docker/plugins/tracker/?group_id=147&func=create
    PHP 8. Tracker_FormElement_Container->afterSaveObject() /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElementFactory.class.php:1552, referer: http://tuleap_web_1.tuleap-aio-dev.docker/plugins/tracker/?group_id=147&func=create
    PHP 9. Tracker_FormElementFactory->saveObject() /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Container.class.php:343, referer: http://tuleap_web_1.tuleap-aio-dev.docker/plugins/tracker/?group_id=147&func=create
    PHP 10. Tracker_FormElement_Container->afterSaveObject() /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElementFactory.class.php:1552, referer: http://tuleap_web_1.tuleap-aio-dev.docker/plugins/tracker/?group_id=147&func=create
    PHP 11. Tracker_FormElementFactory->saveObject() /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Container.class.php:343, referer: http://tuleap_web_1.tuleap-aio-dev.docker/plugins/tracker/?group_id=147&func=create
    PHP 12. Tracker_FormElementFactory->createFormElement() /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElementFactory.class.php:1550, referer: http://tuleap_web_1.tuleap-aio-dev.docker/plugins/tracker/?group_id=147&func=create
    PHP 13. plugin_tracker_permission_process_update_fields_permissions() /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElementFactory.class.php:1472, referer: http://tuleap_web_1.tuleap-aio-dev.docker/plugins/tracker/?group_id=147&func=create
    Import | Export
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2016-04-21
    Attachments
    References

    Follow-ups

    User avatar
    Merged into Tuleap 8.13.99.61

    • Status changed from Under review to Closed
    • Close date set to 2016-04-21
    User avatar
    Thomas Gerbet (tgerbet)2016-04-21 10:13
    • Summary
      -Notice when you import or create a tracker with a permissions set to UGROUP_TRACKER_ADMIN 
      +Notice when you import or create a tracker with some permissions set to UGROUP_TRACKER_ADMIN