Ticket #142 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

EXCEPTION in TextFindField: basic_string::substr

Reported by: BQOeNRCCW Owned by: jls17
Priority: minor Milestone: 3.1.2
Version: 3.1.1 Keywords:
Cc: Blocked By:
Blocking:

Description

Hi,

I get an exception with this escalation. I cannot explain why it happens. The del_AR_EMAIL.htm looks good.
Can you see anything wrong in the def-file?

OS: Solaris 5.10
AR Server: 7.6.04 SP5 201308012025 (happened also with 7.5.00 Patch 006 201007180200)

I had already noticed it with version 3.0.3 but 3.1.1 still has it.

verbose log:

Escalation [xx-xx] 'del_AR_EMAIL': EXCEPTION in TextFindField: basic_string::substr
Save file '/arinside/escalation/del_AR_EMAIL.htm' [OK]

def-file:

char-set: UTF-8
#
#  File exported Thu Sep 19 12:28:29 2014
#
begin escalation
   name           : del_AR_EMAIL
   timestamp      : 1315816401
   owner          : user
   last-changed   : user
   enable         : 1
   escl-tmType    : 2
   export-version : 11
   escl-monthday  : -1
   escl-weekday   : 0
   escl-hourmask  : 4194304
   escl-minute    : 0
   wk-conn-type   : 1
   schema-name    : AR System Email Messages
   escl-query     : 4\1\1\18085\2\4\12\AR_ESCALATOR\
   action {
      command     : Application-Delete-Entry $Request-ID$
   }
end

Change History

comment:1 Changed 3 years ago by jls17

  • Owner set to jls17
  • Status changed from new to accepted
  • Milestone set to 3.1.2

Thanks for reporting. I'll fix the issue soon.

Can you see anything wrong in the def-file?

Yes, the action of the escalation is wrong. This escalation can't do anything and if the escalation is executed, you should see errors in the arerror.log (at least if there are entries matching the escalation runif).

There are two problems:
1) the Application-Delete-Entry function needs two parameters: <schema-name> <entry-id>
2) The value "$Request-ID$" is passed as the schema name. I assume there is no such form on your server. But even if it is passed as the second parameter, it won't work, because you'll have no record with a entry id of "$Request-ID$" (it's quoted, because this is used as a normal string value). The correct syntax in the def file uses the field id, so you should see something like this:

   action {
      command     : Application-Delete-Entry "$-5$" $1$
   }

You should definitely check, why nobody noticed this escalation isn't working and decide afterwards how to fix this!

Last edited 3 years ago by jls17 (previous) (diff)

comment:2 Changed 3 years ago by BQOeNRCCW

You're totally right - thank you. :)

comment:3 Changed 3 years ago by jls17

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.