You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2023/04/12 07:18:00 UTC
[jira] [Resolved] (SLING-329) cannot access node when node name is a number
[ https://issues.apache.org/jira/browse/SLING-329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved SLING-329.
------------------------------------
Resolution: Won't Fix
> cannot access node when node name is a number
> ---------------------------------------------
>
> Key: SLING-329
> URL: https://issues.apache.org/jira/browse/SLING-329
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Affects Versions: Scripting JavaScript 2.0.2
> Reporter: Michael Marth
> Priority: Minor
>
> the line
> currentNode.getNodes()[i].getProperty("approved").getString()
> gives
> TypeError: Cannot call method "getProperty" of undefined (/apps/tss/list/html.esp#8) (500)
> If the node name consists of numbers only (like "111111" - but "1aaaa" is OK)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)