[ 
https://issues.apache.org/jira/browse/KNOX-3613?focusedWorklogId=1056849&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1056849
 ]

ASF GitHub Bot logged work on KNOX-3613:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Nov/26 12:58
            Start Date: 24/Nov/26 12:58
    Worklog Time Spent: 10m 
      Work Description: hanicz opened a new pull request, #1541:
URL: https://github.com/apache/knox/pull/1541

   [KNOX-3613](https://issues.apache.org/jira/browse/KNOX-3613) - Restrict 
KnoxShellTable JSON import to table data
   
   ## What changes were proposed in this pull request?
   
   - `json().fromJson()` / `json().path()` import table data only (`title`, 
`headers`, `rows`).
     JSON that contains a `callHistoryList`, or that isn't a JSON object, is 
rejected with a clear error.
   - Removed the call-history replay logic from the JSON deserializer.
   - In-session replay/rollback is limited to the KnoxShellTable builder and 
filter classes.
   - Exported call histories now mask the JDBC `password()` value. The file 
export uses the same masked history as the string export.
   - Fixed the KnoxShell user guide examples (`json().path`, `connectTo`, 
`password`) and documented which JSON format can be imported.
   - Re-importing a call-history-only export (`toJSON(false)`) to rebuild a 
table by re-running its steps.
     History exports are now for inspection only. To rebuild a table, save the 
builder chain as a Groovy script.
   - Unchanged: data JSON round-trip, in-session `rollback()` / `replay()` / 
`getCallHistory()`, all builders, filters, `toCSV()` and KnoxLine.
   
   ## How was this patch tested?
   
   - New/updated unit tests in `KnoxShellTableTest` and 
`KnoxShellTableCallHistoryTest`.
     They cover rejected history imports (string, file and non-object JSON), 
replay limited to table classes, and credential masking in exports.
   - `mvn -pl gateway-shell verify`: all tests, checkstyle, PMD, spotbugs and 
forbiddenapis pass.
   - Manual end-to-end run in a packaged KnoxShell (`bin/knoxshell.sh`):
     CSV load, filter, in-session replay and rollback, and data JSON round-trip 
all work; history imports are rejected.




Issue Time Tracking
-------------------

            Worklog Id:     (was: 1056849)
    Remaining Estimate: 0h
            Time Spent: 10m

> Restrict KnoxShellTable JSON import to table data
> -------------------------------------------------
>
>                 Key: KNOX-3613
>                 URL: https://issues.apache.org/jira/browse/KNOX-3613
>             Project: Apache Knox
>          Issue Type: Task
>          Components: WebShell
>    Affects Versions: 3.0.0
>            Reporter: Tamás Hanicz
>            Assignee: Tamás Hanicz
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to