Support

Expand all | Collapse all

REST API Move item is not at the end

  • 1.  REST API Move item is not at the end

    Posted 4 days ago
    Hi everybody,

    I have an issue when doing a lot of move of items.
    I create the following hirerachy :
    1
    -- 1.1
    ---- 1.1.1
    ---- 1.1.3
    ---- 1.1.4
    ---- 1.1.2
    ---- 1.1.6
    ---- 1.1.5

    Then I sort out it (number sort) by moving items to a temp one.
    I got at the end :
    1
    -- 1.1
    ---- 1.1.1
    ---- 1.1.2
    ---- 1.1.3
    ---- 1.1.4
    ---- 1.1.5
    ---- 1.1.6

    And I disorder them into the same order as the start.
    It works when I do this one time but If try to increase the move number by repeating these operations 100 times.
    At different moment on the loop it fails and the items are not correctly order no more.
    In attachement you will see a log with the order that is messed up is at the loop number 28.
    1.1.4 is after 1.1.1 and it shouldn't.
    I also add in attachement little Java project done with maven to be able to reproduce the errors.
    Just import the zip as an existing project into eclipse. Then change the value in the connection.properties file under src/main/resources directory. And just Launch it.

    To do the move I use the REST API PUT to an uri of an item by changing his parent value in the location.
    So each time I'll do this, the newly PUT item should be at the end of the set.

    Thanks for your help.

    ------------------------------
    Garros JP
    ------------------------------

    Attachment(s)

    zip
    MoveFails.zip   10K 1 version
    txt
    log.txt   51K 1 version


  • 2.  RE: REST API Move item is not at the end

    Posted 2 days ago
    Hi Garros,

    Thanks for reaching out here and providing the log as well as the example here along with the thorough explanation!  I've notified our engineering team about this and they're going to start looking into it more closely.  Ideally, with all that you've provided here, we'll be able to dig into it more efficiently and address the issue.

    Thanks again and let us know if you have any more questions!

    ------------------------------
    Nick S
    Jama Software
    ------------------------------