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

Fix for #121 download attachments using API access key #202

Merged

Conversation

keritaf
Copy link
Contributor

@keritaf keritaf commented Jun 22, 2015

Fixes #121

@alexeyOnGitHub
Copy link
Member

how did you test this? I don't see any tests

@keritaf
Copy link
Contributor Author

keritaf commented Jul 7, 2015

Almost same problem as with project custom fields in #201 - you can't actually create an attachment using Redmine REST API. Added integration test stub for the API key authentication case.

@alexeyOnGitHub alexeyOnGitHub added this to the 2.5.0 milestone Oct 16, 2015
@alexeyOnGitHub alexeyOnGitHub changed the title Fix variant for #121 Fix for #121 download attachments using API access key Oct 16, 2015
@alexeyOnGitHub
Copy link
Member

I'm getting this error when running your test:

com.taskadapter.redmineapi.RedmineInternalError: Unsupported class class com.taskadapter.redmineapi.bean.Attachment
at com.taskadapter.redmineapi.internal.Transport.getConfig(Transport.java:610)
at com.taskadapter.redmineapi.internal.Transport.getObject(Transport.java:329)
at com.taskadapter.redmineapi.internal.Transport.getObject(Transport.java:395)
at com.taskadapter.redmineapi.AttachmentManager.getAttachmentById(AttachmentManager.java:158)
at com.taskadapter.redmineapi.AttachmentIntegrationTest.testDownloadAttachmentContentWithAPIKey(AttachmentIntegrationTest.java:181)

@alexeyOnGitHub alexeyOnGitHub modified the milestones: 2.6.0, 2.5.0 Oct 17, 2015
@alexeyOnGitHub
Copy link
Member

I merged a fix for "unsupported class" to "master".

alexeyOnGitHub added a commit that referenced this pull request Nov 12, 2015
Fix for #121  download attachments using API access key
@alexeyOnGitHub alexeyOnGitHub merged commit 69c14bc into taskadapter:master Nov 12, 2015
@alexeyOnGitHub
Copy link
Member

thank you, @keritaf

@alexeyOnGitHub alexeyOnGitHub added this to the 2.7.0 milestone Nov 12, 2015
@alexeyOnGitHub alexeyOnGitHub modified the milestones: 3.0.0, 2.7.0 Jul 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants