abapGit icon indicating copy to clipboard operation
abapGit copied to clipboard

Deleted function group is still serialized as empty XML

Open pokrakam opened this issue 1 year ago • 4 comments
trafficstars

A TADIR entry exists for a deleted Function Group, the exists method fails, yet an empty XML file is generated containing

<?xml version="1.0" encoding="utf-8"?>
<abapGit version="v1.0.0" serializer="LCL_OBJECT_FUGR" serializer_version="v1.0.0">
 <asx:abap version="1.0" xmlns:asx="http://www.sap.com/abapxml"/>
</abapGit>

pokrakam avatar Aug 21 '24 11:08 pokrakam

I manually created a tadir entry for a function group but I'm not able to reproduce this. It seems also very unlikely that anything is serialized if exists fails:

https://github.com/abapGit/abapGit/blob/fd673dac68f80bdaf4d0885f347c306319a5c70a/src/objects/zcl_abapgit_object_fugr.clas.abap#L1375-L1379

mbtools avatar Sep 05 '24 01:09 mbtools

Aware of this, yet it was happening on a customer system. I've got it on my todo to debug when I'm next working on that system to see what's going on.

pokrakam avatar Sep 05 '24 08:09 pokrakam

was this fixed by #7147?

mbtools avatar Feb 22 '25 21:02 mbtools

I tried to reproduce. The closest I get is https://github.com/abapGit-tests/FUGR/edit/test/src/zabapgit_unit_test.fugr.xml

Image

You would have to delete the top include and main program to get an empty xml as you reported above.

Then you have TADIR and TLIBG entries but nothing else. No code, no description in TLIBT.

AFAICT, that's not possible with regular means. You would have to monkey around on the database.

mbtools avatar Mar 30 '25 16:03 mbtools