8.0.0.1: CF4 reinstall fails with "Target `deploy-portlet-upgrade-wp.ap.impersonation' does not exist"

Technote (troubleshooting)

Problem

When attempting to reinstall CF4 on Portal 8.0.0.1 after a failed installation, the installation may fail with a 'Target `deploy-portlet-upgrade-wp.ap.impersonation' does not exist' error in the ConfigTrace.log

Symptom

In the ConfigTrace.log, the following error can be seen: ========================== BUILD FAILED Target `deploy-portlet-upgrade-wp.ap.impersonation' does not exist in this project. It is used from target `action-deploy-portlets-applyMIGStatic-wp.ap.impersonation'. ==========================

Cause

This is caused by a defect in the CF4 rollback process. The version in wps.properties is incorrectly set to 8.0.0.0 instead of 8.0.0.1. This causes the subsequent upgrade attempt to remove/alter files it should not touch.

Resolving the problem

To workaround the issue, use the attached workaround script and these instructions:

1. Download the attached prepCF4.zip file.

2. Extract it to a temporary directory

3. Linux/Unix: Ensure the user has execute permissions on the prepCF4.sh file in the extracted directory.