There is 1 update, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-3642b8d5-cd9d-4345-8d72-8d3ec3e570d2 XWIKI-22140 In Progress

Standard URL Resolver throws a generic error

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-79b84b78-0fbf-49a5-886c-4fb372c0a72c Changes by Vincent Massol on 30/May/24 11:41
 
Status: Open In Progress
 
 

1 comment

 
cid:jira-generated-image-avatar-79b84b78-0fbf-49a5-886c-4fb372c0a72c Vincent Massol on 30/May/24 11:40
 

To reproduce, put the following in a wiki page:

{{groovy}}
import org.xwiki.model.reference.*
import org.xwiki.component.util.*
import org.xwiki.model.*

def type = new DefaultParameterizedType(null, EntityReferenceResolver.class, String.class)
def resolver = services.component.getInstance(type, "resource/standardURL")
resolver.resolve("https://xwiki.com/xwiki", EntityType.DOCUMENT)
{{/groovy}}