SAP / open-ux-tools

Enable community collaboration to jointly promote and facilitate best in class tooling capabilities
Apache License 2.0
83 stars 40 forks source link

BUG - Unable to fetch transport list by using ADT service #1103

Closed slin-sap closed 1 year ago

slin-sap commented 1 year ago

Related Feature

Feature request: #518 Related fix: #1083

Description

When package name contains namespace e.g. "/A/B/NAME", ADT service API fails to fetch transport list.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Enter a valid package name in the format "/A/B/NAME".
  2. Expand to get the list

Expected results

Transport list is fetched successfully.

Actual results

Failure to fetch transport requests, error URI-Mapping cannot be performed due to invalid URI:

Screenshots

Package name can also have namespace, which requires uriencoding: Screenshot 2023-07-17 at 9 30 11 AM

Root Cause Analysis

Problem

Fix

After validating the scenario with customer, we can confirm that only fix introduced by #1083 is required. Thus the origin fix introduced by this GH issue needs to be removed by PR #1220.

Why was it missed

Specific scenario that package name and app name contain namespace was not considered in the original requirements.

How can we avoid this

Added unit test to make sure ADT request body has uri encode for app name and no uri encode for package name.

tobiasqueck commented 1 year ago

@slin-sap it seems to be fixed, could you please check and close the issue.

slin-sap commented 1 year ago

@tobiasqueck A fix has been applied based on the WebIDE implementation. But it didn't resolve the customer incident related to this bug. We are waiting for ADT colleague to further investigate the ADT service response data.

slin-sap commented 1 year ago

Customer closed the internal incident thus closing this issue..