MantisBT - opensim
View Issue Details
0008131opensim[REGION] OpenSim Corepublic2017-02-17 04:312017-03-31 14:15
master (dev code) 
master (dev code) 
Grid (1 Region per Sim)
ODE, BulletSim, ubODE
Mono / Linux64
0008131: Offline messages failing using OfflineMessageModule
Updating plazas from 056ccae (jan 27) to 07c3962 (feb 2) and offline messages are failing to be stored.
update and send a message to offline user
No tags attached.
Issue History
2017-02-17 04:31danbannerNew Issue
2017-02-17 04:34danbannerNote Added: 0031607
2017-02-17 14:27BillBlightNote Added: 0031608
2017-02-17 14:31BillBlightNote Edited: 0031608bug_revision_view_page.php?bugnote_id=31608#r6008
2017-02-17 14:37BillBlightNote Added: 0031609
2017-02-18 15:34BillBlightNote Added: 0031610
2017-02-18 16:00BillBlightNote Added: 0031611
2017-02-18 22:20danbannerNote Added: 0031612
2017-02-18 22:24BillBlightNote Added: 0031613
2017-03-03 05:37BillBlightNote Added: 0031619
2017-03-30 08:34UbitUmarovNote Added: 0031660
2017-03-31 02:50aiaustinNote Added: 0031661
2017-03-31 02:51aiaustinNote Edited: 0031661bug_revision_view_page.php?rev_id=6048
2017-03-31 03:25ssm2017Note Added: 0031662
2017-03-31 03:44BillBlightNote Added: 0031663
2017-03-31 03:45BillBlightNote Edited: 0031663bug_revision_view_page.php?bugnote_id=31663#r6050
2017-03-31 03:47BillBlightNote Edited: 0031663bug_revision_view_page.php?bugnote_id=31663#r6051
2017-03-31 04:03aiaustinNote Added: 0031664
2017-03-31 04:03aiaustinNote Edited: 0031664bug_revision_view_page.php?rev_id=6053
2017-03-31 11:53BillBlightNote Added: 0031665
2017-03-31 12:40BillBlightNote Edited: 0031665bug_revision_view_page.php?rev_id=6055
2017-03-31 13:24danbannerNote Added: 0031666
2017-03-31 13:25danbannerNote Edited: 0031666bug_revision_view_page.php?bugnote_id=31666#r6057
2017-03-31 13:27BillBlightNote Added: 0031667
2017-03-31 13:40aiaustinNote Added: 0031668
2017-03-31 13:50aiaustinNote Deleted: 0031664
2017-03-31 13:50aiaustinNote Deleted: 0031661
2017-03-31 14:01BillBlightNote Added: 0031669
2017-03-31 14:02danbannerNote Added: 0031670
2017-03-31 14:09danbannerNote Added: 0031671
2017-03-31 14:10BillBlightNote Added: 0031672
2017-03-31 14:13danbannerNote Added: 0031673
2017-03-31 14:15UbitUmarovNote Added: 0031674
2017-03-31 14:19BillBlightNote Deleted: 0031665

2017-02-17 04:34   
The "User is not logged in. Message saved." is never seen and when I login the user that was offline they never get the message that was supposed to be stored
2017-02-17 14:27   
(edited on: 2017-02-17 14:31)
I am seeing a very similar issue, (although I am using jopensim for offline messages), this worked fine before the latest master. Now I get an xml error on the console, but my messages are saved because they are using jopensim, but I do not see the "User is not logged in. Message saved." message.

So I do believe it is the same problem.

I know this error here states jopensim, but I think it is because of the same issue, as the offline message is never returned ..

17:29:31 - [SynchronousRestObjectRequester]: Invalid XML from POST [^] OpenSim.Region.CoreModules.Avatar.InstantMessage.SendReply

2017-02-17 14:37   
just did a test on of my empty regions, brought it up on , 056ccae, no other config changes, and the error does not occur ... Just for verification.
2017-02-18 15:34   
The problem is in this commit ... [^]

Seems to break all the old offline IM services ...
2017-02-18 16:00   
CONFIRMED , undoing the changes in the commit I posted corrects the issues

Simply undoing them or using a OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs

From one commit previous corrects the problem.
2017-02-18 22:20   
Ya i see that.. The problem seems to be
-// current opensim and osgrid compatible
- bool success = SynchronousRestObjectRequester.MakeRequest<GridInstantMessage, bool>(
- "POST", m_RestURL+"/SaveMessage/", im, 10000);
-// current opensim and osgrid compatible end
+ SendReply reply = SynchronousRestObjectRequester.MakeRequest<GridInstantMessage, SendReply>(
+ "POST", m_RestURL+"/SaveMessage/?scope=" +
+ scene.RegionInfo.ScopeID.ToString(), im);

I'll probably just revert to the previous build unless this gets resolved soon
2017-02-18 22:24   
I reverted just OfflineMessageModule.cs and all seems to be fine, since those seemed to be the only changes in it ..
2017-03-03 05:37   
So I guess this is not going to get any official attention ... I'll create a patch later and attach it ..
2017-03-30 08:34   
made the new offline im code optional and disabled by default.
offline servers should update, supporting both formats if possible.
The format can be detected by the presence of scopeID on the request path
2017-03-31 03:25   
for the record :
we (at FrancoGrid) are using OfflineMessaging V2 with the 07c3962 Dev on the grid side.

@Austin, the v2 is not managing messages the same way as v1 (php version).
the content is not structured on the same way.

at FrancoGrid, to be able to send offline ims to email, we are using a "relay" (d4os_io_offline_messages_relay).

when receiving an offline im, the relay script is forwarding the content of the message to the grid and is waiting for a response of the grid like : '<?xml version="1.0"?><ServerResponse><RESULT>True</RESULT></ServerResponse>'
if the response is this one, it is forwarded to the simulator and the email is sent.
if not, the message : '<?xml version="1.0"?><ServerResponse><RESULT>False</RESULT></ServerResponse>' is sent back to the simulator.

i have not seen any issue with that and our offline im mechanism is working (not tested on hg).

note : both the grid and the simulators are configured to use offlineIm V2 (some simulators using and some using 0.9-rc2 and some using 07c3962 Dev (win or linux mono
2017-03-31 03:44   
(edited on: 2017-03-31 03:47)
This issue did not affect V2 Offline messages .

It was essentially removing V1 messaging in favor of V2.

2017-03-31 13:24   
(edited on: 2017-03-31 13:25)
This mantis has absolutely nothing to do with v2 offline messaging module... Ubit's commit simply added back and made configurable the method that Melanie removed in her previous commit. I hope this configurability did not get removed.

2017-03-31 13:27   
danbanner, it looks like ubits commit vanished, was not reverted, just removed .

This is very sad indeed ...
2017-03-31 13:40   
I can see Ubit's change at 2017-03-30 15:27 in the branch labelled "master" [^]

but for some reason the "melanie" branch is currently showing as the default one at the URL I ususally use for the current dev master... at [^]
2017-03-31 14:01   
Thanks aiaustin, I had just noticed it was the melanie branch not the master, and was confused ..
2017-03-31 14:02   
ya lol seems master and melanie branches might have got swapped [^]

looks a lot different than [^]
2017-03-31 14:09   
git checkout master will fix the problem until head is fixed
2017-03-31 14:10   
Or I was just going to post ..

git reset --hard master
2017-03-31 14:13   
all fixed now
2017-03-31 14:15   
A git glitch Melanie just fixed