History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-4568
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: P2 P2
Assignee: Unassigned
Reporter: Mamye Kratt
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

DHTML: xpath.lzx gets error

Created: 23/Aug/07 02:23 PM   Updated: 26/Dec/08 02:18 PM
Component/s: LFC - Data
Affects Version/s: 4.0.5WaffleCone
Fix Version/s: 4.2.1

Time Tracking:
Not Specified

Environment: XP, FF

Severity: Minor
Fixed in Change#: 12,241
Fixed in branch: trunk
Runtime: SWF9, DHTML
Fix in hand: False


 Description  « Hide
(wafflecone branch local build r6194)
Run:
test/lfc/data/xpath.lzx?lzbacktrace=false&lzr=dhtml
Gets error:
ERROR: http://127.0.0.1:8080/wafflecone/lps/includes/lfc/LFCdhtml-debug.js:12501: this.context.__LZgetPosition is not a function

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Amy Muntz - 24/Aug/07 11:18 AM
Assigning this to wafflecone because I'm assuming the error is a regression. Mamye - if it isn't a regression please move to 4.1.

André Bargull - 26/Dec/08 04:57 AM
I got this error in swf9:
---
TypeError: Error #1006: value is not a Function.
at LzNode/__LZapplyArgs()[LzNode.as:640]
at LzNode()[LzNode.as:195]
at LzView()[LzView.as:7]
at $lzc$class_DebugObject()[$lzc$class_DebugObject.as:127]
at $lzc$class_Test()[$lzc$class_Test.as:260]
at $lzc$class_TestSuite()[$lzc$class_TestSuite.as:206]
at LzNode/makeChild()[LzNode.as:832]
at LzInstantiatorService/makeSomeViews()[LzInstantiatorService.as:202]
at LzInstantiatorService/checkQ()[LzInstantiatorService.as:152]
at Function/http://adobe.com/AS3/2006/builtin::call()
at LzEvent/sendEvent()[LzEvent.as:92]
at LzIdleService/__idleupdate()[LzIdleService.as:53]
at LzIdleKernel$/__update()[LzIdleKernel.as:27]
---

André Bargull - 26/Dec/08 08:48 AM
The swf9 error is caused by a local change..

André Bargull - 26/Dec/08 12:02 PM
Expected:
- last() and position() should return 1

Actual:
- TypeError is thrown by runtime


simpler testcase:
---
<canvas debug="true" >
  <dataset name="ds" >
    <item />
  </dataset>
  <handler name="oninit" >
    var dp = new lz.datapointer();
    dp.setPointer(ds.getFirstChild());
    try {
      Debug.write("position() = %w", dp.xpathQuery("position()"));
    } catch (e) {
      Debug.error(e);
    }
    try {
      Debug.write("last() = %w", dp.xpathQuery("last()"));
    } catch (e) {
      Debug.error(e);
    }
  </handler>
</canvas>
---

André Bargull - 26/Dec/08 02:18 PM
------------------------------------------------------------------------
r12241 | bargull | 2008-12-26 23:17:54 +0100 (Fri, 26. Dec 2008) | 26 lines
Ge?\195?\164nderte Pfade:
   M /openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDatapointer.lzs

Change 20081226-bargull-bpg by bargull@dell--p4--2-53 on 2008-12-26 21:15:00
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: add type check to prevent TypeError in dhtml/swf9

New Features:

Bugs Fixed: LPP-4568

Technical Reviewer: hminsky
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
A simple type check was necessary to make the test pass in swf9 and dhtml.


Tests:
see bugreport


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