• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

comunica / traqula / 27267384165
100%

Build:
DEFAULT BRANCH: main
Ran 10 Jun 2026 09:40AM UTC
Jobs 9
Files 127
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Jun 2026 09:38AM UTC coverage: 100.0%. Remained the same
27267384165

push

github

web-flow
Fix: reserved key (#147)

* fix: use Object.hasOwn to prevent reserved-key bypass in prefix validation

Using plain object bracket access for prefix lookups allowed prototype-chain
keys (constructor, toString, __proto__, etc.) to bypass the "Unknown prefix"
guard, since they resolve to inherited values rather than undefined.

Instead of patching every lookup with Object.hasOwn, fix the root cause by
creating all internal lookup maps with null prototypes so there are no
inherited properties to collide with.

Creation sites updated (prefixes, VALUES mappings, graph-grouping, rule maps):
- packages/rules-sparql-1-1/lib/MinimalSparqlParser.ts
- packages/rules-sparql-1-2/lib/parserUtils.ts
- engines/parser-sparql-1-2/lib/Parser.ts
- packages/algebra-transformations-1-1/lib/toAlgebra/core.ts
- packages/rules-sparql-1-1/lib/grammar/whereClause.ts
- packages/algebra-transformations-1-1/lib/toAst/updateUnit.ts
- packages/core/lib/parser-builder/parserBuilder.ts
- packages/core/lib/indirection-builder/helpers.ts
- packages/core/lib/indirection-builder/IndirBuilder.ts
- packages/core/lib/generator-builder/generatorBuilder.ts

* test: add regression tests for prototype-key prefix bypass

Tests that fail on main (before the fix) and pass on this branch:

Parser (engines/parser-sparql-1-1/test/extraCoverage.test.ts):
- Prefixes named 'constructor', 'toString', 'hasOwnProperty', 'valueOf'
  must be rejected with 'Unknown prefix' when undeclared. On main these
  slip through because `{}`['constructor'] resolves via the prototype
  chain and is not `undefined`.
- A declared prefix with a prototype-key name must be accepted (positive case).

Algebra (engines/algebra-sparql-1-1/test/extraCoverage.test.ts):
- toAlgebra must throw 'Unknown prefix: constructor' when the prefix is
  undeclared, not silently produce a garbage IRI by coercing the Object
  constructor function to a string.
- A prototype-key prefix declared in the query string expands correctly.
- A prototype-k... (continued)

758 of 758 branches covered (100.0%)

Branch coverage included in aggregate %.

10 of 10 new or added lines in 6 files covered. (100.0%)

5467 of 5467 relevant lines covered (100.0%)

283134.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-22.x-macos-latest - 27267384165.1 10 Jun 2026 09:43AM UTC 127
100.0
GitHub Action Run
2 run-24.x-macos-latest - 27267384165.2 10 Jun 2026 09:43AM UTC 127
100.0
GitHub Action Run
3 run-20.x-ubuntu-latest - 27267384165.3 10 Jun 2026 09:40AM UTC 127
100.0
GitHub Action Run
4 run-20.x-windows-latest - 27267384165.4 10 Jun 2026 09:42AM UTC 127
100.0
GitHub Action Run
5 run-22.x-windows-latest - 27267384165.5 10 Jun 2026 09:42AM UTC 127
100.0
GitHub Action Run
6 run-24.x-ubuntu-latest - 27267384165.6 10 Jun 2026 09:40AM UTC 127
100.0
GitHub Action Run
7 run-20.x-macos-latest - 27267384165.7 10 Jun 2026 09:41AM UTC 127
100.0
GitHub Action Run
8 run-24.x-windows-latest - 27267384165.8 10 Jun 2026 09:42AM UTC 127
100.0
GitHub Action Run
9 run-22.x-ubuntu-latest - 27267384165.9 10 Jun 2026 09:40AM UTC 127
100.0
GitHub Action Run
Source Files on build 27267384165
  • Tree
  • List 127
  • Changed 10
  • Source Changed 10
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27267384165
  • 476e9651 on github
  • Prev Build on v1.1.3 (#27193654758)
  • Next Build on main (#27268193798)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc