We're updating the issue view to help you get more done. 

Lazy load fail on documents.isEmpty check

Description

iteration/view.xhtml

1 rendered="#{!versionHomeAction.version.documents.isEmpty()}"

can result in session errors

1 2 3 4 02:01:32,088 ERROR [org.zanata.exception.handler.AbstractExceptionHandler] (default task-75) exception happened in view: /iteration/view.xhtml: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.zanata.model.HProjectIteration.documents, could not initialize proxy - no Session at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:587) at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:204) at org.hibernate.collection.internal.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:148)

Environment

None

Status

Assignee

Damian Jansen

Reporter

Damian Jansen

Tested Version/s

None

Sprint

None

Fix versions

Affects versions

platform-4.6.0

Priority

unspecified