Export Package to Files: Fix for Namespaced Packages (#4701)

* escape package only for file name


make package parameter immutable

* fix form id
This commit is contained in:
g-back 2021-04-14 12:43:24 +02:00 committed by GitHub
parent f290658941
commit 4c6d407156
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 10 deletions

View File

@ -72,7 +72,7 @@ CLASS zcl_abapgit_gui_page_ex_pckage IMPLEMENTATION.
METHOD get_form_schema.
ro_form = zcl_abapgit_html_form=>create( iv_form_id = 'export-object-to-files' ).
ro_form = zcl_abapgit_html_form=>create( iv_form_id = 'export-package-to-files' ).
ro_form->text(
iv_name = c_id-package

View File

@ -30,7 +30,7 @@ CLASS zcl_abapgit_zip DEFINITION
zcx_abapgit_exception.
CLASS-METHODS export_package
IMPORTING
VALUE(iv_package) TYPE devclass
iv_package TYPE devclass
iv_folder_logic TYPE string
iv_main_lang_only TYPE abap_bool
RAISING
@ -196,6 +196,7 @@ CLASS zcl_abapgit_zip IMPLEMENTATION.
lo_dot_abapgit TYPE REF TO zcl_abapgit_dot_abapgit,
lo_frontend_serv TYPE REF TO zif_abapgit_frontend_services,
lv_default TYPE string,
lv_package_escaped TYPE string,
lv_path TYPE string,
lv_zip_xstring TYPE xstring.
@ -206,8 +207,9 @@ CLASS zcl_abapgit_zip IMPLEMENTATION.
lo_frontend_serv = zcl_abapgit_ui_factory=>get_frontend_services( ).
REPLACE ALL OCCURRENCES OF '/' IN iv_package WITH '#'.
lv_default = |{ iv_package }_{ sy-datlo }_{ sy-timlo }|.
lv_package_escaped = iv_package.
REPLACE ALL OCCURRENCES OF '/' IN lv_package_escaped WITH '#'.
lv_default = |{ lv_package_escaped }_{ sy-datlo }_{ sy-timlo }|.
lv_zip_xstring = export(
is_local_settings = ls_local_settings