Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAP GUI for Java: New commit page is non-functional (mac) #5082

Closed
sbcgua opened this issue Oct 31, 2021 · 23 comments
Closed

SAP GUI for Java: New commit page is non-functional (mac) #5082

sbcgua opened this issue Oct 31, 2021 · 23 comments
Labels
bug Something isn't working user interface How to interact with abapGit

Comments

@sbcgua
Copy link
Collaborator

sbcgua commented Oct 31, 2021

:(

image

It keeps asking name email and comment.

@mbtools

@mbtools
Copy link
Member

mbtools commented Oct 31, 2021

odd. the other forms like "settings" work? i will test tomorrow on another machine that has JavaGui installed

It might be related to #2448 due to the @

@mbtools
Copy link
Member

mbtools commented Nov 1, 2021

Hmmm. I tested with 7.70 rev 3 (latest) and the commit form works without problems 🤷

image

@sbcgua
Copy link
Collaborator Author

sbcgua commented Nov 1, 2021

The version I used was 7.4 ... will check how it goes with a newer one

@christianguenter2
Copy link
Member

@mbtools did I get you right, you've been able to commit with SAPGUI for Java without problems?
It doesn't work for a colleague of mine with this error but he's on MacOS.
MicrosoftTeams-image

MicrosoftTeams-image (1)

It once was fixed with #790 actually.

@mbtools
Copy link
Member

mbtools commented Nov 9, 2021

Yes, indeed. Same version.

l1u7vqeB02

@mbtools
Copy link
Member

mbtools commented Dec 2, 2022

Retested with Java GUI. 7.80 rev 1

image

There is some bug here. After "Stage" the add/remove column does not show the "add" link.

JavaGUI:

image

[
WinGUI for comparison:

image
]

After clicking "add" in the column header, it seems like it's working

image

but clicking "Commit" leads to the error described above

image

StageHelper is using window.sessionStorage which does not seem to work on JavaGUI:

image

My JS skills aren't good enough to fix this 😉

Ref #5901

@mbtools mbtools added the bug Something isn't working label Dec 2, 2022
@mbtools mbtools changed the title New commit page is non-functional on Java GUI (mac) SAP GUI for Java: New commit page is non-functional (mac) Feb 8, 2023
@AndreaBorgia-Abo
Copy link
Member

AndreaBorgia-Abo commented Feb 18, 2023

immagine
Same Java GUI, this time on Linux.
(aG is developer version 1.121.0)

Silly me, forgetting that once a bug has seen me, I'm toast :D
After the test above, I fired up Win11 on my laptop to use GUI 8.00 and, you guessed it, no luck there either :(
saplogon_xun6xaeye4

Uninstalled 8.00, reinstalled 7.70PL10 and the commit went ahead just fine.

@mbtools
Copy link
Member

mbtools commented Feb 25, 2023

SAP GUI for Win 8.0 issue is due to Chrome-based control (#4841)

Easy workaround: See https://docs.abapgit.org/guide-sapgui.html

@AndreaBorgia-Abo
Copy link
Member

AndreaBorgia-Abo commented Feb 26, 2023

Reinstalled 8.00, switched control, checking soon... no.1 works fine, thanks.

@mbtools mbtools added the user interface How to interact with abapGit label Apr 6, 2023
@mbtools
Copy link
Member

mbtools commented May 9, 2023

Trace of SAP GUI for Java 7.80 rev 2 reveals the following error

############################# ERROR #############################
09.05. 21:53:16.653 ERROR: SAPEVENT: SapEvent occured without being registered to browser instance: sapevent:stage_commit
############################# ERROR #############################
############################# ERROR #############################
09.05. 22:13:09.774 ERROR: SAPEVENT: SapEvent occured without being registered to browser instance: sapevent:go_patch
############################# ERROR #############################

These errors are all related to events triggered by JavaScript:

function submitSapeventForm(params, action, method, form) {
function getSapeventPrefix() {
if (document.querySelector('a[href*="file:///SAPEVENT:"]')) {
return "file:///"; //Prefix for chromium based browser control
} else {
return "";
}
}
var stub_form_id = "form_" + action;
form = form
|| document.getElementById(stub_form_id)
|| document.createElement("form");
form.setAttribute("method", method || "post");
if (/sapevent/i.test(action)) {
form.setAttribute("action", action);
} else {
form.setAttribute("action", getSapeventPrefix() + "SAPEVENT:" + action);
}
for (var key in params) {
var hiddenField = document.createElement("input");
hiddenField.setAttribute("type", "hidden");
hiddenField.setAttribute("name", key);
hiddenField.setAttribute("value", params[key]);
form.appendChild(hiddenField);
}
var formExistsInDOM = form.id && Boolean(document.querySelector("#" + form.id));
if (form.id !== stub_form_id && !formExistsInDOM) {
document.body.appendChild(form);
}
form.submit();
}

This feature is used by the following actions (stage and patch pages):

stage_commit
stage_filter
patch_stage
yank_to_clipboard
go_back
refresh_local
refresh_all

The million $ question: How do you prevent the error?

@christianguenter2
Copy link
Member

christianguenter2 commented Oct 27, 2023

7.80 rev 4 'Add Filtered and Commit' doesn't work. Nothing happens.
grafik

############################# ERROR #############################
27.10. 08:42:53.926 ERROR: SAPEVENT: SapEvent occured without being registered to browser instance: sapevent:stage_commit
############################# ERROR #############################

same as above

@christianguenter2
Copy link
Member

christianguenter2 commented Oct 27, 2023

I try to draw SAPs attention to this issue.
https://blogs.sap.com/2022/05/25/sap-gui-for-java-7.80/comment-page-1/#comment-693974

@christianguenter2
Copy link
Member

Colleague of mine raised an issue at SAP. Let's see where that goes.

@christianguenter2
Copy link
Member

christianguenter2 commented Nov 30, 2023

Colleague of mine raised an issue at SAP. Let's see where that goes.

Good news!

Case at SAP was successful. With unofficial Java Gui release 7.8 rev5.2 the issues are fixed and according to my colleague abapGit with Java Gui is fully functional on his Mac with ARM processor. I assume it will be released as 7.8 PL 6 in the near future. Kudos to SAP support who did a great job 🥇

@mbtools
Copy link
Member

mbtools commented Nov 30, 2023

Excellent! Once you bust through primary support and exchange directly with a developer, you have a good chance of getting a fix 👍 Thanks for the effort!

@mbtools
Copy link
Member

mbtools commented Feb 23, 2024

7.8 PL 6 is available. Anyone available to test this?

https://me.sap.com/softwarecenterviewer/73555000100200015948/MAINT

@christianguenter2
Copy link
Member

christianguenter2 commented Feb 23, 2024

Installed it on windows and did some tests. Looks good at first sight. Asked my colleague who uses it on mac to do further testing.

@AndreaBorgia-Abo
Copy link
Member

FWIW tested on Linux against A4H, commit worked
grafik

@mbtools
Copy link
Member

mbtools commented Feb 25, 2024

Here are the actions to test (because they use JS to trigger event):

On staging:

  • commit (looks like it works 👍 )
  • filtering
  • patch (and then stage)

On diff:

  • refresh local
  • refresh all

Vimium-links, yank mode:

  • yank_to_clipboard

@christianguenter2
Copy link
Member

christianguenter2 commented Feb 26, 2024

Further test results on windows:

✔️ working

  • commit
  • filtering
  • patch
  • refresh local
  • refresh all

❌ not working

  • hotkeys
  • vimium features
  • command palettes

@larshp
Copy link
Member

larshp commented Feb 26, 2024

but overall, its pretty good news?

@christianguenter2
Copy link
Member

but overall, its pretty good news?

Yes absolutely. All major features working.

@christianguenter2
Copy link
Member

christianguenter2 commented Feb 27, 2024

Feedback from colleague testing on mac "works wonderfully" 🎆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working user interface How to interact with abapGit
Development

No branches or pull requests

5 participants