Skip to content

Commit 17ba61e

Browse files
kjetilkrubensworks
authored andcommitted
Treat empty ACLs as server errors
1 parent b104918 commit 17ba61e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/integration/acl-oidc-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ describe('ACL with WebID+OIDC over HTTP', function () {
127127
// })
128128
})
129129

130-
describe('empty .acl', function () {
130+
describe.only('empty .acl', function () {
131131
describe('with no default in parent path', function () {
132132
it('should give no access', function (done) {
133133
var options = createOptions('/empty-acl/test-folder', 'user1')
134134
options.body = ''
135135
request.put(options, function (error, response, body) {
136136
assert.equal(error, null)
137-
assert.equal(response.statusCode, 403)
137+
assert.equal(response.statusCode, 500)
138138
done()
139139
})
140140
})
@@ -143,15 +143,15 @@ describe('ACL with WebID+OIDC over HTTP', function () {
143143
options.body = ''
144144
request.put(options, function (error, response, body) {
145145
assert.equal(error, null)
146-
assert.equal(response.statusCode, 403)
146+
assert.equal(response.statusCode, 500)
147147
done()
148148
})
149149
})
150150
it('should not let read the .acl', function (done) {
151151
var options = createOptions('/empty-acl/.acl', 'user1')
152152
request.get(options, function (error, response, body) {
153153
assert.equal(error, null)
154-
assert.equal(response.statusCode, 403)
154+
assert.equal(response.statusCode, 500)
155155
done()
156156
})
157157
})

0 commit comments

Comments
 (0)