Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-3676

CallbackLsTreeOutputHandler does not call onEndPage when the git process is interrupted

    XMLWordPrintable

Details

    Description

      Hi, today my search button for one of the repos started to answer "An error occurred while listing the files. The files listed may not be complete."

      I found exception in log and it is in attach.

      Also, I found this exception in sources:

      log.error(String.format(
      "Error occurred while streaming file listing '%s' at path '%s' at revision '%s'",
      repository.getName(),
      path,
      objectId
      ), e);

      KeyedMessage errorMessage = i18nService.getKeyedText(
      "stash.rest.filelist.error",
      "An error occurred while listing the files. The files listed may not be complete.");
      if (!new RestErrors(errorMessage.getLocalisedMessage()).endScopeAndTryWriteTo(writer))

      { log.debug("Unable to add the 'error' property to the streamed JSON file listing: " + errorMessage.getRootMessage()); }

      And also, I tried to re-send get-request:
      https://our.server.address/rest/api/latest/projects/STARDUST/repos/browser/files?limit=100000&at=refs%2Fheads%2Fmaster
      It returns JSON with
      "errors":[

      {"context":null,"message":"An error occurred while listing the files. The files listed may not be complete.","exceptionName":null}


      on the end, but all the files are included (seems to be)

      but! if you change limit to 99999 it will return valid JSON with 99999 files

      Attachments

        Activity

          People

            jhinch jhinch (Atlassian)
            fcde558bf395 Igor Slinko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: