Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dart Polymer: Root folder of relative paths differs in Dartium and Chrome #18563

Closed
DartBot opened this issue Apr 30, 2014 · 19 comments
Closed
Assignees
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. closed-duplicate Closed in favor of an existing report P1 A high priority bug; for example, a single project is unusable or has many test failures

Comments

@DartBot
Copy link

DartBot commented Apr 30, 2014

This issue was originally filed by clds...@gmail.com


What steps will reproduce the problem?

  1. Consider the following folder structure:
    web/
      elements/
        my_element.css
        my_element.dart
        my_element.html
  2. Reference my_element.css as follows in my_element.html:
    <polymer-element name="my-element">
      <template>
        <link rel="stylesheet" href="my_element.css">
        [...]
      </template>
    </polymer-element>
  3. Run the code in Dartium and in Chrome (when compiled with dart2js).

What is the expected output? What do you see instead?
I get a "404 Not found" error:

Failed to load resource: the server responded with a status of 404 (Not Found)
  [...]/web/my_element.css

Changing the path to: <link rel="stylesheet" href="elements/my_element.css">
solves the problem in Dartium, but then the 404-error occurs in Chrome:

Failed to load resource: the server responded with a status of 404 (Not Found)
  [...]/web/elements/elements/my_element.css

It seems, that the root folder for realtive paths is different for Dartium and Chrome.
THe expected output would be the same root folder in both scenarios.

What version of the product are you using? On what operating system?
Windows 7, 32-bit; Dart version 1.3.3; Polymer version 0.9.5+2; further packages in use: animation, crypto, intl, quiver.

Please provide any additional information below.

@sgjesse
Copy link
Contributor

sgjesse commented May 1, 2014

Added Library-Polymer, Triaged labels.

@lrhn
Copy link
Member

lrhn commented May 1, 2014

Added Area-Polymer label.

@DartBot
Copy link
Author

DartBot commented May 4, 2014

This comment was originally written by robin.bakkeru...@gmail.com


Besides "href" for stylesheets, the same applies for image "src" tags.
See the attached dart project. Running test1/index.html results in many 404 errors


Attachment:
form_fields.tar.gz (12.38 KB)

@jmesserly
Copy link

Removed Area-Polymer label.
Added area-pkg, Pkg-Polymer labels.

@jmesserly
Copy link

Removed Library-Polymer label.

@kasperl
Copy link

kasperl commented Jun 11, 2014

Removed area-pkg label.
Added Area-Pkg, C7 labels.

@andersjohnsen
Copy link

Removed Priority-Unassigned label.
Added Priority-High label.

@sigmundch
Copy link
Member

Added this to the 1.6 milestone.
Removed Pkg-Polymer label.
Added Pkg-PolymerBuild label.

@sigmundch
Copy link
Member

Removed this from the 1.6 milestone.
Added Polymer-P-1 label.

@sigmundch
Copy link
Member

Removed Polymer-P-1 label.
Added Polymer-Milestone-Next label.

@sigmundch
Copy link
Member

Added PolymerMilestone-Next label.

@sigmundch
Copy link
Member

Removed Polymer-Milestone-Next label.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Added this to the 1.6 milestone.

@jakemac53
Copy link
Contributor

Set owner to @jakemac53.
Added Accepted label.

@sigmundch
Copy link
Member

Removed this from the 1.6 milestone.

@jakemac53
Copy link
Contributor

I think this is fixed in r38177 (and this is a dupe of 19992) but I still need to confirm.

@jakemac53
Copy link
Contributor

Confirmed, I am not able to replicate this issue any longer.


Added Fixed label.

@jakemac53
Copy link
Contributor

Added Duplicate label.
Marked as being merged into #17596.

@DartBot DartBot added Type-Defect P1 A high priority bug; for example, a single project is unusable or has many test failures area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. closed-duplicate Closed in favor of an existing report labels Jul 14, 2014
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-archive/polymer-dart#391.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. closed-duplicate Closed in favor of an existing report P1 A high priority bug; for example, a single project is unusable or has many test failures
Projects
None yet
Development

No branches or pull requests

8 participants