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

Resubmitting message with changed message body #492

Closed
djstanic1 opened this issue Dec 31, 2020 · 10 comments · Fixed by #496
Closed

Resubmitting message with changed message body #492

djstanic1 opened this issue Dec 31, 2020 · 10 comments · Fixed by #496
Labels
Milestone

Comments

@djstanic1
Copy link

Switched to 5.0.1.

When updating the message body (change anything in the body) and resubmit the message, the message gets resubmitted, but nothing is changed inside the body, so the message stays unchanged.

@SeanFeldman SeanFeldman added the bug label Jan 4, 2021
@SeanFeldman SeanFeldman added this to the vNext milestone Jan 4, 2021
@paolosalvatori
Copy link
Owner

@SeanFeldman @ErikMogensen do you happen to know the root cause of this regression bug?

@ErikMogensen
Copy link
Collaborator

It is the fix in #247. It uses the content of the existing message and ignores the content in the GUI.

This is in a complicated part of the code and difficult to get right with all the different message formats.

@paolosalvatori
Copy link
Owner

@ErikMogensen got it, how do we want to handle it? Is the fix done by @SeanFeldman in src/ServiceBusExplorer/Forms/MessageForm.cs file that causes the issue? I mean, we can change the code to solve the issue. The goal is to let users change the content of the payload and resubmit the message. The difficult part was the WCF format. Do we still support this format after migrating from Microsoft.Azure.ServiceBus to Azure.Messaging.ServiceBus?

@ErikMogensen
Copy link
Collaborator

It wasn't Sean who implemented it. I suggest we revert the change as a short term solution.

This part of the code is still using the old Service Bus SDK. If we switch to the latest SDK, Azure.Messaging.ServiceBus I am pretty sure we cannot use WCF. I would like to see that our aim was to replace all of the old SDK with the new SDK but then SBE would probably not be able to handle some old messages and send the messages in the same format as before.

There is more about this at Azure/azure-service-bus-dotnet#239 (comment)

@SeanFeldman
Copy link
Collaborator

SeanFeldman commented Jan 5, 2021

Thank you @ErikMogensen. The last time I've touched that form was 4 years ago and AFAIK it wasn't broken 😉
Git Blame is a powerful tool @paolosalvatori.

If we switch to the latest SDK, Azure.Messaging.ServiceBus I am pretty sure we cannot use WCF.

Correct. Though I'm not entirely sure what do you mean by "we cannot use WCF". We can't use SBMP but that's not something that would stop us. If you're referring to BodyType.Wcf, that's not WCF APIs but the payload, which can be achieved. That'd be for really old systems though.

but then SBE would probably not be able to handle some old messages and send the messages in the same format as before.

Incorrect.

Message interoperability is not a function of the SDK but how the payload is sent and received.

@paolosalvatori
Copy link
Owner

paolosalvatori commented Jan 5, 2021

Message interoperability has never been a function of the SDK @SeanFeldman. This is why I implemented WCF support in the tool years ago. At that time I spent a great amount of time to make it work and guarantee that Service Bus messages could be sent or received to guarantee interoperability with BizTalk Server WCF adapters. Now, the context has changed, I don't think there is anybody out there that use WCF anymore, so we can remove the support for this format. I don't get what you intended to demonstrate with Git Blame @SeanFeldman as I'm perfectly aware of what I did, including the code for cloning messages when using WCF payloads :) The point is different: if we think that WCF support is obsolete or it's a problem to maintain (e.g. message cloning), we can just remove it from SBE. This is why I was asking.

@SeanFeldman
Copy link
Collaborator

Git Blame was to demonstrate how to quickly identify who was involved in changes and PRs affecting the files under review. Eliminates guessing.

Dropping WCF body body format is fine. It was mostly coming from track 0 SDK which is quite old and still can be found in use here and there.

@paolosalvatori
Copy link
Owner

Sounds good, but you didn't have to demonstrate to me who wrote what :) I quickly asked just because I'm still on holiday and I wrote the previous comment via my mobile, not from my laptop :) We'll eventually remove WCF support.

@SeanFeldman
Copy link
Collaborator

Is the fix done by @SeanFeldman in src/ServiceBusExplorer/Forms/MessageForm.cs file that causes the issue?

The link I've provided would answer your question. I'm a bit sensitive when my name is associated with something I didn't do. Given that the repo has multiple contributors and we don't have a solid way to identify who causes a regression, I'd rather use PR/commit links and not names. But that's a personal preference, right? 🙂

Responding to comments from a phone is always a challenge if it's not a trivial "yes" or "no". That's why I'm training myself to resists answering from my phone if it requires more than one-liner. Am I successful at my own preaching? Still a way to go 😀

@paolosalvatori
Copy link
Owner

I used the wrong words, I wanted to say "who did review / approve the PR in addition to me?" It's clear that #247 was submitted by somebody else. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants