Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-106787

iSCSI webUI columns COMPLETELY break when edited

    XMLWordPrintable

    Details

    • Impact:
      Medium

      Description

      Confirmed on fresh install. FreeNAS 11.3U-3.2

      Bug =

      in "Sharing > Block Shares (iSCSI)"  = ALL UI Pages are considered identical when editing visible columns, they break the other UI pages.

      Normal behavior:

      Cycle through the 7 pages to watch the column names are changing.

      To reproduce the bugged behavior:

      Go to "Extents" page (for example).
      Click "Columns" filter, deselect "NAA" (for example).
      Cycle through the 7 pages now, all the columns are stuck on the wrong page, starting when you customize _ANYTHING_. This persists no matter what you set.

      This can not be recovered from, the bug is stored in the freenas-v1.db.
      The "account_bsdusers" table has a column "bsdusr_attributes" populated with stuff like:

      {
          "preferences": {
              "platform": "freenas",
              "timestamp": "2020-07-13T22:04:45.268Z",
              "userTheme": "ix-dark",
              "customThemes": [],
              "favoriteThemes": [],
              "showGuide": true,
              "showTooltips": true,
              "metaphor": "auto",
              "allowPwToggle": true,
              "preferIconsOnly": false,
              "rebootAfterManualUpdate": false,
              "tableDisplayedColumns": [
                  {
                      "title": "",
                      "cols": [
                          {
                              "name": "Description",
                              "prop": "comment",
                              "$$id": "zsoz",
                              "resizeable": true,
                              "sortable": true,
                              "draggable": true,
                              "canAutoResize": true,
                              "width": 305.5,
                              "isTreeColumn": false,
                              "$$oldWidth": 150
                          },
                          {
                              "name": "Serial",
                              "prop": "serial",
                              "$$id": "2bul",
                              "resizeable": true,
                              "sortable": true,
                              "draggable": true,
                              "canAutoResize": true,
                              "width": 305.5,
                              "isTreeColumn": false,
                              "$$oldWidth": 150
                          },
                          {
                              "name": "Enabled",
                              "prop": "enabled",
                              "$$id": "wpwc",
                              "resizeable": true,
                              "sortable": true,
                              "draggable": true,
                              "canAutoResize": true,
                              "width": 305.5,
                              "isTreeColumn": false,
                              "$$oldWidth": 150
                          }
                      ]
                  }
              ]
          }
      }

      It seems like tableDisplayedColumns is being applied to EVERY iscsi page once you customize anything.

      Very broken.

      Workaround:

      sqlite3 /data/freenas-v1.db

      UPDATE "account_bsdusers" SET "bsdusr_attributes"="{}" WHERE id=1;

      (where id=1 means logged into the webUI as root):

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                lola Lola Yang (Inactive)
                Reporter:
                genr8_ gen BTC
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: