Parsing error with XDP using special character & in string.
When writing an .XDP file from scratch, the following line give a parsing error at the ampersand. What command should I use to convert the ampersand to string?
The XDP line is:
<p3pName>17TH STREET BAR & GRILL</p3pName>
This is the only line that gives a problem.
Thanks
There are five characters which MUST be escaped if they appear in
regular XML text, this is a rule of XML. The characters are ampersand,
single and double quote, less than, and greater than. They can be
replaced by entities like & AMP ; (no spaces, semi-colon is part of
it). If you use an XML library it should take care of it, but home
grown XML programs and scripts should always keep this in mind.
Aandi Inston
Similar Messages
-
How Create New Folder in KM with Name having Special Character
Hi,
How to create new Folder in KM with name having special character in it.
Right now its not allowing me to create folder when i have Colon( as one of the character in name of the folder.
Is there a way to change this validate?
Any help is appriciated.
ThanksHi DK,
I'm not sure about special chars such as ":" but ifyou need to have your folders displaying special language chars (like german chars), have a look into the below link.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30deb229-d570-2910-4aaf-8858e0660f05
Hope that helps.
Ray -
Has anyone had a opf parse error with container.xml missing, when it is actually present plz ?
Has anyone had a opf parse error with container.xml missing, when it is actually present plz ?
-
Parse errors with 70_sare_obfu0.cf
I've installed various .cf rules into /etc/mail/spamassassin (correct owner:group & permissions). They all install fine into Spamassassin except 70sareobfu0.cf downloaded from here...
http://www.rulesemporium.com/rules.htm#obfu
...which produces screeds of parsing errors (total 610 'issues') reported by --lint as against 5 without that file (run as clamav user).
I've re-downloaded a couple of times but all the same. I cannot find any notes refering to compatibility issues. Can anyone confirm that this file is OK with them or same parsing errors?
Server 10.4.7, SpamAssassin version 3.0.1 running on Perl version 5.8.6.
Ta
-davidlint output... (I've ommitted repetitive bits)
===============================
debug: SpamAssassin version 3.0.1
debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting PATH
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/sbin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: Final PATH set to: /usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin
debug: diag: module not installed: DBI ('require' failed)
debug: diag: module installed: DB_File, version 1.810
debug: diag: module installed: Digest::SHA1, version 2.10
debug: diag: module installed: IO::Socket::UNIX, version 1.21
debug: diag: module installed: MIME::Base64, version 3.05
debug: diag: module not installed: Net::DNS ('require' failed)
debug: diag: module not installed: Net::LDAP ('require' failed)
debug: diag: module not installed: Razor2::Client::Agent ('require' failed)
debug: diag: module installed: Storable, version 2.13
debug: diag: module installed: URI, version 1.35
debug: ignore: using a test message to lint rules
debug: using "/etc/mail/spamassassin/init.pre" for site rules init.pre
debug: config: read file /etc/mail/spamassassin/init.pre
debug: using "//usr/share/spamassassin" for default rules dir
debug: config: read file //usr/share/spamassassin/10_misc.cf
debug: config: read file //usr/share/spamassassin/20antiratware.cf
debug: config: read file //usr/share/spamassassin/20bodytests.cf
debug: config: read file //usr/share/spamassassin/20_compensate.cf
debug: config: read file //usr/share/spamassassin/20dnsbltests.cf
debug: config: read file //usr/share/spamassassin/20_drugs.cf
debug: config: read file //usr/share/spamassassin/20fake_helotests.cf
debug: config: read file //usr/share/spamassassin/20headtests.cf
debug: config: read file //usr/share/spamassassin/20htmltests.cf
debug: config: read file //usr/share/spamassassin/20metatests.cf
debug: config: read file //usr/share/spamassassin/20_phrases.cf
debug: config: read file //usr/share/spamassassin/20_****.cf
debug: config: read file //usr/share/spamassassin/20_ratware.cf
debug: config: read file //usr/share/spamassassin/20uritests.cf
debug: config: read file //usr/share/spamassassin/23_bayes.cf
debug: config: read file //usr/share/spamassassin/25body_testses.cf
debug: config: read file //usr/share/spamassassin/25body_testspl.cf
debug: config: read file //usr/share/spamassassin/25_hashcash.cf
debug: config: read file //usr/share/spamassassin/25head_testses.cf
debug: config: read file //usr/share/spamassassin/25head_testspl.cf
debug: config: read file //usr/share/spamassassin/25_spf.cf
debug: config: read file //usr/share/spamassassin/25_uribl.cf
debug: config: read file //usr/share/spamassassin/30textde.cf
debug: config: read file //usr/share/spamassassin/30textes.cf
debug: config: read file //usr/share/spamassassin/30textfr.cf
debug: config: read file //usr/share/spamassassin/30textit.cf
debug: config: read file //usr/share/spamassassin/30textnl.cf
debug: config: read file //usr/share/spamassassin/30textpl.cf
debug: config: read file //usr/share/spamassassin/30textsk.cf
debug: config: read file //usr/share/spamassassin/50_scores.cf
debug: config: read file //usr/share/spamassassin/60_whitelist.cf
debug: using "//etc/mail/spamassassin" for site rules dir
debug: config: read file //etc/mail/spamassassin/70sareadult.cf
debug: config: read file //etc/mail/spamassassin/70saregenlsubj0.cf
debug: config: read file //etc/mail/spamassassin/70sareheader0.cf
debug: config: read file //etc/mail/spamassassin/70sareobfu0.cf
debug: config: read file //etc/mail/spamassassin/70sareoem.cf
debug: config: read file //etc/mail/spamassassin/70sarespoof.cf
debug: config: read file //etc/mail/spamassassin/70sareunsub.cf
debug: config: read file //etc/mail/spamassassin/72sare_redirectpost3.0.0.cf
debug: config: read file //etc/mail/spamassassin/88FVGTheaders.cf
debug: config: read file //etc/mail/spamassassin/88FVGTsubject.cf
debug: config: read file //etc/mail/spamassassin/88FVGTuri.cf
debug: config: read file //etc/mail/spamassassin/bogus-virus-warnings.cf
debug: config: read file //etc/mail/spamassassin/chickenpox.cf
debug: config: read file //etc/mail/spamassassin/local.cf
debug: using "/var/clamav/.spamassassin" for user state dir
debug: using "/var/clamav/.spamassassin/user_prefs" for user prefs file
debug: config: read file /var/clamav/.spamassassin/user_prefs
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x1c3b6f0) inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x1c3b6f0) inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x1c3b6f0) inhibited further callbacks
config: SpamAssassin failed to parse line, skipping: ??
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping: meta SAREOBFUALWAYS 0
config: SpamAssassin failed to parse line, skipping: meta SAREOBFUCIALIS 0
config: SpamAssassin failed to parse line, skipping: meta SAREOBFU_CREDITPOX 0
config: SpamAssassin failed to parse line, skipping: meta SAREOBFUGOALS 0
config: SpamAssassin failed to parse line, skipping: meta SAREOBFU_ORDERINGSPL 0
config: SpamAssassin failed to parse line, skipping: meta SAREOBFURELIABLE 0
config: SpamAssassin failed to parse line, skipping: meta SAREOBFURESULTING 0
config: SpamAssassin failed to parse line, skipping: meta SAREOBFUSOMA 0
config: SpamAssassin failed to parse line, skipping: meta SAREOBFUSTOCKS 0
config: SpamAssassin failed to parse line, skipping: meta SAREOBFUAFFORD 0
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping: full SAREOBFUAMP2B m'(?:(?!http://)h.?t.?t.?p.?:.?/.?/)[^/\?]{4,40}\&'is
config: SpamAssassin failed to parse line, skipping: describe SAREOBFUAMP2B invalid character within URI host/domain
config: SpamAssassin failed to parse line, skipping: score SAREOBFUAMP2B 2.555
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping: full SAREOBFUCONTENT01 /Content-Type: ;text\/plain;/
config: SpamAssassin failed to parse line, skipping: describe SAREOBFUCONTENT01 Obfuscation via content-type header
config: SpamAssassin failed to parse line, skipping: score SAREOBFUCONTENT01 2.500
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping: body SAREOBFU_DRUGDOL1SPC m{\$1\.\s$1.s+$1.s}i
config: SpamAssassin failed to parse line, skipping: describe SAREOBFU_DRUGDOL1SPC found apparent obfuscation of word used in spam
config: SpamAssassin failed to parse line, skipping: score SAREOBFU_DRUGDOL1SPC 2.333
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
config: SpamAssassin failed to parse line, skipping:
etc, etc,
lint: 614 issues detected. please rerun with debug enabled for more information.
===================================
If the obfu file is removed, it all goes fine.
-david -
Help needed with oracle text special character search
Hi all
Using oracle 11g sql developer 4.0
I am facing this challenge where Oracle text when it comes to searching text that contains special character.
This what I have done so far with help of http://www.orafaq.com/forum/t/162229/
CREATE TABLE "SOS"."COMPANY"
( "COMPANY_ID" NUMBER(10,0) NOT NULL ENABLE,
"COMPANY_NAME" VARCHAR2(50 BYTE),
"ADDRESS1" VARCHAR2(50 BYTE),
"ADDRESS2" VARCHAR2(10 BYTE),
"CITY" VARCHAR2(40 BYTE),
"STATE" VARCHAR2(20 BYTE),
"ZIP" NUMBER(5,0)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "USERS" ;
Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (1,'LSG SOLUTIONS LLC',null,null,null,null,null);
Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (2,'LOVE''S TRAVEL',null,null,null,null,null);
Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (3,'DEVON ENERGY',null,null,null,null,null);
Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (4,'SONIC INC',null,null,null,null,null);
Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (5,'MSCI',null,null,null,null,null);
Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (6,'ERNEST AND YOUNG',null,null,null,null,null);
Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (7,'JOHN DEER',null,null,null,null,null);
Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (8,'Properties@Oklahoma, LLC',null,null,null,null,null);
Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (9,'D.D.T L.L.C.',null,null,null,null,null);
BEGIN
CTX_DDL.CREATE_PREFERENCE ('your_lexer', 'BASIC_LEXER');
CTX_DDL.SET_ATTRIBUTE ('your_lexer', 'SKIPJOINS', '.,@-'''); -- to skip . , @ - ' symbols
END;
CREATE INDEX my_index2 ON COMPANY(COMPANY_NAME)
INDEXTYPE IS CTXSYS.CONTEXT PARALLEL
PARAMETERS ('LEXER your_lexer');
SELECT
company_name
FROM company
WHERE CATSEARCH(company.COMPANY_NAME, 'LLC','') > 0
ORDER BY company.COMPANY_ID;
output
company_name
1 LSG SOLUTIONS LLC
2 Properties@Oklahoma, LLC
only return 2 row but should return 3I just noticed that I forgot to use an empty stoplist, so I have added that to the revised example below. Otherwise, it uses a default stoplist that would not index common single-letter words like A and I.
1. Whtat is Just search on single character 'L'? It give me error.
Since it uses the NEAR operator, searching for just one letter causes incomplete syntax, asking it to search for L near a missing second value. So, I have added additional code to allow for just one letter.
2. How do I do auto refresh on this index on datastore?
If I add "sync (on commit)" it does not refresh the previously set token.
Sync(on commit) does synchronize so that the data is immediately searchable. You have to either optimize or rebuild or drop and recreate the index to condense the rows in the domain index table.
3.lastly explanation of
<seq>NEAR((' || letters_func (:search_string) || '),1,TRUE)</seq>
<seq>NEAR((' || letters_func (:search_string) || '),100,TRUE)</seq>
<seq>NEAR((' || letters_func (:search_string) || '),100,FALSE)</seq>
why 100 true and 100 false
100 is just a default value that I used for the second parameter of near, indicating how close the letters need to be to each other. True and False are values for the third parameter of near, indicating whether or not the letters must be in the same order or not. So, it returns the results in the order of first those that are very close to one another and in the same order, then those that may be further away but in the same order, then those that may be further away and in any order.
SCOTT@orcl12c> CREATE TABLE company_near
2 (company_id NUMBER(10,0) NOT NULL ENABLE,
3 company_name VARCHAR2(50 BYTE))
4 /
Table created.
SCOTT@orcl12c> SET DEFINE OFF
SCOTT@orcl12c> BEGIN
2 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (1,'LSG SOLUTIONS LLC');
3 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (2,'LOVE''S TRAVEL');
4 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (3,'DEVON ENERGY');
5 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (4,'SONIC INC');
6 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (5,'MSCI');
7 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (6,'ERNEST AND YOUNG');
8 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (7,'JOHN DEER');
9 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (8,'Properties@Oklahoma, LLC');
10 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (9,'D.D.T L.L.C.');
11 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (10,'LSG COMPANY, LLC');
12 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (11,'LSG STAFFING, LLC');
13 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (12,'L & S GROUP LLC');
14 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (13,'L S & G, INC.');
15 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (14,'L.S.G. PROPERTIES, L.L.C.');
16 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (15,'LSGS PROPERTIES, LLC');
17 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (16,'LSQ INVESTORS, L.L.C');
18 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (17,'LHP SHERMAN/GRAYSON, LLC');
19 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (18,'Walmart');
20 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (19,'Wal mart');
21 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (20,'LSG Property Investments, L.L.C.');
22 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (21,'1224 S GALVESTON AVE, LLC');
23 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (22,'1527 S GARY AVE, LLC');
24 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (23,'FIFTEENTH STREET GRILL');
25 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (24,'Massa Lobortis LLP');
26 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (25,'Risus A Inc.');
27 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (26,'Dollar $ store');
28 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (27,'L.O.V.E., INC. ');
29 Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (28,'J-MART LLC ');
30 END;
31 /
PL/SQL procedure successfully completed.
SCOTT@orcl12c> CREATE OR REPLACE FUNCTION letters_func
2 (p_string IN VARCHAR2)
3 RETURN VARCHAR2
4 AS
5 v_string VARCHAR2(4000);
6 BEGIN
7 FOR i IN 1 .. LENGTH (p_string)
8 LOOP
9 IF REGEXP_LIKE (SUBSTR (p_string, i, 1), '[A-Z]', 'i')
10 THEN
11 v_string := v_string || SUBSTR (p_string, i, 1) || ',';
12 END IF;
13 END LOOP;
14 v_string := RTRIM (v_string, ',');
15 RETURN v_string;
16 END letters_func;
17 /
Function created.
SCOTT@orcl12c> BEGIN
2 CTX_DDL.CREATE_PREFERENCE ('letters_datastore', 'MULTI_COLUMN_DATASTORE');
3 CTX_DDL.SET_ATTRIBUTE
4 ('letters_datastore',
5 'COLUMNS',
6 'letters_func (company_name) company_name');
7 CTX_DDL.SET_ATTRIBUTE ('letters_datastore', 'DELIMITER', 'NEWLINE');
8 END;
9 /
PL/SQL procedure successfully completed.
SCOTT@orcl12c> CREATE INDEX letters_index ON company_near (company_name)
2 INDEXTYPE IS CTXSYS.CONTEXT
3 PARAMETERS
4 ('DATASTORE letters_datastore
5 STOPLIST CTXSYS.EMPTY_STOPLIST
6 SYNC (ON COMMIT)')
7 /
Index created.
SCOTT@orcl12c> SELECT COUNT(*) FROM dr$letters_index$i
2 /
COUNT(*)
24
1 row selected.
SCOTT@orcl12c> VARIABLE search_string VARCHAR2(100)
SCOTT@orcl12c> EXEC :search_string := 'LSG'
PL/SQL procedure successfully completed.
SCOTT@orcl12c> SELECT SCORE(1), company_id, company_name
2 FROM company_near
3 WHERE CONTAINS
4 (company_name,
5 '<query>
6 <textquery>
7 <progression>
8 <seq>' || :search_string || '</seq>
9 <seq>NEAR((' || letters_func (:search_string) || '),1,TRUE)</seq>
10 <seq>NEAR((' || letters_func (:search_string) || '),100,TRUE)</seq>
11 <seq>NEAR((' || letters_func (:search_string) || '),100,FALSE)</seq>
12 </progression>
13 </textquery>
14 </query>',
15 1) > 0
16 ORDER BY SCORE(1) DESC
17 /
SCORE(1) COMPANY_ID COMPANY_NAME
56 1 LSG SOLUTIONS LLC
56 10 LSG COMPANY, LLC
56 11 LSG STAFFING, LLC
56 12 L & S GROUP LLC
56 13 L S & G, INC.
56 14 L.S.G. PROPERTIES, L.L.C.
56 20 LSG Property Investments, L.L.C.
56 15 LSGS PROPERTIES, LLC
31 17 LHP SHERMAN/GRAYSON, LLC
8 21 1224 S GALVESTON AVE, LLC
4 22 1527 S GARY AVE, LLC
4 23 FIFTEENTH STREET GRILL
12 rows selected.
SCOTT@orcl12c> EXEC :search_string := 'L'
PL/SQL procedure successfully completed.
SCOTT@orcl12c> /
SCORE(1) COMPANY_ID COMPANY_NAME
78 1 LSG SOLUTIONS LLC
77 8 Properties@Oklahoma, LLC
77 9 D.D.T L.L.C.
77 10 LSG COMPANY, LLC
77 11 LSG STAFFING, LLC
77 12 L & S GROUP LLC
77 28 J-MART LLC
77 2 LOVE'S TRAVEL
77 26 Dollar $ store
77 24 Massa Lobortis LLP
77 23 FIFTEENTH STREET GRILL
77 14 L.S.G. PROPERTIES, L.L.C.
77 15 LSGS PROPERTIES, LLC
77 16 LSQ INVESTORS, L.L.C
77 17 LHP SHERMAN/GRAYSON, LLC
77 20 LSG Property Investments, L.L.C.
77 21 1224 S GALVESTON AVE, LLC
77 22 1527 S GARY AVE, LLC
76 19 Wal mart
76 18 Walmart
76 27 L.O.V.E., INC.
76 13 L S & G, INC.
22 rows selected.
SCOTT@orcl12c> INSERT INTO company_near (company_id, company_name) VALUES (30, 'Laris Gordman llc.' )
2 /
1 row created.
SCOTT@orcl12c> COMMIT
2 /
Commit complete.
SCOTT@orcl12c> SELECT COUNT(*) FROM dr$letters_index$i
2 /
COUNT(*)
35
1 row selected.
SCOTT@orcl12c> EXEC :search_string := 'Laris Gordman llc.'
PL/SQL procedure successfully completed.
SCOTT@orcl12c> SELECT SCORE(1), company_id, company_name
2 FROM company_near
3 WHERE CONTAINS
4 (company_name,
5 '<query>
6 <textquery>
7 <progression>
8 <seq>NEAR((' || letters_func (:search_string) || '),1,TRUE)</seq>
9 <seq>NEAR((' || letters_func (:search_string) || '),100,TRUE)</seq>
10 <seq>NEAR((' || letters_func (:search_string) || '),100,FALSE)</seq>
11 </progression>
12 </textquery>
13 </query>',
14 1) > 0
15 ORDER BY SCORE(1) DESC
16 /
SCORE(1) COMPANY_ID COMPANY_NAME
100 30 Laris Gordman llc.
1 row selected.
SCOTT@orcl12c> EXEC CTX_DDL.OPTIMIZE_INDEX ('letters_index', 'FULL')
PL/SQL procedure successfully completed.
SCOTT@orcl12c> SELECT COUNT(*) FROM dr$letters_index$i
2 /
COUNT(*)
24
1 row selected. -
Change Password with changePasswordForSelf and Special character
Hi,
I was trying to use the OIM (9.1.1.0) API to change the password using:
userIntf.changePasswordForSelf(oldPassword, newPassword, confirmNewPassword);
This works when I use some standard password.
The issue appears when I try to enter certain special character: e.g: < or >
The error returned is :
<Error (class Thor.API.Exceptions.IllegalInputException): Thor.API.Exceptions.IllegalInputException>
Exception is: Thor.API.Exceptions.IllegalInputException
I reckon this is done to prevent injections.
I didn't see any restriction in any of Oracle documentation and was wondering if you can help me understanding:
- if you have observed the same issues before
- which character are affected by this
- if there is a work around to allow these character
Thank you.That's because the special characters you are using are the scripting tags and it confuses itself with the OIM scripting process, for instance JSP's etc.
So I would recommend not to do it and have your policies in place which restricts end-user to have a password with such special characters. I did not tried that but you can possibly do that. -
Why do I get parsing errors with my WSDL URL for Web Services usage
Hi,
I am puzzled with the errors I get when I want to create a Web Service datastore.
Scenario: I have created a SAP Web Service from CRM using SOAMANAGER. The WSDL URL produced by SOAMANAGER is accessibile when pasting the URL directly in Internet Explorer. WSDL URL [http://UXCIQ0M.WDF.SAP.CORP:50076/sap/bc/srt/wsdl/srvc_CBDCB34C89C29304E10000000A4282C0/wsdl11/allinone/ws_policy/document?sap-client=504]
When using the WSDL URL in the Web Service datastore URL field, I get the error An error occurred while importing metadata: WSDLException; faultcode=PARSER_ERROR: Problem parsing: The element type "br" must be terminated by matching tag "/br". (BODI-1111469) (BODI-1112446)
When I save the WSDL defintion in a local file and use a local file path, I get the errors An error occurred while importing metadata: WSDLException (at /wsdl:definitions/wsdl:portype/wsp:Policy): faultcode=INVALID_WSDL: Encountered unexpected element 'Policy. (BODI-1111469) (BODI-1112446)
My questions:
- Why do I get different parsing errors despite the fact that the XML is the same?
- The WSDL is generated by SOAMANAGER. Shouldn't it work directly when integrating with Web Services generated from an SAP environment?
- Is this related to confiurgation issue? I have set the Job Manager to Support adapter, message broker and SNMP communication
- What is the difference between the datastore of type Adapter and the datastore Web Service? In the white paper [http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/20bd5e60-11f9-2b10-2bbb-b5109cceff08?quicklink=index&overridelayout=true] it is mentioned to use the Adapter type to consume a Web Service. It is not clear to me why we have those 2 types.
Thanks & Best Regards
IsabelleSome updates on this issue, which might help others in the community.
- Data Service doesn't support ws_policy.
- SAP NetWeaver 7.0 SOAMANAGER generate WDSL with ws_policy. In future releases, it is possible to specify not to use ws_policy
- In most cases, replacing ws_policy with standard in the URL directly, works. It doesn't work with Data Services :(.
- Replacing ALL ws_policy in the XML directly is currently the only way to have the WSDL definition being parsed properly by Data Services. -
Hi,
I tried to build a custome web gallery into LR 4.3 on MAC.
I started with example from LR SDK zip.
In my index.html sample file, i simply declare some variables at the top like this:
<%--[[ Define some variables to make locating other resources easier firstPage was defined in our manifest.]] local others = "content" local theRoot = "." local mySize = "large" local firstImage local title local caption local width local height local LrLogger = import 'LrLogger' local myLogger = LrLogger( 'libraryLogger' ) myLogger:enable('print') local debug, info, warn, err = myLogger:quick( 'debug', 'info', 'warn', 'err' ) %>
After, inside a script tag, i would like to print into index.html outputed file a json file with images name.
Before that i simply tried to print a test string, and i got in Console app this message : SyntaxError: Parse error
Where am i wrong ?
Thanks
RegardsHi , Welcome to the HP Forums! I see that you are getting a printhead error with your HP Officejet 6830. I am happy to help! I would recommend to go through the steps within this guide, 'Problem with Printhead,' 'Printer Failure,' 'Ink System Failure,' or a '0x...' or a 'C2...' Error Message Displays. You will also want to make sure you are using Genuine HP Ink Cartridges, and that none of your Ink Cartridges are low or empty. Hope this guide helps! “Please click the Thumbs up icon below to thank me for responding.”
-
InfoPath 2010 form parsing error with 3600 execution timeout value in SharePoint 2010
Hi,
I have a list in SharePoint 2010 with 100 columns where 25 of them are calculated columns. This list is designed by InfoPath 2010 with two secondary data connections to pull a few data from another two lists. There are 25 set value rules with the submit
button in InfoPath from. At present, the list is containing around 1000 items.
The problem is, when I published the InfoPath form it throws an error:
The SOAP message cannot be parsed.
In fact, the execution timeout is set to 3600 in config file. When I delete items from the list and keep it around 700 the InfoPath form publish then.
Could somebody tell me why this problem and what is the possible solution.
Thanks in advance.Hi pointtoshare,
According to your description, my understanding is that you got an error when you published InfoPath form.
Please modify the web.config file like :
<location path="_layouts/UploadEx.aspx">
<system.web>
<httpRuntime maxRequestLength="51200" executionTimeout="300" />
</system.web>
</location>
And modify the <securityPolicy> section like :
The web.config file is in C:\inetpub\wwwroot\wss\VirtualDirectories\spwebappname.
There is another reason for this issue, please take a look at :
http://www.heyweb.net/2011/07/infopath-the-soap-message-cannot-be-parsed/
Here are some similar posts for you to take a look at:
http://social.technet.microsoft.com/Forums/en-US/ea8da113-fe9a-4878-9994-c1f24cc85c37/soap-error-when-publishing-infopath-form-to-sharepoint?forum=sharepointcustomizationprevious
http://sharepointshah.blogspot.in/2012/11/soap-message-cannot-be-parsed-error.html
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Can't use special character "ç" in airport password
Hi,
I'm trying to connect to a wireless network, whose password contains the character "ç". For some reason airport won't let me input that character, but all others are fine. I've tried edit => insert special character, I've tried to copy / paste but nothing works. Does anyone have a solution??
ThanksHi Jon, and a warm welcome to the forums!
This is far fetched, but I wonder if it has anything to do with this strange "feature"...
http://docs.info.apple.com/article.html?artnum=107666
You've already tried all but one thing I yhink, can you edit it/paste it into Keychain Access? -
[OIM] Cannot use special character in User Group Name
Dear IdM expert,
I have problem creating user group in OIM if user group name contain special character like '&', '<' or '+'.
I read Note 430081.1 : Can a Field Label in an Object Form Contain Special Characters? and change <AppFirewall><SecurityLevel> in xlconfig.xml to 0, (by default SecurityLevel is set to 1). But still no luck.
Could anyone find way to do this? Thank you.
Best Regards,
SatitI don't think the app fire wall applies to recon events so that is probably how they got in.
You may have to update the database tables directly to solve this. Should not be a big issue as you aren't messing with any table primary keys.
Best regards
/Martin -
Parse error with show if region
hi,
i have a form, which has 2 parts to it.
i added a checkbox and set the checked value to 1
i wrapped the rest of the form in a div and applied show if region to it.
when i uploaded to the web i receive this error:
Parse error: syntax error, unexpected '@', expecting T_VARIABLE or '$'
has anyone seen this before and know how to fix?
many thanks for your helpThanks again albert, i think i see what my problem is.
i tried your code but it did not work first time, but i noticed i was applying it to a div inside a table and as soon as i took that part out a table and into a new table but the table within the div it worked great so thanks for that.
got one problem which is on a different matter.
i applied send email from the server behaviours with addt, however it generates this line of code at the start and it does not like it:
@@UrlFormat@@('@@ConnectionPath@@');
any ideas how to fix this?
many thanks -
How to detect any special character ina string?
Hi!
I'm having a problem with a string. Basically the string is an output of some function and that may contains some special character which is not shown in the string - for example - chr(10)/chr(13) etc.
Is there any method or procedure that can detect all the special character inside that string and remove them all other than all the characters and digitis which is in form of character? I'm using oracle 9i.
Thanks in advance for your reply.
Regards.
Satyaki De.I've tried your solution - but i don't think it is working --
satyaki>ed
Wrote file afiedt.buf
1 create or replace function extract_printable(vc varchar2)
2 return varchar2
3 is
4 c_non_printable varchar2(33)
5 := chr(00)||chr(01)||chr(02)||chr(03)||chr(04)||chr(05)||chr(06)||chr(07)||chr(08)||chr(09)
6 || chr(10)||chr(11)||chr(12)||chr(13)||chr(14)||chr(15)||chr(16)||chr(17)||chr(18)||chr(19)
7 || chr(20)||chr(21)||chr(22)||chr(23)||chr(24)||chr(25)||chr(26)||chr(27)||chr(28)||chr(29)
8 || chr(30)||chr(31)||chr(127);
9 begin
10 return(translate(vc,'a'||c_non_printable,'a'));
11* end;
satyaki>/
Function created.
satyaki>
satyaki>select length(extract_printable('this is ')) src
2 from dual;
SRC
15
satyaki>But, thanks for your reply.
Regards.
Satyaki De. -
Parsing errors with CDATA tags using oracle xml parser v2
I'm using the oracle.xml.parser.v2 parser to combine a
generated xml document from a database with a static
xsl file to produce html. Within the xml document, there
are fairly large CDATA sections (500 lines) which happen
to contain javaScript.
Occasionally, I'm getting xml tags in the final html
document! It seems that the oracle parser pukes
on a certain type of data within a CDATA tag, and then
replaces an angle bracket (<) of a tag with a #60. This
can cause html tags being viewed in the document. At
first, I thought the amount of JavaScript within the
CDATA tag was too large for the parser to handle,
because when I split it up into 2 or more parts the errors
went away. But, re-arranging the JavaScript (String in the CDATA tag)
can make the errors disappear. And, if I
use the Saxon parser to manually combine the xsl with
the xml, the output is fine. If anyone knows that this is
a confirmed bug by Oracle, or any other relevant info on
this, please let me know.Hi,
Your lucky, i've just finished a project that used the oracle parser extensively.
I think the problem may stem from your xsl. Although your cdata tags may be well formed, in the xsl you might need to escape the text again, this may mean that the xsl needs to print a further cdata tag around the data. This is because the parser (well the version I was using) strips the cdata tags before the transformation happens.
This is the probably the cause of the nasty html output. -
SecurityError: Error #2048 when using special characters in request url
Hi all,
I'm facing a really strange problem with requesting address data from a in-house developed address webservice that can be accessed using a HTTPS connection.
The problem is that I get the following error when a request has been made with special characters in the url:
SecurityError: Error #2048: Security sandbox violation: http://www.foo.com/myapp.swf cannot load data from
https://www.bar.com/myservice.svc/Aleja Legionów ul., BYTOM.
The url is encoded using encodeURIComponent. Fiddler show's a correctly encoded url:
https://www.bar.com/myservice.svc/address/Aleja%20Legion%C3%B3w%20ul.%2C%20BYTOM
The server send a normal response back.
The weird thing is that this only happens on FireFox with special characters in the url. With normal characters, it works fine.
On IE everything works fine..
crossdomain.xml of the www.foo.com:
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
<allow-access-from domain="*" headers="*" secure="false"/>
</cross-domain-policy>
Any help is appreciated.
Best regards,
Sjoerd BrandsmaYou could try downloading the Oracle 8.1.7 client and the latest
Oracle8 ODBC driver, install them on your machine, and verify
that the failure goes away. That's obviously the acid test.
I can tell you that when I worked in the ODBC driver group we
did identify and fix some bugs where our parser wasn't skipping
string literals. If this particular bug wasn't fixed earlier,
it almost certainly was then (I'm guessing that work was done 12-
18 months ago).
Justin
Maybe you are looking for
-
To Whom It May Concern: I bought a Mastercard Giftcard for $50 the other day. It was only because the games needed updating before I could play them again, and my card on file had expired. I kept getting a message stating the the card was declined. A
-
EJB Service , 11g, Error on deployment.
I am trying to use EJB adapter in my SOA Composite. I used Eclipselink's sdo-compiler to generate the SDO from a schema definition, and then imported them to the project. The approach to be followed is given in this link [http://download.oracle.com/d
-
Direct URL Working In IE but not with New Domain
Hey Guys Something very weird here. This music player for www.arikecansing.com works in Mozilla but not IE. The site is being hosted here www.tahnaiya.com/clients/arike and that link works in IE but not under the other domain www.arikecansing.com Wei
-
How can I get my numbers on iphone
Mt numbers aren't on outlook, they're just on my phone. What can I do to get these numbers on my iphone.
-
Out Of Memory Error when running multiple tasks
Hey All, I am currently running DASYLab 13.0 with the latest version of NI MAX (14.0.1f1). The hardware that I have is the cDAQ-9188. I am attempting to read psi, temperature, and flow; each has a seperate task set up in MAX. The reason I did this wa