Community
Participate
Working Groups
If for any reason pushing fails, returning just RemoteRefUpdate.Status is not enough for some cases. One of them, mentioned on bug 349699, end up with REJECTED_OTHER_REASON and nothing more. The fix I initially provided, started to use "DetailedMessage" field in "Result" object[1]. However, the field is never displayed to the user. All she sees is a warning with "REJECTED_OTHER_REASON" message. As a workaround I concatenated "Message" and the string I originally used as "DetailedMessage". [1] Full response from a push job that failed: { "Id": "QJEpjMvPABASD9Qjr7S9FQ", "Location": "http://localhost:8080/task/id/QJEpjMvPABASD9Qjr7S9FQ", "Message": "Pushing origin done", "PercentComplete": 100, "Result": { "Code": 0, "DetailedMessage": "object 34efaead64df04f2b2da434428b775cf4436d977 missing", "HttpCode": 200, "Message": "REJECTED_OTHER_REASON", "Severity": "Warning" }, "Running": false }
Fixed, now DetailedMessage will appear after ":". Remove walkarounds in server.