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

Limitations on the image ID #24

Closed
Sparragus opened this issue Dec 7, 2015 · 3 comments
Closed

Limitations on the image ID #24

Sparragus opened this issue Dec 7, 2015 · 3 comments

Comments

@Sparragus
Copy link

I'm trying to add an image to pastec using PUT: /index/images/<id>. The id is a string representation of a very big int. (i.e. '624257033651527680'). However, when I go look up that id later on, I can't find it. Perhaps this is due to some restrictions on the id. If not, then maybe we have a bug.

If there are any limitations on the id, we should specify it on the API. I'd be happy to send in a pull request for this matter after discussing the issue.

@Sparragus
Copy link
Author

I'm guessing the limitation is a u_int32_t as seen on requesthandler.cpp. Is this right?

@magwyz
Copy link
Owner

magwyz commented Dec 7, 2015

Yes it is right.
It is written at the beginning of the HTTP API section of the documentation: http://pastec.io/doc
"Each image has an associated id that is a 32 bit unsigned integer."
Maybe it should be specified for each concerned API call.

@magwyz magwyz closed this as completed Dec 7, 2015
@Sparragus
Copy link
Author

Oh whoa. I should've seen that. Sorry for the noise and thank you for clarifying that!

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

No branches or pull requests

2 participants