Designer Version: 4.0.2 Auto Update 5
Build id: 20140423

I have a package I'm developing, and I have included a Filter Resource in
it. I'm having inconsistent results with getting the driver filter
updated, or not, using the Filter Resource when I install my package.
I've found a few previous references to problems with filter resource
objects, but no resolution.

What I'm doing:

I have a project ("Package Development") in which I've been developing my
package using a Null driver as the base. This project is, of course, in
"package developer" mode. I've created a filter resource with some
attributes in it, like:

Code:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE filter PUBLIC
"dirxmlfilter" "/home/a02dag1/bin/designer_4.02/plugins/
com.novell.idm.filter_4.0.0.201206110753/DTD/dirxmlfilter.dtd"><filter>
<filter-class class-name="User" publisher="sync" publisher-create-
homedir="true" publisher-track-template-member="true" subscriber="sync">
<filter-attr attr-name="niuPreferredFullName" merge-authority="edir"
publisher="sync" publisher-optimize-modify="true" subscriber="sync">
<?comment Preferred full name value, from PeopleSoft HR.?>
</filter-attr>
</filter>
I sync this to the package, ok no problems there.

In this same project, I have a second Null driver. I install my package
on the Null driver, and check the filter to find that my attributes from
the Filter Resource are present and correct.

I then build my project to a Jar file.

In another project, I import my package Jar to the package catalog. In
the package catalog, then, I can see that my Filter Resource is present.

I create a Null driver (Null Base), which starts with an empty filter.

I then install my package on this Null driver. Afterward, the filter is
interestingly broken, and does not contain the attributes from my filter
resource. Instead, each time I open the filter in the editor, Designer
adds a <!DOCTYPE...> to it, like:

Code:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE filter PUBLIC
"dirxmlfilter" "/home/a02dag1/bin/designer_4.02/plugins/
com.novell.idm.filter_4.0.0.201206110753/DTD/dirxmlfilter.dtd"><!DOCTYPE
filter PUBLIC "dirxmlfilter" "/home/a02dag1/bin/designer_4.02/plugins/
com.novell.idm.filter_4.0.0.201206110753/DTD/dirxmlfilter.dtd"><!DOCTYPE
filter PUBLIC "dirxmlfilter" "/home/a02dag1/bin/designer_4.02/plugins/
com.novell.idm.filter_4.0.0.201206110753/DTD/dirxmlfilter.dtd"><filter>
<filter-class class-name="User" publisher="sync" publisher-create-
homedir="true" publisher-track-template-member="true" subscriber="sync"/>
</filter>
The first time, the filter still opens ok, but appears to be blank. Once
the second (third, forth) DOCTYPE is added, the filter editor is no
longer able to make sense of it and complains that the filter is wrong.
Using the XML edit view, I can see the multiple DOCTYPE tags on it. If I
remove the extra DOCTYPEs, I can at least get back to the normal filter
editor, but I'm still not getting what should be there from the filter
resource.

Anybody seen this before? Any ideas on what's going wrong or what I'm
missing here?


--
--------------------------------------------------------------------------
David Gersic dgersic_@_niu.edu
Knowledge Partner http://forums.netiq.com

Please post questions in the forums. No support provided via email.
If you find this post helpful, please click on the star below.