jaxen

Lengthier expressions are getting truncated while creating DOMXPath object.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Not A Bug
  • Affects Version/s: 1.1
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Windows-xp SP2
  • Number of attachments :
    0

Description

When we try to call new DOMXPath(expression) we are getting th following exception.

org.jaxen.XPathSyntaxException: Expected: )

the expression we are trying is :
---------------------------------------------------
contains($FinResp, "NS_Payables_Associate") or
contains($FinResp, "NS_Payables_Manager") or
contains($FinResp, "NS_Payment_Processing") or
contains($FinResp, "NS_Vendor_Maintenance") or
contains($FinResp, "NS_IB_Receivables_Manager") or
contains($FinResp, "NS_IB_Receivables_User") or
contains($FinResp, "NS_Receivables_Manager") or
contains($FinResp, "NS_Receivables_User") or
contains($FinResp, "NS_Cash_Management_User") or
contains($FinResp, "NS_Cost_Management") or
contains($FinResp, "NS_Fixed_Assets_Manager") or
contains($FinResp, "NS_Fixed_Asset_User") or
contains($FinResp, "NS_General_Ledger_Inquiry") or
contains($FinResp, "NS_General_Ledger_User") or
contains($FinResp, "NS_General_Ledger_Supervisor") or
contains($FinResp, "NS_IB_General_Ledger_User") or
contains($FinResp, "NS_IB_Oracle_Web_ADI") or
contains($FinResp, "NS_Oracle_Web_ADI") or
contains($FinResp, "NS_CRM_Resource_Manager") or
contains($FinResp, "NS_Distributor_Manager") or
contains($FinResp, "NS_OIC_User") or
contains($FinResp, " NS_Operations_Buyer") or
contains($FinResp, "NS_Purchasing_Buyer") or
contains($FinResp, "NS_Vendor_Maintenance") or
contains($InvResp, "NS_Inventory_Super_User"SL_Payables_Associate") or
contains($FinResp, "SL_Payables_Manager") or
contains($FinResp, "SL_Payables_Super_User") or
contains($FinResp, "SL_Payment_Processing") or
contains($FinResp, "SL_Vendor_Maintenance") or
contains($InvResp, "SL_Inventory_Super_User") or
contains($FinResp, "") or
contains($FinResp, "SL_Receivables_Supervisor") or
contains($FinResp, "SL_Receivables_User") or
contains($FinResp, "NS_Cost_Management_Inquiry") or
contains($FinResp, "SL_Fixed_Asset_User") or
contains($FinResp, "SL_Fixed_Assets_Manager") or
contains($FinResp, "SL_General_Ledger_Inquiry") or
contains($FinResp, "SL_General_Ledger_Supervisor") or
contains($FinResp, "SL_General_Ledger_User") or
contains($FinResp, "SL_Oracle_Web_ADI") or
contains($FinResp, "SL_Buyer") or
contains($FinResp, "SL_Purchasing_Inquiry") or
contains($FinResp, "SL_Payables_Manager") or
contains($FinResp, "SL_Payables_Super_User") or
contains($FinResp, "SL_Payment_Processing") or
contains($FinResp, "SL_Vendor_Maintenance") or
contains($InvResp, "SL_Inventory_Super_User") or
contains($FinResp, "") or
contains($FinResp, "SL_Receivables_Supervisor") or
contains($FinResp, "SL_Receivables_User") or
contains($FinResp, "NS_Cost_Management_Inquiry") or
contains($FinResp, "SL_Fixed_Asset_User") or
contains($FinResp, "SL_Fixed_Assets_Manager") or
contains($FinResp, "SL_General_Ledger_Inquiry") or
contains($FinResp, "SL_General_Ledger_Supervisor") or
contains($FinResp, "SL_General_Ledger_User") or
contains($FinResp, "SL_Oracle_Web_ADI") or
contains($FinResp, "SL_Buyer") or
contains($FinResp, "SL_Purchasing_Inquiry")

---------------------------------------------------

and it seems it is truncated.

Thankjs,
Subba Reddy

Activity

Hide
KALLURI V SUBBA REDDY added a comment - - edited

We are currently using jaxen1.1-beta-8 but the issue is reproducible with Jaxen1.1.1 latest jars as well.

The same expression works fine with Jaxen1.0FCS version as well as with the jaxen that is included in dom4j-full.jar version 1.3.

Any help will be appreciated.

Thanks,
Subba Reddy.

Show
KALLURI V SUBBA REDDY added a comment - - edited We are currently using jaxen1.1-beta-8 but the issue is reproducible with Jaxen1.1.1 latest jars as well. The same expression works fine with Jaxen1.0FCS version as well as with the jaxen that is included in dom4j-full.jar version 1.3. Any help will be appreciated. Thanks, Subba Reddy.
Hide
Elliotte Rusty Harold added a comment -

Weird. I'll try to look into this. I doubt it will make a difference but 1.1.2 is the latest version.

Also, have you been able to use this expression with any other XPath engine? I don't see a missing right parenthesis in your expression, but it's so long it's hard to eyeball.

Thanks for the report.

Show
Elliotte Rusty Harold added a comment - Weird. I'll try to look into this. I doubt it will make a difference but 1.1.2 is the latest version. Also, have you been able to use this expression with any other XPath engine? I don't see a missing right parenthesis in your expression, but it's so long it's hard to eyeball. Thanks for the report.
Hide
Elliotte Rusty Harold added a comment -

There is a syntax error in your XPath expression in the line

contains($InvResp, "NS_Inventory_Super_User"SL_Payables_Associate") or

You have an extra quotation mark there.

Show
Elliotte Rusty Harold added a comment - There is a syntax error in your XPath expression in the line contains($InvResp, "NS_Inventory_Super_User"SL_Payables_Associate") or You have an extra quotation mark there.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: