Unexpected results using REST API (since, until)

XMLWordPrintable

    • Type: Bug
    • Resolution: Not a bug
    • Priority: Low
    • None
    • Affects Version/s: 3.10.0
    • Component/s: None
    • None
    • Environment:

      Rating: Good

      What do you like?

      Your response?

      What needs to be improved?

      I see a problem (or I think I do).

      I want to get all the commits between a tag and the HEAD of a branch.
      To do so I'm using the following call:
      http://apps-stash.asml.com:7990/rest/api/1.0/projects/YS/repos/YIELDSTAR/commits?limit=100000&since=start_ys300c_sp__05&until=release/ys300c_sp_05

      Where 'start_ys300c_sp__05' is a label and 'release/ys300c_sp_05' is
      a branch. Currently the label and the HEAD of the branch are pointing
      to the same commit (67415ee569d4496dd997fc51ea69ffff924a27f1). When I
      do the REST API call as mentioned above I'll get over 5000 entries
      back, while I expect none.

      When I call:
      http://apps-stash.asml.com:7990/rest/api/1.0/projects/YS/repos/YIELDSTAR/commits?limit=100000&since=67415ee569d4496dd997fc51ea69ffff924a27f1&until=release/ys300c_sp_05
      I do get none commits back. So my conclusion is that the 'since' clause
      does only work with SHA1 hashes and not with tags (nor with branch names).

      I'm using Atlassian Stash v3.10.0.

      Regards,
      Rudy Holtkamp

      Reporter: Rudy Holtkamp
      E-mail: Rudy.Holtkamp@tmc.nl

            Assignee:
            Unassigned
            Reporter:
            Rudy Holtkamp
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: