getFilename Used in Java PX During File Checkin Does Not Retrieve Every File Name (Doc ID 2105093.1)

Last updated on FEBRUARY 19, 2017

Applies to:

Oracle Agile PLM Framework - Version 9.3.3.0 to 9.3.5.0 [Release 9.3]
Information in this document applies to any platform.

Symptoms

Actual Behavior
When trying to checkin File Folder with multiple attachment files, getFilename() method used during the "Check In Files" Event Type cannot
retrieve every new file name replaced. If 2 file was replaced at once during check in, only the 1st file name is retrived correctly but the second file
name is not retrieved correctly. It shows the first file name which is not correct.

Expected Behavior
When trying to checkin File Folder with multiple attachment files, getFilename() method used during the "Check In Files" Event Type can retrieve
every new file name replaced.

Steps

  1. Create a JAR file including the following java code.
  2. Restart the WebLogic server
  3. Login to Web Client
  4. Go to Part object and move to attachment tab
  5. Add a Folder object with multiple files attached


    File Name File Type Folder Number
    attachment-07a.txt; attachment-08b.txt; Folder FOLDER00024


  6. Select the folder added in step 8 and press Checkout button
  7. Select multiple files and perform checkout
  8. Zip file will be downloaded
  9. Select the folder added in step 8 and press Checkin button
  10. Replace multiple file and press Replace button


    Original File Name Replacement File Name
    attachment-07a.txt attachment-07.txt
    attachment-08b.txt attachment-08.txt


  11. Go to History tab and confirm that the event is successfully run
  12. Check the below directory and review the log:addon-debug.log

    $AGILE_HOME/agileDomain/servers/jpag3.jp.oracle.com-AgileServer/logs/addon-debug.log

  13. Confirm the addon-debug.log. Filename only shows attachment-07.txt. attachment-08.txt is not shown.

    2015-12-03 15:23:32,341 <CheckInFilePreHandlerSample:DEBUG>     Check in FileName => attachment-07.txt,attachment-07.txt,

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms