Hi,

 

We have one issue with the mid-tier which we do not have with the user
tool. In fact we have a filter which runs on a "Submit" or "Modify"
action. This filter calls a C program on the server where the goal is to
check the format of the data in a field and that those data are not
replicated on any other entry.

 

So basically the value contained in this field is the parameter of the
Run process action. So just for information the command looks like :

 

$PROCESS$ ARRPC=390685;export ARRPC;cd $ARPROGS;./CheckNames -i "$IP
Address$" -d "$DNS Domain$" -m "$Duplicate Host Name$" -h "$Host Name
and Aliases$"

 

Everything works fine with the user tool but we have issue with the
mid-tier where we get one error.

 

The logs with the user tool like :

 

 1: Set Fields

<FLTR> <TID: 0000000009> <RPC ID: 0000019252> <Queue: Fast      >
<Client-RPC: 390620   > <USER: tourniep

     >                   ARRPC=390685;export ARRPC;cd
$ARPROGS;./CheckNames -i "145.245.32.217" -d "BAS" -m "" -h "prpigel

test1

test3"

<FLTR> <TID: 0000000009> <RPC ID: 0000019252> <Queue: Fast      >
<Client-RPC: 390620   > <USER: tourniep>

                 Exit code: 0  Value: prpigel

test1

test3

<FLTR> <TID: 0000000009> <RPC ID: 0000019252> <Queue: Fast      >
<Client-RPC: 390620   > <USER: tourniep>

               Host Name and Aliases (536870912) = prpigel

test1

test3                                                  

 

Where with Mid-tier I get :

 

 1: Set Fields

<FLTR> <TID: 0000000009> <RPC ID: 0000019329> <Queue: Fast      >
<Client-RPC: 390620   > <USER: tourniep>

                   ARRPC=390685;export ARRPC;cd $ARPROGS;./CheckNames -i
"145.245.32.217" -d "BAS" -m "" -h "prpigel^M

test1^M

test3"

<FLTR> <TID: 0000000009> <RPC ID: 0000019329> <Queue: Fast      >
<Client-RPC: 390620   > <USER: tourniep

     >                   Exit code: 0  Value: ERROR: The hostname
prpigel^M has an invalid syntax

The name should:

  - begin with a letter or a digit,

  - end with a letter or a digit,

  - and only contains letters,digits or hyphens (-)

<FLTR> <TID: 0000000009> 

 

As you can see, the problem with the mid-tier is that there is this
strange character (^M) added after each line when I sent the field value
in parameter...And as the C programm itself is supposed to check that
there is no duplicate entry eo stange character in ech name, he see this
^M so he created a error saying that the syntay is wrong....

 

Please note that this error is appearing in Internet Explorer but not on
Firefox ???

 

I tried to do a replace just before calling the c prog but this doesn't
fix the problem

 

REPLACE($Host Name and Aliases$,  "^M",  "")

 

Here the log :

 

<FLTR> <TID: 0000000009> <RPC ID: 0000019329> <Queue: Fast      >
<Client-RPC: 390620   > <USER: tourniep

     >         0: Set Fields

<FLTR> <TID: 0000000009> <RPC ID: 0000019329> <Queue: Fast      >
<Client-RPC: 390620   > <USER: tourniep

     >               Host Name and Aliases (536870912) = prpigel^M

test1^M

test3

<FLTR> <TID: 0000000009> 

 

Can someone please explain me how to get read of this ^M which creates
error on my system....

 

Thanks

Regards

Pascal

 


_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Reply via email to