lispercat / sailpoint-iiq-dev-accelerator

VSCode extension to accelerate and facilitate development by directly interacting with the target Sailpoint IIQ server
MIT License
31 stars 10 forks source link

Tokenization is ignored when importing xml file with multiple objects included #10

Closed stsang closed 3 years ago

stsang commented 3 years ago

If you import an xml object that uses the tag to include multiple objects, the variable tokenization is not performed.

Add to your x.target.properties: %%ROLEA%%=ROLEA %%ROLEB%%=ROLEB

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE sailpoint PUBLIC "sailpoint.dtd" "sailpoint.dtd">
<sailpoint>
    <Bundle displayName="Role A" name="Role A" type="it">
        <Profiles>
            <Profile>
                <ApplicationRef>
                    <Reference class="sailpoint.object.Application" name="Active Directory"/>
                </ApplicationRef>
                <Constraints>
                    <Filter operation="CONTAINS_ALL" property="memberOf">
                        <Value>
                            <List>
                                <String>%%ROLEA%%</String>
                            </List>
                        </Value>
                    </Filter>
                </Constraints>
            </Profile>
        </Profiles>
    </Bundle>

    <Bundle displayName="Role B" name="Role B" type="it">
        <Profiles>
            <Profile>
                <ApplicationRef>
                    <Reference class="sailpoint.object.Application" name="Active Directory"/>
                </ApplicationRef>
                <Constraints>
                    <Filter operation="CONTAINS_ALL" property="memberOf">
                        <Value>
                            <List>
                                <String>%%ROLEB%%</String>
                            </List>
                        </Value>
                    </Filter>
                </Constraints>
            </Profile>
        </Profiles>
    </Bundle>
</sailpoint>
stsang commented 3 years ago

Can you take a look at my modified post? I edited the post to put it in a codeblock.

The DOCTYPE needs to be sailpoint instead of Bundle when you are trying to import multiple objects. Notice that I have two bundle objects defined within the tags.

lispercat commented 3 years ago

ok, please ignore my previous messages, I read my email and it didn't show your full message. if I put following in the *.target.properties: %%ROLEA%%=ROLEA %%ROLEB%%=ROLEB

Both ROLEA and ROLEB in your example get correctly tokenized. Do I miss something?

lispercat commented 3 years ago

yep, tried it again, it perfectly tokenized both roles

lispercat commented 3 years ago

Yes, that's exactly what I did. It works well for me

On Fri, Nov 27, 2020 at 12:56 PM stsang notifications@github.com wrote:

Can you take a look at my modified post? I edited the post to put it in a codeblock.

The DOCTYPE needs to be sailpoint instead of Bundle when you are trying to import multiple objects. Notice that I have two bundle objects defined within the tags.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lispercat/sailpoint-iiq-dev-accelerator/issues/10#issuecomment-734938647, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACCZB6CFCKJF5QIVBWQRXDSR7R5XANCNFSM4UFEJ7IQ .

stsang commented 3 years ago

That's strange, you're right. It's importing in correctly now. I tried it a few times between Eclipse and VSCode, getting different results. Sorry to waste your time.

lispercat commented 3 years ago

no worries!

On Fri, Nov 27, 2020 at 1:37 PM stsang notifications@github.com wrote:

Closed #10 https://github.com/lispercat/sailpoint-iiq-dev-accelerator/issues/10.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lispercat/sailpoint-iiq-dev-accelerator/issues/10#event-4047046121, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACCZBZNQFLIBGVUEVBBMNTSR7WWPANCNFSM4UFEJ7IQ .