IBM Support

PI63656: ISSUE IN COPY DIRECTORY USING FILE UTILS PLUGIN

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • The Copy Directory plugin deletes read-only files in the
    destination folder.
    
    Steps to reproduce:
    1) Create a source and destination directory.
    2) Copy a file from the source to the destination and set the
    permissions to 444.
    3) Run the application process.
    
    The output log will print the following output and the
    destination file will be deleted.
    
    [echo] Preparing Copy from /tmp/1/ to /tmp/2/
         [copy] Copying 1 file to /tmp/2
         [copy] Copying /tmp/1/1.txt to /tmp/2/1.txt
    Error copying directory: Failed to copy /tmp/1/1.txt to
    /tmp/2/1.txt due to can't write to read-only destination file
    /tmp/2/1.txt
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * When using Copy Dir to overwrite a read-only file.           *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Using the Copy Dir command would cause a failure on          *
    * read-only files. These read-only files would then be deleted *
    * even though the copy failed. This error was caused by Apache *
    * Ant and resolved in version 1.9.4.                           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Upgrade to FileUtils 49. The current fix involves using the
    force flag to make the overwrite happen regardless of
    permissions. The minimum version of Ant for this workaround is
    1.8.2.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI63656

  • Reported component name

    UC DEPLOY

  • Reported component ID

    5725M5400

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-06-06

  • Closed date

    2016-12-15

  • Last modified date

    2016-12-15

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    UC DEPLOY

  • Fixed component ID

    5725M5400

Applicable component levels

  • R600 PSN

       UP

  • R600 PSY

       UP

  • R601 PSN

       UP

  • R601 PSY

       UP

  • R610 PSN

       UP

  • R610 PSY

       UP

  • R611 PSN

       UP

  • R611 PSY

       UP

  • R612 PSN

       UP

  • R612 PSY

       UP

  • R613 PSN

       UP

  • R613 PSY

       UP

  • R620 PSN

       UP

  • R620 PSY

       UP

  • R621 PSN

       UP

  • R621 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS4GSP","label":"IBM UrbanCode Deploy"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 December 2016