Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51841

Remoting Extensibility: Provide API for constructing commands in remote CommandTransport implementations

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: remoting
    • Labels:
      None
    • Similar Issues:

      Description

      Remoting Kafka Plugin implements its own Command Transport, which creates Command Instances. Proper deserialization of Commands requires setting proper classloader and a local channel instances.

      There is a Command#readFrom() method which does it, but it's package-private. Also, a construction of the ObjectInputStreamEx requires package-private Channel fields.

      I propose to create a public Channel#readFrom(Channel, byte[] payload) method so that it can be used externally

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Fix has been released in Jenkins 2.129

          Show
          oleg_nenashev Oleg Nenashev added a comment - Fix has been released in Jenkins 2.129

            People

            • Assignee:
              oleg_nenashev Oleg Nenashev
              Reporter:
              oleg_nenashev Oleg Nenashev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: