Creating Rif Definitions using DXL (9.5)

Hello,

I'm trying to create a Rif Definition using DXL code, sadly without success.

Looking at the perms that return RifDefinitions I tried using

RifDefinition rdf = createTemp("RifName", "RifDescription");
String err = createRifDefinition(p, "RifName", "RifDescription", "RifID", rdf);

but it was no use. CreateTemp returns a null Rif Definition and createRifDefinition() returns a null string and doesn't touch the rdf variable at all.

 

Has anyone had any success so far in creating Rif Definitions using DXL code or has any ideas on what I could try? Do I maybe need to call some kind of init function before?

 

Thanks in advance,

 

Oliver Wilkop


O.Wilkop - Wed Jul 09 08:00:38 EDT 2014

Re: Creating Rif Definitions using DXL (9.5)
Mathias Mamsch - Thu Jul 10 04:14:53 EDT 2014

Hi Oliver,

oh I had my fun with this issue ... I have worked hours on that and tried to systematically rule out any mistakes.

The conclusion that I came to, was that IBM has built in a security feature that allows these perms only to be called from the build-in scripts.

How I came to that conclusion? I decoded the encrypted files that come with the DOORS client. Suddenly the DOORS client did not work anymore (without me making any changes). Suddenly those perms returned also null in the original code.

If IBM really has built in a security feature so that only them can use special perms, that would really be a very bad move. I have not yet determined how this works, but my guess is, that it can only be a check on

a) the encryption of the file
b) maybe the code needs to be executed on the global DXL context.

As a workaround I suggest you only use the documented functions in the DXL manual.

Regards, Mathias

Re: Creating Rif Definitions using DXL (9.5)
O.Wilkop - Thu Jul 10 07:39:38 EDT 2014

Mathias Mamsch - Thu Jul 10 04:14:53 EDT 2014

Hi Oliver,

oh I had my fun with this issue ... I have worked hours on that and tried to systematically rule out any mistakes.

The conclusion that I came to, was that IBM has built in a security feature that allows these perms only to be called from the build-in scripts.

How I came to that conclusion? I decoded the encrypted files that come with the DOORS client. Suddenly the DOORS client did not work anymore (without me making any changes). Suddenly those perms returned also null in the original code.

If IBM really has built in a security feature so that only them can use special perms, that would really be a very bad move. I have not yet determined how this works, but my guess is, that it can only be a check on

a) the encryption of the file
b) maybe the code needs to be executed on the global DXL context.

As a workaround I suggest you only use the documented functions in the DXL manual.

Regards, Mathias

Hello Mathias,

I was hopeing for you to answer, as my googling efforts have brought up a thread of you trying to solve this problem some years ago.

 

It looks like I won't be able to create Rif Definitions then... my second idea of letting the user create a Rif Definition and then using DXL code to manipulate the entries also didn't work out (it looks like the perms to add and manipulate rif informations are also not useable in non-encrypted status). I might have to resort to editing the .xml export file for my purposes...

 

Thank you anyway, I will keep this thread unanswered in case anyone wants to add any information in the future.

 

Regards, Oliver

Re: Creating Rif Definitions using DXL (9.5)
DeXTer - Fri Oct 16 07:31:02 EDT 2015

O.Wilkop - Thu Jul 10 07:39:38 EDT 2014

Hello Mathias,

I was hopeing for you to answer, as my googling efforts have brought up a thread of you trying to solve this problem some years ago.

 

It looks like I won't be able to create Rif Definitions then... my second idea of letting the user create a Rif Definition and then using DXL code to manipulate the entries also didn't work out (it looks like the perms to add and manipulate rif informations are also not useable in non-encrypted status). I might have to resort to editing the .xml export file for my purposes...

 

Thank you anyway, I will keep this thread unanswered in case anyone wants to add any information in the future.

 

Regards, Oliver

Hello together,

 

it seems as if we require a unique value for rifDefinitionIdentifier.

Unfortunately, I have found nothing in the manuals and in Google.

Is there any undocumented Dxl function that can generate this ID?

 

Regards, DeXTer

Re: Creating Rif Definitions using DXL (9.5)
Mathias Mamsch - Tue Oct 20 02:36:03 EDT 2015

DeXTer - Fri Oct 16 07:31:02 EDT 2015

Hello together,

 

it seems as if we require a unique value for rifDefinitionIdentifier.

Unfortunately, I have found nothing in the manuals and in Google.

Is there any undocumented Dxl function that can generate this ID?

 

Regards, DeXTer

There are possibilities in DXL to generate a GUID (search the forum for GUID) but I don't think that there are special functions for RIF Definition Identifiers... Why do you think we need an ID for that? Regards, Mathias