roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Mazza (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (ROL-770) showResourceImage macro does not produce URL properly
Date Sun, 22 Jun 2014 07:21:24 GMT

     [ https://issues.apache.org/jira/browse/ROL-770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Glen Mazza closed ROL-770.
--------------------------

    Resolution: Unresolved

Item from 2005.  There is no user.vm anymore.

> showResourceImage macro does not produce URL properly
> -----------------------------------------------------
>
>                 Key: ROL-770
>                 URL: https://issues.apache.org/jira/browse/ROL-770
>             Project: Apache Roller
>          Issue Type: Improvement
>          Components: Themes and Macros
>    Affects Versions: 1.2
>         Environment: Windows XP Home, JDK 1.5.0_04, AMD Athlon-M 2800+
>            Reporter: David Graff
>            Assignee: Roller Unassigned
>            Priority: Trivial
>         Attachments: ASF.LICENSE.NOT.GRANTED--CategoryImageDisplayPatch.diff
>
>
> I noticed that the showResourceImage macro concatenates the parts of the  resource location
incorrectly.
> Currently it is as follows (Line 30):
>     #set( $imageUrl = $uploadPath / $userName / $fileName )
> Ideally, it would be better to do as:
>     #set ( $imageUrl = "${ctxPath}${uploadPath}/${userName}/${fileName}" )
> This way the context path is included and there is no confusion about possibly using
division against the individual parts.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message