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

Unable to create Trusted Relationship with uploading metadata file #428

Closed
uboznikov opened this issue Dec 29, 2016 · 12 comments
Closed

Unable to create Trusted Relationship with uploading metadata file #428

uboznikov opened this issue Dec 29, 2016 · 12 comments
Assignees
Labels
Milestone

Comments

@uboznikov
Copy link
Contributor

Unable to create Trusted Relationship with uploading metadata file

@sahilIT2020
Copy link
Contributor

Do we have any updates?

@uboznikov uboznikov assigned shekhar16 and unassigned uboznikov Jan 8, 2017
@uboznikov
Copy link
Contributor Author

@shekhar16 What is the purpose of the if(!update){ statement in the case FILE:?

oxTrust issue #384

https://github.com/GluuFederation/oxTrust/blob/master/server/src/main/java/org/gluu/oxtrust/action/UpdateTrustRelationshipAction.java#L285-L287

Above is the cause of this issue. Please review. I am disabling the if for now.

uboznikov added a commit that referenced this issue Jan 8, 2017
@uboznikov
Copy link
Contributor Author

tr-upload-file-metadata-ok

@shekhar16
Copy link
Collaborator

@uboznikov the purpose of if(!update) is to make status active for only new registering user not for every updating details,if you comment this line it will re-enable the status=Active so. please revert this commit.

@shekhar16
Copy link
Collaborator

@uboznikov And how this line will make impact on uploading metadata file ,it is just setting a property status = active or inactive. .

@shekhar16 shekhar16 assigned uboznikov and unassigned shekhar16 Jan 9, 2017
@uboznikov
Copy link
Contributor Author

@shekhar16 This issue was hard to trace, I compared it with the version before your commit. Please do so, or check my test screenshot above.

@uboznikov uboznikov assigned shekhar16 and unassigned uboznikov Jan 9, 2017
@shekhar16
Copy link
Collaborator

@uboznikov if you are registering a new trust relationship than why this update value is true.For new TR update should be false.

shekhar16 pushed a commit that referenced this issue Jan 10, 2017
@shekhar16
Copy link
Collaborator

Fixed.

@shekhar16 shekhar16 assigned sahilIT2020 and unassigned shekhar16 Jan 10, 2017
@uboznikov
Copy link
Contributor Author

@shekhar16 That fix breaks the current code. Please compare to Shib v2 version. I have none or very minimal commits to the UI.

@uboznikov
Copy link
Contributor Author

@shekhar16 Have you tested it and compared before and after?

@shekhar16
Copy link
Collaborator

shekhar16 commented Jan 10, 2017

@uboznikov please check the code which i corrected, the update flag should only been set when it is going to update existing TR ,to check whether it already exist or not ,we are checking initially inum is set or not .
if inum is not set it means new TR has to be register.

i just reverted you code change and commented an update=true line which i think is not needed in this condition, update flag should be set on the basis of inum != null,as the existing TR should have inum .

if it breaks any functionality please let me know so that we can cover it.

@sahilIT2020
Copy link
Contributor

Able to create TR with attaching metadata file. Thanks

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

No branches or pull requests

3 participants