| Summary: | reconfigure macro in schema/build.xml destroys original files | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise SOA Platform 4 | Reporter: | tcunning |
| Component: | Build Process | Assignee: | Mike Brock <cbrock> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.2 CP01 | CC: | rruss |
| Target Milestone: | --- | ||
| Target Release: | 4.3 IR4 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://jira.jboss.org/jira/browse/SOA-567 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2008-10-07 04:44:26 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Tom - isn't this the same as: SOA-512 Tom - isn't this a duplicate of SOA-512? I don't believe so. SOA-512 suggests that it's possible to change database configuration by removing files - this bug says that we destroy the original files so it will be impossible to accurately switch the database a second time. The original files will no longer be there to use as replacement/change templates. Link: Added: This issue related SOA-695 Link: Added: This issue duplicates SOA-853 Verified in IR5 |
Date of First Response: 2008-06-11 08:51:26 project_key: SOA The reconfigure macro moves files to {file}.orig, and then moves them instead of copying them - which destroys the original file. If the second move in the sequence were a copy instead of a move, it would be possible to rerun the schema script. I think the intention was to preserve the original file - the subsequent copies don't overwrite the .orig files. <macrodef name="reconfigure"> <attribute name="file"/> <attribute name="old"/> <attribute name="new"/> <sequential> <move file="@{file}" tofile="@{file}.orig"/> <move file="@{file}.orig" tofile="@{file}"> <filterchain> <replacestring from="@{old}" to="@{new}"/> </filterchain> </move> </sequential> </macrodef>