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

[BUG] Erroneous error raised by empty array constructor #3472

Closed
joewiz opened this issue Jul 6, 2020 · 1 comment · Fixed by #4587
Closed

[BUG] Erroneous error raised by empty array constructor #3472

joewiz opened this issue Jul 6, 2020 · 1 comment · Fixed by #4587
Labels
bug issue confirmed as bug xquery issue is related to xquery implementation
Milestone

Comments

@joewiz
Copy link
Member

joewiz commented Jul 6, 2020

Describe the bug

The expression array {} raises the following error:

Index 0 out of bounds for length 0

Expected behavior

The expression is valid and should not raise an error.

(Note that the error also lacks location information.)

To Reproduce

Evaluate a query containing the expression array {}. Given the following query:

xquery version "3.1";

array {}

eXist returns the following error:

Index 0 out of bounds for length 0

BaseX and Saxon return the expected result:

[]

Context (please always complete the following information):

  • OS: macOS 10.13.6
  • eXist-db version: 5.3.0-SNAPSHOT
  • Java Version: JDK 11.0.7+10 (Liberica 2020-04-14 LTS)

Additional context

  • How is eXist-db installed? 5.3.0-SNAPSHOT built from source
  • Any custom changes in e.g. conf.xml? None.
@joewiz joewiz added the bug issue confirmed as bug label Jul 6, 2020
@joewiz joewiz added this to the eXist-5.2.1 milestone Jul 6, 2020
@joewiz
Copy link
Member Author

joewiz commented Sep 18, 2020

The current develop branch (eXist 5.3.0-SNAPSHOT e92ea8f 20200915110349) is still affected.

@joewiz joewiz added the xquery issue is related to xquery implementation label Sep 18, 2020
@adamretter adamretter modified the milestones: eXist-5.3.1, eXist-5.3.2 Dec 16, 2021
@adamretter adamretter modified the milestones: eXist-5.3.2, eXist-6.0.2 Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issue confirmed as bug xquery issue is related to xquery implementation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants