[GH-ISSUE #40] rules.json incorrect root path for .schema #17

Closed
opened 2026-05-23 08:38:33 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @donl on GitHub (Oct 23, 2022).
Original GitHub issue: https://github.com/appy-one/acebase-server/issues/40

Originally assigned to: @appy-one on GitHub.

When loading .schema rules from rules.json, the path being returned by the client using db.schema.all() are being prefixed with /rules

Originally created by @donl on GitHub (Oct 23, 2022). Original GitHub issue: https://github.com/appy-one/acebase-server/issues/40 Originally assigned to: @appy-one on GitHub. When loading `.schema` rules from `rules.json`, the `path` being returned by the client using `db.schema.all()` are being prefixed with `/rules`
gitea-mirror 2026-05-23 08:38:33 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@appy-one commented on GitHub (Oct 23, 2022):

Thanks for reporting, I'll look at it tomorrow!

<!-- gh-comment-id:1288166431 --> @appy-one commented on GitHub (Oct 23, 2022): Thanks for reporting, I'll look at it tomorrow!
Author
Owner

@appy-one commented on GitHub (Oct 25, 2022):

I found the culprit: dcdf9fd0cf/src/rules.ts (L111)

This should be accessRules.rules
I'll publish a fix just now

<!-- gh-comment-id:1291023485 --> @appy-one commented on GitHub (Oct 25, 2022): I found the culprit: https://github.com/appy-one/acebase-server/blob/dcdf9fd0cfdb57d7fecfb4c92519a8ed91e0981f/src/rules.ts#L111 This should be `accessRules.rules` I'll publish a fix just now
Author
Owner

@appy-one commented on GitHub (Oct 25, 2022):

Hi Don, I published version 1.14.0 that should fix this!
Let me know if all works ok!

<!-- gh-comment-id:1291071063 --> @appy-one commented on GitHub (Oct 25, 2022): Hi Don, I published version 1.14.0 that should fix this! Let me know if all works ok!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase-server#17
No description provided.