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

REST API: Regression: "GET /resources/:id" is no longer accepted in v1.0.111 #843

Closed
tsumare opened this Issue Oct 3, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@tsumare

tsumare commented Oct 3, 2018

Operating system

  • Windows
  • macOS
  • Linux

Application

  • Desktop

Issue

I just downloaded v1.0.111 to make use of #827, however it appears to introduce a regression vs 1.0.110. I can no longer GET /resources/:id. Although I am now able to GET /resources/:id/file, I am unable to access to the filename and related metadata.

Under v1.0.110:

$ curl -vv 'http://localhost:41184/resources/b76a0c430c8247e18e970aa14ae1a727?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';echo                                                                                                                                         
*   Trying 127.0.0.1...                                                                                                                                                                       
* TCP_NODELAY set                                                                                                                                                                             
* Connected to localhost (127.0.0.1) port 41184 (#0)                                                                                                                                          
> GET /resources/b76a0c430c8247e18e970aa14ae1a727?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1                                                                                                                                                                                            
> Host: localhost:41184                                                                                                                                                                       
> User-Agent: curl/7.58.0                                                                                                                                                                     
> Accept: */*                                                                                                                                                                                 
>                                                                                                                                                                                             
< HTTP/1.1 200 OK                                                                                                                                                                             
< Content-Type: application/json                                                                                                                                                              
< Access-Control-Allow-Origin: *                                                                                                                                                              
< Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, PATCH, DELETE                                                                                                                        
< Access-Control-Allow-Headers: X-Requested-With,content-type                                                                                                                                 
< Date: Wed, 03 Oct 2018 20:28:14 GMT                                                                                                                                                         
< Connection: keep-alive                                                                                                                                                                      
< Transfer-Encoding: chunked                                                                                                                                                                  
<                                                                                                                                                                                             
* Connection #0 to host localhost left intact                                                                                                                                                 
{"id":"b76a0c430c8247e18e970aa14ae1a727","title":"IMG_20180924_105627.jpg","mime":"image/jpeg","filename":"","created_time":1537807408672,"updated_time":1537807408672,"user_created_time":1537807408672,"user_updated_time":1537807408672,"file_extension":"jpg","encryption_cipher_text":"","encryption_applied":0,"encryption_blob_encrypted":0,"type_":4}                                

Under v1.0.111:

$ curl -vv 'http://localhost:41184/resources/b76a0c430c8247e18e970aa14ae1a727?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
08d30228fb9451e3e9f36054ca6ba21fbe81b69836e2098';echo
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 41184 (#0)
> GET /resources/b76a0c430c8247e18e970aa14ae1a727?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1
> Host: localhost:41184
> User-Agent: curl/7.58.0
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Content-Type: text/plain
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, PATCH, DELETE
< Access-Control-Allow-Headers: X-Requested-With,content-type
< Date: Wed, 03 Oct 2018 20:24:29 GMT
< Connection: keep-alive
< Transfer-Encoding: chunked
<
* Connection #0 to host localhost left intact
Not Found

The image b76a0c430c8247e18e970aa14ae1a727 renders correctly in the GUI under both versions, and can successfully be downloaded via /resources/b76a0c430c8247e18e970aa14ae1a727/file.

@laurent22 laurent22 closed this in 6b10d5d Oct 4, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment