You are viewing a plain text version of this content. The canonical link for it is here.
Posted to photark-dev@incubator.apache.org by "Nick Choi (JIRA)" <ji...@apache.org> on 2010/03/01 13:49:06 UTC
[jira] Created: (PHOTARK-22) Remove hardcoded "/photark" in js
files
Remove hardcoded "/photark" in js files
---------------------------------------
Key: PHOTARK-22
URL: https://issues.apache.org/jira/browse/PHOTARK-22
Project: PhotArk
Issue Type: Improvement
Components: PhotArk Admin Services
Environment: Ubuntu 9.10 64bit
Reporter: Nick Choi
A url, "/photark/Gallery?smd" is used in some js files(admin.html, upload.html).
It has a problem when the project is deployed to different context root.
It would be changed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PHOTARK-22) Remove hardcoded "/photark" in js
files
Posted by "Luciano Resende (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PHOTARK-22?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luciano Resende updated PHOTARK-22:
-----------------------------------
Affects Version/s: PhotArk M2
Fix Version/s: PhotArk M2
> Remove hardcoded "/photark" in js files
> ---------------------------------------
>
> Key: PHOTARK-22
> URL: https://issues.apache.org/jira/browse/PHOTARK-22
> Project: PhotArk
> Issue Type: Improvement
> Components: PhotArk Admin Services
> Affects Versions: PhotArk M2
> Environment: Ubuntu 9.10 64bit
> Reporter: Nick Choi
> Fix For: PhotArk M2
>
> Attachments: hardcode.patch
>
>
> A url, "/photark/Gallery?smd" is used in some js files(admin.html, upload.html).
> It has a problem when the project is deployed to different context root.
> It would be changed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (PHOTARK-22) Remove hardcoded "/photark" in js
files
Posted by "Luciano Resende (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PHOTARK-22?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luciano Resende resolved PHOTARK-22.
------------------------------------
Resolution: Fixed
I believe this issue has been fixed with a solution based on the proposed patch. Please re-open if this is still an issue.
> Remove hardcoded "/photark" in js files
> ---------------------------------------
>
> Key: PHOTARK-22
> URL: https://issues.apache.org/jira/browse/PHOTARK-22
> Project: PhotArk
> Issue Type: Improvement
> Components: PhotArk Admin Services
> Affects Versions: PhotArk M2
> Environment: Ubuntu 9.10 64bit
> Reporter: Nick Choi
> Fix For: PhotArk M2
>
> Attachments: hardcode.patch
>
>
> A url, "/photark/Gallery?smd" is used in some js files(admin.html, upload.html).
> It has a problem when the project is deployed to different context root.
> It would be changed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PHOTARK-22) Remove hardcoded "/photark" in js
files
Posted by "Nick Choi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PHOTARK-22?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nick Choi updated PHOTARK-22:
-----------------------------
Attachment: hardcode.patch
Here is my suggestion. In fact, I use this solution in my web-site.
Firstly, I add photark.constants.GalleryServiceEndpoint into admin.html/upload.html and also include constants.js to avoid hardcoded.
Next, I change constants.js.
If someone deploys the project into another path, he would change only a variable in constants.js.
Thanks.
> Remove hardcoded "/photark" in js files
> ---------------------------------------
>
> Key: PHOTARK-22
> URL: https://issues.apache.org/jira/browse/PHOTARK-22
> Project: PhotArk
> Issue Type: Improvement
> Components: PhotArk Admin Services
> Environment: Ubuntu 9.10 64bit
> Reporter: Nick Choi
> Attachments: hardcode.patch
>
>
> A url, "/photark/Gallery?smd" is used in some js files(admin.html, upload.html).
> It has a problem when the project is deployed to different context root.
> It would be changed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.