Ticket #1551 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

photo album doesn't work under apache

Reported by: tziade Owned by: gracinet
Priority: P1 Milestone: CPS 3.4.1
Component: CPSDefault Version: 3.0.0
Severity: normal Keywords:
Cc:

Description

the preview are not resized

Change History

comment:1 Changed 14 years ago by tziade

  • Status changed from new to assigned
  • Owner changed from trac to tziade

comment:2 Changed 14 years ago by sfermigier

How can this be related to Apache ?

comment:3 Changed 14 years ago by sfermigier

  • Milestone changed from CPS 3.4.1 to CPS 3.4.2

comment:4 Changed 14 years ago by tziade

  • Owner changed from tziade to gracinet
  • Status changed from assigned to new
  • Milestone changed from CPS 3.4.2 to CPS 3.4.1

the script (getImgTag) that generates the img tag uses relative urls in this context and this calculation doesn't work when the page is called from a virtual host under apache.

this leads to unsized img tags.

comment:5 Changed 14 years ago by gracinet

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

Done in [45677]: getImgTag now can guess a sensible traversal under ordinary virtual hosting (the kind that rewrites  http://localhost:8080/cps to  http://mysite.net). It would still fail under more complex vhosting schemes, though.

[45678]: Image Gallery layout method passes image object to getImgTag directly, hence should support other vhosting schemes (not tested though)

Note: See TracTickets for help on using tickets.