Web Services broken (getUserAndChildrenList)

Discuss problems installing or using TrackStudio.

Web Services broken (getUserAndChildrenList)

Postby sellingerd » Mon Sep 03, 2012 1:39 pm

I have been using TS webservices to automate some of our processes for a number of years. One thing I have been doing is using the "getUserAndChildrenList" to get a reference to the current user and his child users. I am doing this from C# where the method is defined as


[SoapDocumentMethod ("getUserAndChildrenList", RequestNamespace = "http://user.service.soap.trackstudio.com/",
ResponseNamespace = "http://user.service.soap.trackstudio.com/", Use =SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public userBean [] getUserAndChildrenList (string sessionId, string userId);


When I log in, I get the current user id and the session id and use this method to get a user bean for the current user.

Code: Select all
User result = null;
foreach (TsUser::userBean ub in Connection.UserService.getUserAndChildrenList (this.sessionId, uid)) {
  if (ub.id.Equals (uid)) {
    result = User.CreateFromUserBean (ub);
    break;
  }
}


What I am finding is that recently the array of users returned from this method does not include the current user (the one referenced with the provided uid) - it only contains a list of child users.

This breaks all my code because I don't have a bean for the current user.

I am using TrackStudio host (currently 4.0.17.20120831).

Thanks for any help you can provide.

dennis.
sellingerd
 
Posts: 87
Joined: Fri Dec 05, 2003 3:35 pm
Location: Paris, France

Re: Web Services broken (getUserAndChildrenList)

Postby admin » Wed Sep 05, 2012 1:33 pm

Thanks, we'll check this ASAP.
Maxim Kramarenko (mailto: maximkr@trackstudio.com)
TrackStudio - Hierarchical Bug & Issue Tracking Software
http://www.trackstudio.com
admin
Site Admin
 
Posts: 8148
Joined: Thu Jan 01, 1970 3:00 am
Location: Smolensk, Russia

Re: Web Services broken (getUserAndChildrenList)

Postby Petr » Thu Sep 06, 2012 10:15 am

Yes it is true. Because It does not have sense. You have a sessionId and uid in your code. It is a current user. You can use it in your code.
Стань Java программистом с www.job4j.ru
Petr
 
Posts: 2929
Joined: Wed Aug 12, 2009 4:38 pm

Re: Web Services broken (getUserAndChildrenList)

Postby sellingerd » Thu Sep 06, 2012 12:14 pm

I don't exactly agree that there is a sense to not returning the provided uid since the method is called "getUserAndChildrenList" and it does not return the User (otherwise the method would be called "getChildrenList" .

In addition, while I have the user's uid I don't have the user's UserBean which contains other information that I want (like the clear text name of the user).

In addition, the current Trackstudio behavior breaks the code that I am using (for long time) in my my deployed applications, rendering them useless. :(
sellingerd
 
Posts: 87
Joined: Fri Dec 05, 2003 3:35 pm
Location: Paris, France

Re: Web Services broken (getUserAndChildrenList)

Postby Petr » Thu Sep 06, 2012 1:56 pm

Yes it is true. We are going to return this behaviors. I will message you when we do it.
Стань Java программистом с www.job4j.ru
Petr
 
Posts: 2929
Joined: Wed Aug 12, 2009 4:38 pm

Re: Web Services broken (getUserAndChildrenList)

Postby Petr » Fri Sep 07, 2012 9:30 am

I did it. I think Maxim updates a TS host today and you can check it.

Yours faithfully.
Стань Java программистом с www.job4j.ru
Petr
 
Posts: 2929
Joined: Wed Aug 12, 2009 4:38 pm

Re: Web Services broken (getUserAndChildrenList)

Postby admin » Fri Sep 07, 2012 1:48 pm

Updated.
Maxim Kramarenko (mailto: maximkr@trackstudio.com)
TrackStudio - Hierarchical Bug & Issue Tracking Software
http://www.trackstudio.com
admin
Site Admin
 
Posts: 8148
Joined: Thu Jan 01, 1970 3:00 am
Location: Smolensk, Russia

Re: Web Services broken (getUserAndChildrenList)

Postby sellingerd » Fri Sep 07, 2012 5:39 pm

Seems to work. Thanks a lot for your effort. :D
sellingerd
 
Posts: 87
Joined: Fri Dec 05, 2003 3:35 pm
Location: Paris, France


Return to TrackStudio Support

Who is online

Users browsing this forum: No registered users and 6 guests

cron