Task #11026

User missing privileges

Added by Denis Pyriochos over 1 year ago. Updated over 1 year ago.

Status:ClosedStart date:Jan 23, 2018
Priority:HighDue date:
Assignee:Costantino Perciante% Done:

100%

Category:-
Sprint:Release 4.10.0
Milestones:
Duration:

Description

During #10844 test, it seems the user seems to be missing privileges while uploading a file. See preprod1 tomcat catalina.out log, start at 2018-01-23 16:28:45,829, snippet pasted.

Couldnotsave.png (148 KB) Maria Di Girolamo, Jan 26, 2018 03:16 PM

2116

History

#1 Updated by Maria Di Girolamo over 1 year ago

  • Priority changed from Normal to High

#2 Updated by Massimiliano Assante over 1 year ago

  • Assignee changed from Massimiliano Assante to Costantino Perciante

#3 Updated by Denis Pyriochos over 1 year ago

FWIW I just created a model and it uploaded the files correctly. I did it in preVRE as MrPink (identical to the test that failed)

#4 Updated by Costantino Perciante over 1 year ago

Hi Denis, sorry for this late reply.

Did you use an older folder in your previous test?

#5 Updated by Maria Di Girolamo over 1 year ago

Hi @costantino.perciante@isti.cnr.it ,
the test has been executed by me.
But I'm sorry I don't remember I can repeat the test .

#6 Updated by Costantino Perciante over 1 year ago

Maria Di Girolamo wrote:

Hi @costantino.perciante@isti.cnr.it ,
the test has been executed by me.
But I'm sorry I don't remember I can repeat the test .

No worries Maria, by the log I can see the folder you used. It is just to understand what happened there.

However, if you can repeat the test it would be perfect

#7 Updated by Maria Di Girolamo over 1 year ago

I've repeated the test , in any case the file uploaded from my local directory : proper_sampling.xlsx and proper_weight_categories.xlsx.

The uploaded is executed when I'm creating the model .
User Test is Mister Orange.

Please let me know if I wrong something, in any case please @denispyr@i2s.gr feel free to add anything.

Thank you ,
Maria.

#8 Updated by Maria Di Girolamo over 1 year ago

Sorry , the comment is completed .
The test fails , the error is occurred when mister orange try to upload the two file, as reported in the file attached.

#9 Updated by Costantino Perciante over 1 year ago

I've set write rights to mister.orange for that folder. I hope it is enough, but let me know

#10 Updated by Costantino Perciante over 1 year ago

  • % Done changed from 0 to 100
  • Status changed from New to In Progress

It seems ok now. But I saw this other error that @denispyr@i2s.gr could investigate

2018-01-26 14:51:32,110 DEBUG portlet.BasePortlet [pool-43-thread-1,getSocialNetworkingEndpoint:289] %14:51:32,110 DEBUG [pool-43-thread-1][BasePortlet:289] For [SocialNetworking] in scope [/gcube/preprod/preVRE] got [http://socialnetworking-t.pre.d4science.org:80/social-networking-library-ws/rest]
[PORTAL] 3248809 [pool-43-thread-1] TRACE org.gcube.data.simulfishgrowthdata.util.SocialNetworkingExecutor - calling uri [http://socialnetworking-t.pre.d4science.org:80/social-networking-library-ws/rest/2/messages/write-message]
[PORTAL] 3248883 [pool-43-thread-1] TRACE org.gcube.data.simulfishgrowthdata.util.SendMessageExecutor - posting ~~{"body":"Starting KPIs calculations on model [ProperModel4-10-0_NEW]. You will be notified as soon as they are completed","subject":"Calculating [ProperModel4-10-0_NEW]","recipients":[{"id":"mister.orange"}]}~~
2018-01-26 14:51:32,317 DEBUG jsp.view_jsp [http-bio-9090-exec-29,_jspService:158] %14:51:32,317 DEBUG [http-bio-9090-exec-29][view_jsp:158] starting
[PORTAL] 3249746 [pool-43-thread-1] TRACE org.gcube.data.simulfishgrowthdata.util.SocialNetworkingExecutor - status line is [HTTP/1.1 201 Created]
[PORTAL] 3249747 [pool-43-thread-1] TRACE org.gcube.data.simulfishgrowthdata.util.SocialNetworkingExecutor - response is [{
  "success" : true,
  "message" : null,
  "result" : "817cef5e-44c4-4e33-9e77-a2e7c58712ca"
}]
[PORTAL] 3249747 [pool-43-thread-1] TRACE org.gcube.data.simulfishgrowthdata.util.SocialNetworkingExecutor - contentes ~~~{
  "success" : true,
  "message" : null,
  "result" : "817cef5e-44c4-4e33-9e77-a2e7c58712ca"
}~~~
2018-01-26 14:51:33,057 WARN  portlet.ModelerPortlet [pool-43-thread-1,lambda$spawnSaveThread$0:396] %com.google.gson.JsonSyntaxException: Expected a com.google.gson.JsonObject but was com.google.gson.JsonPrimitive
    at com.google.gson.internal.bind.TypeAdapters$35$1.read(TypeAdapters.java:913)
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:129)
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:220)
    at com.google.gson.Gson.fromJson(Gson.java:887)
    at com.google.gson.Gson.fromJson(Gson.java:852)
    at com.google.gson.Gson.fromJson(Gson.java:801)
    at com.google.gson.Gson.fromJson(Gson.java:773)
    at org.gcube.data.simulfishgrowthdata.util.SocialNetworkingExecutor.processOutput(SocialNetworkingExecutor.java:144)
    at org.gcube.data.simulfishgrowthdata.util.SendMessageExecutor.processOutput(SendMessageExecutor.java:69)
    at org.gcube.data.simulfishgrowthdata.util.SocialNetworkingExecutor.execute(SocialNetworkingExecutor.java:51)
    at org.gcube.portlets.user.simulfishgrowth.portlet.ModelerPortlet.lambda$spawnSaveThread$0(ModelerPortlet.java:393)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)
14:51:33,057 WARN  [pool-43-thread-1][ModelerPortlet:396] Could not send notification message to the user
com.google.gson.JsonSyntaxException: Expected a com.google.gson.JsonObject but was com.google.gson.JsonPrimitive
    at com.google.gson.internal.bind.TypeAdapters$35$1.read(TypeAdapters.java:913)
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:129)
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:220)
    at com.google.gson.Gson.fromJson(Gson.java:887)
    at com.google.gson.Gson.fromJson(Gson.java:852)
    at com.google.gson.Gson.fromJson(Gson.java:801)
    at com.google.gson.Gson.fromJson(Gson.java:773)
    at org.gcube.data.simulfishgrowthdata.util.SocialNetworkingExecutor.processOutput(SocialNetworkingExecutor.java:144)
    at org.gcube.data.simulfishgrowthdata.util.SendMessageExecutor.processOutput(SendMessageExecutor.java:69)
    at org.gcube.data.simulfishgrowthdata.util.SocialNetworkingExecutor.execute(SocialNetworkingExecutor.java:51)
    at org.gcube.portlets.user.simulfishgrowth.portlet.ModelerPortlet.lambda$spawnSaveThread$0(ModelerPortlet.java:393)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)

#11 Updated by Costantino Perciante over 1 year ago

  • Status changed from In Progress to Feedback

#12 Updated by Maria Di Girolamo over 1 year ago

  • % Done changed from 100 to 40

#13 Updated by Denis Pyriochos over 1 year ago

  • Status changed from Feedback to In Progress

Hey @costantino.perciante@isti.cnr.it. The error you mention is not related to the file upload issue. It seems the portlet code does not interpret a response code correctly but it this does not affect hte functionality.

On the other hand, I am not sure why the % Done moved from 100% to 40%. I was about to close the issue. @mariaantonietta.digirolamo@eng.it is something left?

#14 Updated by Maria Di Girolamo over 1 year ago

  • % Done changed from 40 to 100

Hi @denispyr@i2s.gr , I thought that the issue was related to the missing privileges.

I update the %Done , but I can continue the test?

Thank you
Maria.

#15 Updated by Denis Pyriochos over 1 year ago

  • Status changed from In Progress to Closed

Hey @mariaantonietta.digirolamo@eng.it.

I re-tested at 25/1 and the test was successful (see comment 3 above).

I just tested, in preVRE, as Mr Pink and the test succeeds. I also tested as Mr Orange and the test succeeds (see preVRE feeds at 29/1 around 10:20).

By "success" I include: proper uploads, proper calculations, proper notifications in inbox, proper feed post.

So, as far as I can tell, the portlet is running well, it is testable so I am closing this task.

Also available in: Atom PDF