Project

General

Profile

Bug #65943

Unlocking a pool gives JSON errors

Added by Primož Resman over 2 years ago. Updated over 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
Vladimir Vinogradenko
Category:
GUI (new)
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Trying to unlock a pool through the new GUI in 11.2 gives the following JSON errors:

Error: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at e.t.json (http://192.168.0.10/ui/main.5e0d25dfb19b1248661c.bundle.js:1:1952335)
at e.t.handleError [as selector] (http://192.168.0.10/ui/main.5e0d25dfb19b1248661c.bundle.js:1:1963205)
at e.error (http://192.168.0.10/ui/main.5e0d25dfb19b1248661c.bundle.js:1:1842088)
at e._error (http://192.168.0.10/ui/main.5e0d25dfb19b1248661c.bundle.js:1:3737084)
at e.error (http://192.168.0.10/ui/main.5e0d25dfb19b1248661c.bundle.js:1:3736778)
at XMLHttpRequest.a (http://192.168.0.10/ui/main.5e0d25dfb19b1248661c.bundle.js:1:1954495)
at XMLHttpRequest.i (http://192.168.0.10/ui/main.5e0d25dfb19b1248661c.bundle.js:1:853535)
at t.invokeTask (http://192.168.0.10/ui/polyfills.4e42ab25a6112b333361.bundle.js:1:44121)
at Object.onInvokeTask (http://192.168.0.10/ui/main.5e0d25dfb19b1248661c.bundle.js:1:2610127)
at t.invokeTask (http://192.168.0.10/ui/polyfills.4e42ab25a6112b333361.bundle.js:1:44042)
at n.runTask (http://192.168.0.10/ui/polyfills.4e42ab25a6112b333361.bundle.js:1:39299)
at n.invokeTask [as invoke] (http://192.168.0.10/ui/polyfills.4e42ab25a6112b333361.bundle.js:1:45211)
at m (http://192.168.0.10/ui/polyfills.4e42ab25a6112b333361.bundle.js:1:55907)
at XMLHttpRequest.b (http://192.168.0.10/ui/polyfills.4e42ab25a6112b333361.bundle.js:1:56137)

It is one of three pools in my system, where the other two pools unlocked with no issues. The offending pool unlocked with no issues in the legacy GUI. The passphrase and recovery file were ok and correct.

The only difference between the three pools is that the offending pool's name contains a dot: "Mirror_1.5TB_backup" compared to "Red_3-6TB" and "WD_3TB_backup"


Related issues

Copied to FreeNAS - Bug #73935: Allow non-word characters in pool/dataset/zvol names in APIv1Done
Copied to FreeNAS - Bug #77800: Unlocking a pool gives JSON errorsClosed

Associated revisions

Revision 7fb5effe (diff)
Added by William Grzybowski over 2 years ago

fix(api): id should be allowed for volume Regressed in 986e3d75 . Ticket: #65943

Revision 62cc7b10 (diff)
Added by William Grzybowski over 2 years ago

fix(api): id should be allowed for volume Regressed in 986e3d75 . Ticket: #65943

Revision 4f95e53c (diff)
Added by William Grzybowski over 2 years ago

fix(api): id should be allowed for volume Regressed in 986e3d75 . Ticket: #65943 (cherry picked from commit 7fb5effeff06a0bb4f8106438c087506c28be84c)

History

#1 Updated by William Grzybowski over 2 years ago

  • Assignee changed from Release Council to Anonymous
  • Target version changed from Backlog to 11.2-U3

#3 Updated by Anonymous over 2 years ago

  • Assignee changed from Anonymous to Vladimir Vinogradenko

#4 Updated by Anonymous over 2 years ago Private

I am getting a 501 not implemented error from this, it seems the rest call doesn't like the pool having a . in the name (very easily reproducible), any idea what might be going on Vladimir? (Is there a websocket call this could be converted to?)

Response headers (237 B)    
Connection    
keep-alive
Content-Language    
en
Content-Type    
text/html; charset=utf-8
Date    
Wed, 06 Feb 2019 01:58:18 GMT
Server    
nginx
Transfer-Encoding    
chunked
Vary    
Accept, Accept-Language, Cookie
Request headers (541 B)    
Accept    
application/json, text/plain, */*
Accept-Encoding    
gzip, deflate
Accept-Language    
en
Authorization    
Token b31257a2-71ef-4617-b71f-825ee0ebea92
Connection    
keep-alive
Content-Length    
2
Content-Type    
application/json
Cookie    
csrftoken=lJmeW0u7504ZRq6Mx7EU…UNBUK8PADKkg2ZwnbBuWfk0WGcaM8
DNT    
1
Host    
10.248.1.139
Referer    
http://10.248.1.139/ui/storage/pools
User-Agent    
Mozilla/5.0 (Macintosh; Intel …) Gecko/20100101 Firefox/65.0

#5 Updated by Bug Clerk over 2 years ago

  • Status changed from Unscreened to In Progress

#6 Updated by Bug Clerk over 2 years ago

  • Status changed from In Progress to Ready for Testing

#7 Updated by Bug Clerk over 2 years ago

  • Target version changed from 11.2-U3 to 11.3

#8 Updated by Bug Clerk over 2 years ago

  • Copied to Bug #73935: Allow non-word characters in pool/dataset/zvol names in APIv1 added

#9 Updated by Dru Lavigne over 2 years ago

  • Status changed from Ready for Testing to Done
  • Target version changed from 11.3 to Master - FreeNAS Nightlies
  • Needs QA changed from Yes to No
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#11 Updated by Bug Clerk over 2 years ago

  • Status changed from Done to In Progress

#12 Updated by Bug Clerk over 2 years ago

  • Status changed from In Progress to Ready for Testing

#13 Updated by Bug Clerk over 2 years ago

  • Target version changed from Master - FreeNAS Nightlies to 11.3-BETA1

#14 Updated by Bug Clerk over 2 years ago

  • Copied to Bug #77800: Unlocking a pool gives JSON errors added

#15 Updated by Dru Lavigne over 2 years ago

  • Status changed from Ready for Testing to Done
  • Target version changed from 11.3-BETA1 to Master - FreeNAS Nightlies

Also available in: Atom PDF