-
Notifications
You must be signed in to change notification settings - Fork 45
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
Create Workitem - HTTP 500 #88
Comments
@Mershl Thanks for using this library. Probably. Which version is your rtc jazz server. Currently this library has been tested against 5.0.1, 5.0.2 and 6.0. |
We have a RTC Jazz 6.0.2 server in use. |
@Mershl Currently I don't have such 6.0.2 environment in handy. So would you please help fix it. Thanks. |
I've tested some fixes but couldn't successfully create a workitem with 6.0.2 yet. This is the complete log with an unmodified rtcclient: https://gist.github.com/Mershl/1f70e294e107f67238bef45897a7684d |
@Mershl Thx. I will take a closer look. Sorry for the inconveniences. |
Adding
to L#1119 in [rtcclient/client.py].
Out of 6 consecutive runs. 4 result in expired cookie and 2 in missing attribute. |
@Mershl Great! Good progress. I think
is the key that matters. From your past log, We can try to add a new attribute |
Removing the modification of
|
@Mershl Thanks for your work. It helps me a lot. Seems Can you successfully create a new workitem when appending a new attribute |
I use the template of a existing work item on the server. The template does not offer a |
Based on the spec there is no Summary attribute: OSLC Spec. |
I think the problem lies within the XML header attributes. <oslc_cm:ChangeRequest
xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/"
xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:oslc_pl="http://open-services.net/ns/pl#"
xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/"> |
@Mershl Actually the |
@dixudx You're right. But <dc:title>OSLC TestTitle</dc:title> |
Yes, it's quite weird. It works well on my previous environment and has been fully tested. I wonder whether the oslc version does the trick. |
I've tested a number of combinations and additions for the XML header, but the best outcome is the |
@Mershl Haven't got any clues yet. Will try to find it out. |
|
@dixudx Thanks for the quick patch. Due to the etree import from lxml the RTCClient is no longer compatible to Python 2.7.
I have to support Python 2 due to other dependencies in my project. But I've tried it with 3.5.2 showing:
|
@Mershl I've tested on 2.7.13 and 3.3.6.
|
@Mershl Yeah, on python 3.5, the runtime error did exist. Fixed in commit 430f525. |
I've installed the additional dependencies on Windows (sign) for lxml. The work item is now successfully created. Thank you very much for your support @dixudx. |
Hello dixudx, Sorry for the late reply. But changing that function like this worked for me...
Mostly all of the problems are solved in some commits here and there. But its not yet merged in development. |
It is not yet merged in master branch.
I am so glad that this library is so widely used. And thanks for all of you to get this improved. Please help try latest development branch to verify the newest fix works for you. 0.7.0 is coming soon. If everything works well, I think 0.7.0 is ready to ship. |
Hello Dixudx, Here is what I get, when I try to install development branch. |
@krishnavelu See my comment in your gist. |
Hello Dixudx, Even with python3.5 I'm getting the same environment error. See here Its just a guess, you may be the right person to answer. Please note that I'm using windows 10. Which has new type of environment variable |
Hello Dixudx, One more problem I face now for creating work item is, I'm not able to set a custom attribute. 'RTCClient' object has no attribute 'getPvcsAcceptedBy'. Is custom attributes not supported? If not supported what modification should I do for adding custom attributes. |
@krishnavelu You can give it a try. I don't have an available Windows environment.
Yes, custom attributes are well supported. You can follow this createWorkitem API. Normally there are two ways to do this,
|
Hello Dixudx, I guess I'm using the copied_from one. But still I get the error ''RTCClient' object has no attribute 'getPvcsAcceptedBy'' 'PvcsAcceptedBy' is the custom attribute. The work Item gets created but, it doesn't set the value which is passed into createWorkItem. The value of that attribute gets copied from the original WI. Here is the code I used to create WI.
I really didn't understand the template concept even after reading the document multiple time. Also after getting the template how to modify it for custom attributes? Could you please give me a example code for creating with custom attribute? What should be passed with **kwargs |
@krishnavelu replace_fields = [("rtc_cm:teamArea", "{{ teamArea }}"),
("rtc_cm:ownedBy", "{{ ownedBy }}"),
("rtc_cm:plannedFor", "{{ plannedFor }}"),
("rtc_cm:foundIn", "{{ foundIn }}"),
("oslc_cm:severity", "{{ severity }}"),
("oslc_cm:priority", "{{ priority }}"),
("rtc_cm:filedAgainst", "{{ filedAgainst }}")] You can try to use |
Can I get some example code snippets for modifying the template. |
@krishnavelu https://rtcclient.readthedocs.io/en/latest/client.html#rtcclient.client.RTCClient.createWorkitem
You just need to pass your template attribute in |
Any chance the development branch with these changes on it will get committed to master? I struggled with this exact error for almost 2 weeks before finally finding this thread, works great now! But I had to pull the development branch (which isn't the version in pypi). |
@dixudx Hi I am facing some issue with create work item can u tell me which branch is completely fixed currently I am using development branch. |
Hi @Feva can u please help to create a new workitem using createWorkitem( ) function? |
@dixudx can we connect some times because still i was not able to create the workitem using rtcclient. i need u r help very badly |
@Narendra0908 Feel free to send me an invitation via Google Meet. You could find my email address through the commits. Thanks. |
@dixudx how to update a work item? |
@dixudx when i tried to use the code that u send me via mail the following error occurs: ConnectionError: HTTPSConnectionPool(host='rb-alm-07-p.de.bosch.com', port=9443): Max retries exceeded with url: /jazz/authenticated/identity (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001F48FED8760>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond')) |
@Narendra0908 Please use your old way to initialize the RTCClient. And set a proper value for |
will do the needful and remaining stuff we can decide in todays meeting scheduled @2 |
We do have slack. Welcome to join with this invitation link https://join.slack.com/t/rtcclient/shared_invite/zt-269osdw4i-fygzMfIeS8s5mDMgNT2DSA |
I don't have the access for the slack link. Restricted from my company |
still can't access i will try using my personal pc for that since i am using my company network i don 't have access |
@Narendra0908 Have you resolved the issues with my template? If so, we could cancel this meeting. Thanks. |
no the issue is not resolved |
Hi, this is all working now for me. I am running version 0.9.0 with the old authentication flag set. |
Hi dixudx,
Thanks for this project. You already helped me a lot. The last piece that is currently not working for me is creating RTC workitems.
It results in a HTTP 500 error:
Trying to access
.../shapes/workitems/task
manually results in the following. I think the OSLC format of the workitem creation is no longer supported. Is this possible?The text was updated successfully, but these errors were encountered: