Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Bug #1172 (closed)

Opened 15 years ago

Closed 15 years ago

create share does not add object graph properly

Reported by: atarkowska Owned by: jamoore
Priority: blocker Cc:
Sprint: n.a.
Total Remaining Time: n.a.

Description

createShare does not add object graph properly:

2009-02-09 16:29:44,985 INFO  [        ome.services.util.ServiceHandler] (l.Server-8)  Meth:    interface ome.api.IQuery.findByQuery
2009-02-09 16:29:44,985 INFO  [        ome.services.util.ServiceHandler] (l.Server-8)  Args:    [select i from Image as i left outer join fetch i.pixels as p left outer join fetch p.channels as c left outer join fetch c.logicalChannel as lc left outer join fetch c.statsInfo as sinfo left outer join fetch p.planeInfo as pinfo left outer join fetch p.thumbnails as thumb left outer join fetch p.pixelsFileMaps as map left outer join fetch map.parent as ofile left outer join fetch p.settings as setting where i.id=:oid, ome.parameters.Parameters@e246d1]
2009-02-09 16:29:44,985 INFO  [         ome.security.basic.EventHandler] (l.Server-8)  Auth:    user=101,group=2,event=null(User)
2009-02-09 16:29:45,226 INFO  [        ome.services.util.ServiceHandler] (l.Server-8)  Excp:    ome.conditions.SecurityViolation: ome.model.core.Pixels:Id_55 not contained in share

but object was loaded by the query:

"select i from Image as i " \
"left outer join fetch i.pixels as p " \
"left outer join fetch p.channels as c " \
"left outer join fetch c.logicalChannel as lc " \
"left outer join fetch c.statsInfo as sinfo " \
"left outer join fetch p.planeInfo as pinfo " \
"left outer join fetch p.thumbnails as thumb " \
"left outer join fetch p.pixelsFileMaps as map " \
"left outer join fetch map.parent as ofile " \
"left outer join fetch p.settings as setting " \
"where i.id in (:ids)"

Change History (5)

comment:1 Changed 15 years ago by jmoore

Ola, sorry, I don't understad. As we discussed some time ago, the add to share method is not yet "smart", and it's unlikely that we can produce those smarts for 4.0. Can you show me what you are currently doing and what needs to be improved/fixed for this release?

comment:2 Changed 15 years ago by atarkowska

According to converstaion:

  • 14:59:15 Ola: Why create share doesn;t add image to the share properly?
  • 14:59:45 Josh Moore: Nothing's changed there. Pixels was never automatically added though we discussed it.
  • 15:01:54 Ola: ... how shell I create share to allow member to render an image ?
  • 15:03:27 Josh Moore: Ola: at the moment you'd have to add all the types necessary for rendering.

What I understand, I have to add entire object graph to share. After I can retrieve it, can't I? Because the same problem exists in Dataset with Images please try the test r3519.

comment:3 Changed 15 years ago by jmoore

r3571 modifies the test to pass.

comment:4 Changed 15 years ago by jmoore

r3573 has graph parsing rather than top-level object only. Ola, can you try this out for the moment?

comment:5 Changed 15 years ago by jmoore

  • Resolution set to fixed
  • Status changed from new to closed

Closing. #1187 has the next part of this, but in a later milestone.

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.62710 sec.)

We're Hiring!