Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Not version specific
    • Component/s: Development
    • Labels:
      None
    • Environment:
      CNV - produced on 20090918 with Requisitions
    • Similar issues:
      KULRICE-3881Maintenance docs fail when they have file attachments
      KULRICE-8176KFS Notes/Attachments Tab Functionality for Note Text Error - Visible/Special characters, spaces, or tabs
      KULRICE-5970Can not copy a permission
      KULRICE-4372 Load Test Problem - Doc Search causing memory to max out
      KULRICE-3358When reopening an event notification from the action list or doc search, the event's start/end date values have the wrong hour
      KULRICE-7420The Copy function is creating a history (within the Notes and Attachments section) of all copied doc numbers linked to the original 'copied' document
      KULRICE-8644When trying to copy certain permissions, doc gets stuck 'Enroute'
      KULRICE-5426Heading level problems
      KULRICE-3625problem with handling of SecurityAttributes in standalone rice
      KULRICE-1547rice_db_bootstrap.sql problems on 0.9.3

      Description

      Pre-save Error:
      1) Create a Req Doc with an attachment and submit it
      2) Copy that doc and add a new attachment
      3) Before saving, try and download the attachment. You should get a stacktrace.

      After Save/Submit Error:
      1) Create a Req Doc with an attachment and submit it
      2) Copy that doc and add a new attachment
      3) Save or Submit the doc
      4) Re-open the submitted Child doc and try downloading the attachment. You should get a stacktrace. (See .png from CNV)

      It seems the Copy function is also copying the Parents getObjectId(). When the doc is in the Initiated state (before a save), org.kuali.rice.kns.service.impl.AttachmentServiceImpl:createAttachment is expecting getObjectId() to be null so it can be put in the Pending directory.
      Instead the attachment gets saved in the Parent doc's attachment directory.

      We know this error happens with Requisitions. It doesn't seem to happen with IB docs though. We haven't tested other types of docs. (Most of our copied docs with attachements are Reqs)

      Thanks! - Matt

        Activity

        Hide
        Eric Westfall added a comment -

        Talked to Jerry about this one, he indicates that it can be closed.

        Show
        Eric Westfall added a comment - Talked to Jerry about this one, he indicates that it can be closed.

          People

          • Assignee:
            Unassigned
            Reporter:
            Matt McQuarrie
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Structure Helper Panel