This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 973397 - Unable to create configuration file backed "entity" with name it was created earlier but deleted
Unable to create configuration file backed "entity" with name it was created ...
Status: CLOSED NOTABUG
Product: JBoss Enterprise Application Platform 5
Classification: JBoss
Component: jbossas (Show other bugs)
5.2.0
Unspecified Unspecified
unspecified Severity high
: ---
: ---
Assigned To: Fernando Nasser
:
Depends On:
Blocks: 885136
  Show dependency treegraph
 
Reported: 2013-06-11 17:00 EDT by Lukas Krejci
Modified: 2013-06-11 17:50 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-06-11 17:41:35 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Lukas Krejci 2013-06-11 17:00:51 EDT
Description of problem:

When using the ProfileService API, one can create a queue, topic, datasource (or possibly any other config file backed "entity"), which will create a corresponding XML configuration file in the deployment directory automatically (queue_XXX-service.xml, XXX-ds.xml, etc.).

When such entity is deleted (again through the ProfileService API), the configuration file is NOT deleted but the change is merely recorded in the data/attachments "journal".

An attempt to re-create such previously deleted entity fails with a complaint that "java.io.SyncFailedException:Deployment content already exists: /.../jboss-eap-5.2.0/jboss-as/server/default/deploy/testDS-ds.xml"

Version-Release number of selected component (if applicable):
discovered using EAP 5.2.0

How reproducible:
always

Steps to Reproduce:
See the dependent JBoss ON BZ on how to reproduce this using JBoss ON.

Actual results:
The re-creation of the entity fails complaining about an existing deployment file.

Expected results:
The re-creation of the entity should be successful regardless of a presence of a certain (ineffective) config file in the deploy dir.


Additional info:
Comment 1 Lukas Krejci 2013-06-11 17:41:35 EDT
I spoke too soon, ignore this.

The config files are considered deployments, while the individual entities in them are considered components. Removing a component doesn't remove the deployment. JBoss ON should be more clever about this and remove "empty" deployments.

Note You need to log in before you can comment on or make changes to this bug.