Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mlcp Export not working with < cts query #80

Open
rajessh-m opened this issue May 30, 2018 · 5 comments
Open

Mlcp Export not working with < cts query #80

rajessh-m opened this issue May 30, 2018 · 5 comments
Assignees
Milestone

Comments

@rajessh-m
Copy link

Hi when i try to do a export using <= i am getting the following error . Iam storing the cts:andquery in a file Error
18/05/30 12:59:08 ERROR contentpump.LocalJobRunner: Error getting input splits:
18/05/30 12:59:08 ERROR contentpump.LocalJobRunner: com.marklogic.xcc.exceptions.XQueryException: XDMP-DOCATTRVALCHAR: xdmp:unquote("<cts:and-query xmlns:cts="http://marklogic.com/cts&quot;><c...") -- Invalid attribute value character "<" or missing close quote at line 1

sample query :</cts:and-query>
<cts:element-range-query operator="&lt;=">
<cts:element xmlns:sss=ns">sss:somevfiled</cts:element>
<cts:value xsi:type="xs:date" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">value</cts:value>
</cts:element-range-query>
</cts:and-query>

@jxchen-us
Copy link
Contributor

Do you have the mlcp command for us to reproduce the problem?

@rajessh-m
Copy link
Author

This is the mlcp command . Any queryfilter with < symbol u will be able to reproduce
mlcp.sh export -conf "ssl-configfile"
-options_file queryfilter.txt
-host $xcc_host -port $xcc_port -username $user_id -password $password
-mode local
-thread_count $THREAD_COUNT
-output_file_path $output_file_path
-copy_metadata "false"
-copy_permissions "false"

@jxchen-us
Copy link
Contributor

Thanks for providing the mlcp command. Apparently it is not self-contained. Can you provide ssl-configfile and queryfilter.txt in order for us to investigate?

@rajessh-m
Copy link
Author

Hey it may cause security issue for me .. the ssl-cofig file has the details for ssl authentication .. we can remove that parameter if ssl is not enabled in your local and for the query anything with < is going to cretat that issue . the skeleton of the query is as follows
<cts:and-query xmlns:cts="http://marklogic.com/cts">
<cts:element-range-query operator="=">
cts:elementdocument-type</cts:element>
<cts:value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">tsm</cts:value>
cts:optioncollation=http://marklogic.com/collation/codepoint</cts:option>
</cts:element-range-query>
<cts:element-range-query operator="=">
cts:elementtype</cts:element>
<cts:value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">test</cts:value>
cts:optioncollation=http://marklogic.com/collation/codepoint</cts:option>
</cts:element-range-query>
<cts:element-range-query operator="&lt;=">
<cts:element xmlns:clm="">clm:indexname</cts:element>
<cts:value xsi:type="xs:date" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">2017-03-30-04:00</cts:value>
</cts:element-range-query>
<cts:element-range-query operator="=">
cts:elementsystem-end-date</cts:element>
<cts:value xsi:type="xs:dateTime" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">2018-01-01T00:00:00</cts:value>
</cts:element-range-query>
<cts:element-range-query operator="&gt;">
cts:elementsystem-start-date</cts:element>
<cts:value xsi:type="xs:dateTime" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">2018-01-01T00:00:00</cts:value>
</cts:element-range-query>
</cts:and-query>

@jxchen-us
Copy link
Contributor

Right, it doesn't have to be exactly what you have. We just need a self-contained test case in order to investigate.

@jxchen-us jxchen-us self-assigned this Jun 1, 2018
@jxchen-us jxchen-us assigned sravanr and unassigned jxchen-us Jun 6, 2018
@jxchen-us jxchen-us added this to the 9.0.6 milestone Jun 6, 2018
@mattsunsjf mattsunsjf assigned yunzvanessa and unassigned sravanr Mar 22, 2019
@mattsunsjf mattsunsjf modified the milestones: 9.0.6, 10.0.2 Mar 22, 2019
@yunzvanessa yunzvanessa modified the milestones: 10.0.2, 10.0.3 Aug 24, 2019
@yunzvanessa yunzvanessa modified the milestones: 10.0.3, 11.0.1 Sep 18, 2019
@abika5 abika5 modified the milestones: 11.1.0, 11.2.0 Jan 3, 2024
@abika5 abika5 modified the milestones: 11.3.0, 11.4.0 Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants