Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Development
  1. OpenProject
  2. Forums
  3. Development
  4. Incorrect URL for Local Avatar

Incorrect URL for Local Avatar

Added by Mike Lewis over 9 years ago

Not sure if this is related to .

Using OP 5.0.13. I’ve set the default for all users to use Gravatar MonsterIDs if they don’t have their own Gravatar. One of our users decided to upload his own user avatar to OP without signing up for Gravatar.

In the attached example, on the left side of the work package screen you can see that user Leo Correa has a custom avatar, but on the right side (the work package activity) you see broken links.

User custom avatar works on left, not on right.

Upon investigation, the image source addresses to localhost, which you can’t do if you are using the system from another computer. (Unless, of course, you happen to be running a local web server with the appropriate file structure to provide the image…. :-P )This would work only if using OP on the host machine itself.

HTML source showing a URL referencing "localhost", despite what is set for host in the system settings.

I have configured my host name in the General System Setting to be the actual IP address of the host that OpenProject is operating on. It would seem that the avatar image references for work package activity are not using the value in this setting. (Which is why it works on the left side and not the right side.)


Replies (4)

RE: Incorrect URL for Local Avatar - Added by Oliver Günther over 9 years ago

Hi Mike,

thanks for the report, it is most likely a different issue.

I’ve created a second bug to track its progress

Best,
Oliver

RE: Incorrect URL for Local Avatar - Added by Oliver Günther over 9 years ago

Hey Mike,

what is the setting for hostname in your System settings? On my local machine, the local avatar URL is tied to that value.
With that value correctly set, I can’t reproduce the error.

Best,
Oliver

RE: Incorrect URL for Local Avatar - Added by Mike Lewis over 9 years ago

Oliver,

Host name is set to the IP address of the machine, and was when I saw the problem. I cleared my browser cache and it appears to be working now. I do remember I had to go to System Settings to reset the host name from “localhost” to the machine’s IP address after one of the OP upgrades, but I would have thought that existing system settings would have been left untouched during an upgrade. Undoubtedly some mistake on my part that I don’t now remember.

Thanks for double checking.

- Mike

RE: Incorrect URL for Local Avatar - Added by Oliver Günther over 9 years ago

Hey Mike,

thanks for the thorough update. If you’re on a packaged installation, the hostname is set on each upgrade (rather, everytime you run openproject configure) to the value set during the wizard.

You can view that setting in /etc/openproject/installer.dat (it’s the server/hostname value).
To change the value, either

1. run openproject reconfigure to reopen the installer (simply confirm all other values with return to use the values stored in the installer.dat)
2. Modify /etc/openproject/installer.dat directly.

Best,
Oliver

  • (1 - 4/4)
Loading...