•  
      request #10231 Fatal error thrown in artifact copy due to missing user permissions at save
    Infos
    #10231
    Marie Ange Garnier (marieange)
    2017-06-02 09:59
    2017-05-17 11:33
    10496
    Details
    Fatal error thrown in artifact copy due to missing user permissions at save
    Given a tracker with a field with this permissions:
    only regsitered_user has can submit permissions and he also has Read Only access permissions

    When a regular user (just project member no admin project or site admin)
    try to copy artifact a fatal error is thrown:
    PHP Fatal error: Uncaught exception 'Tracker_FieldValueNotStoredException' with message 'The field "Dependencies" cannot be stored.' in /usr/share/tuleap
    /plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetCreatorBase.class.php:184\nStack trace:\n
    #0 /usr/share/tuleap/plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetCreatorBase.class.php
    (111): Tracker_Artifact_Changeset_NewChangesetCreatorBase->storeFieldsValues(Object(Tracker_Artifact), Ob
    ject(Tracker_Artifact_Changeset), Array, Object(PFUser), 6269)\n#1 /usr/share/tuleap/plugins/tracker/incl
    ude/Tracker/Artifact/Tracker_Artifact.class.php(1139): Tracker_Artifact_Changeset_NewChangesetCreatorBase
    ->create(Object(Tracker_Artifact), Array, '[warning] [XML ...', Object(PFUser), 1495010351, true, 'text')
    \n#2 /usr/share/tuleap/plugins/tracker/include/Tracker/Action/CopyArtifact.class.php(231): Tracker_Artifa
    ct->createNewChangesetWhitoutRequiredValidation(Array, '[warning] [XML ...', Object(PFUser), true, 'text'
    )\n#3 /usr/share/tuleap/plugins/tracker/include/Track in /usr/share/tuleap/plugins/tracker/include/Tracke
    r/Artifact/Changeset/NewChangesetCreatorBase.class.php on line 184, referer: https://tuleap-web.tuleap-ai
    o-dev.docker/plugins/tracker/?func=copy-artifact&aid=4905

    Trackers
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2017-06-02
    Attachments
    Empty
    References

    Follow-ups