com.cenqua.crucible.model.PermaIdFormatException: 'undefined' is an invalid Review PermaId

Atlassian JIRA | Piotr Swiecicki [Atlassian] | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    h3. Summary # Symptom 1: After the upgrade, for an existing review screen, it shows the files, but when a file is clicked, it doesn't show the source for the file. Trying to summarise or close the review will also fail. # Symptom 2: When creating a new review, the wizard does not show the screen for picking the reviewers. It skips that screen and instead creates the review in a draft mode. h3. Steps to Reproduce # Create a directory in your SVN repository with name having an apostrophe. # Add a file under that directory and checkin the directory and file into SVN. # Create a review for this changeset h3. Expected Results The Review can be edited and created successfully. h3. Actual Results When creating review for a changeset, the edit review dialog doesn't show and JS errors are reported on this action: !frx-with-apos.png|thumbnail! Edit action fails with error: {noformat} URL: /foo/json/cru/edit-details 404: Not Found {noformat} The exception reported is: {noformat} 2015-09-03 08:49:06,806 ERROR [qtp1855610584-6946 ] com.atlassian.plugins.rest.common.error.jersey.ThrowableExceptionMapper ThrowableExceptionMapper-toResponse - Uncaught exception thrown by REST service: 'undefined' is an invalid Review PermaId com.cenqua.crucible.model.PermaIdFormatException: 'undefined' is an invalid Review PermaId at com.cenqua.crucible.model.managers.impl.DefaultReviewManager.getReviewByPermaId(DefaultReviewManager.java:518) at com.atlassian.crucible.spi.impl.DefaultReviewService.getRequiredReview(DefaultReviewService.java:592) at com.atlassian.crucible.spi.impl.DefaultReviewService.getReviewData(DefaultReviewService.java:1132) at com.atlassian.crucible.spi.impl.DefaultReviewService.getReview(DefaultReviewService.java:1122) {noformat} h3. Workaround [Exclude|https://confluence.atlassian.com/fisheye/include-exclude-paths-298976903.html#IncludeExcludepaths-AddinganExclude] the folder paths that contain the apostrophe character.

    Atlassian JIRA | 1 year ago | Piotr Swiecicki [Atlassian]
    com.cenqua.crucible.model.PermaIdFormatException: 'undefined' is an invalid Review PermaId
  2. 0

    h3. Summary # Symptom 1: After the upgrade, for an existing review screen, it shows the files, but when a file is clicked, it doesn't show the source for the file. Trying to summarise or close the review will also fail. # Symptom 2: When creating a new review, the wizard does not show the screen for picking the reviewers. It skips that screen and instead creates the review in a draft mode. h3. Steps to Reproduce # Create a directory in your SVN repository with name having an apostrophe. # Add a file under that directory and checkin the directory and file into SVN. # Create a review for this changeset h3. Expected Results The Review can be edited and created successfully. h3. Actual Results When creating review for a changeset, the edit review dialog doesn't show and JS errors are reported on this action: !frx-with-apos.png|thumbnail! Edit action fails with error: {noformat} URL: /foo/json/cru/edit-details 404: Not Found {noformat} The exception reported is: {noformat} 2015-09-03 08:49:06,806 ERROR [qtp1855610584-6946 ] com.atlassian.plugins.rest.common.error.jersey.ThrowableExceptionMapper ThrowableExceptionMapper-toResponse - Uncaught exception thrown by REST service: 'undefined' is an invalid Review PermaId com.cenqua.crucible.model.PermaIdFormatException: 'undefined' is an invalid Review PermaId at com.cenqua.crucible.model.managers.impl.DefaultReviewManager.getReviewByPermaId(DefaultReviewManager.java:518) at com.atlassian.crucible.spi.impl.DefaultReviewService.getRequiredReview(DefaultReviewService.java:592) at com.atlassian.crucible.spi.impl.DefaultReviewService.getReviewData(DefaultReviewService.java:1132) at com.atlassian.crucible.spi.impl.DefaultReviewService.getReview(DefaultReviewService.java:1122) {noformat} h3. Workaround [Exclude|https://confluence.atlassian.com/fisheye/include-exclude-paths-298976903.html#IncludeExcludepaths-AddinganExclude] the folder paths that contain the apostrophe character.

    Atlassian JIRA | 1 year ago | Piotr Swiecicki [Atlassian]
    com.cenqua.crucible.model.PermaIdFormatException: 'undefined' is an invalid Review PermaId

    Root Cause Analysis

    1. com.cenqua.crucible.model.PermaIdFormatException

      'undefined' is an invalid Review PermaId

      at com.cenqua.crucible.model.managers.impl.DefaultReviewManager.getReviewByPermaId()
    2. com.cenqua.crucible
      DefaultReviewManager.getReviewByPermaId
      1. com.cenqua.crucible.model.managers.impl.DefaultReviewManager.getReviewByPermaId(DefaultReviewManager.java:518)
      1 frame
    3. com.atlassian.crucible
      DefaultReviewService.getReview
      1. com.atlassian.crucible.spi.impl.DefaultReviewService.getRequiredReview(DefaultReviewService.java:592)
      2. com.atlassian.crucible.spi.impl.DefaultReviewService.getReviewData(DefaultReviewService.java:1132)
      3. com.atlassian.crucible.spi.impl.DefaultReviewService.getReview(DefaultReviewService.java:1122)
      3 frames