Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

ENAMETOOLONG errors with long URLs #534

Open
madrobby opened this issue Jul 22, 2016 · 0 comments
Open

ENAMETOOLONG errors with long URLs #534

madrobby opened this issue Jul 22, 2016 · 0 comments

Comments

@madrobby
Copy link

We use some dynamic URLs in our app that can exceed the allowed length of filenames of HFS+ (255 UTF-16 characters).

This leads to errors when pow is checking if there's a local file to serve before handing things off to Rails:

Error: ENAMETOOLONG, stat '/Users/thomasfuchs/Projects/freckle/public/time/report/people/48101,48102,48104,48105,48106,48107,48108,48109,48110,48114,48115,48116,48117,48118,48119,48120,48121,48122,48123,48124,48125,48127,48128,48129,48130,48131,48132,48133,48134,48135,48136,48137,48138,48139,48140,48141,48142,48143,48144,48146,48147,48148,48149,48150,48151,48153,48154,48155,48156,48157,48158,48159,48160,48163,48165,48166,48167,48210,48211,48212,48213,48215,48216,48217,48218,48219,48220,48221,48222,48223,48224,48225,48226,48227,48228,48229,48303,48376,48401,48489,48490,48801/projects/380456,380457,380458,380460,380461,380462,380463,380464,380465,380466,380467,380468,380469,380470,380471,380472,380473,380474,380475,380476,380477,380478,380479,380480,380481,380482,380483,380484,380485,380486,380487,380488,380489,380490,380491,380492,380493,380494,380495,380496,380497,380498,380499,380500,380501,380502,380503,380504,380505,380506,380507,380508,380509,380510,380511,380512,380513,380514,380516,380517,380518,380519,380520,380521,380522,380523,380524,380525,380526,380527,380528,380529,380530,380531,380532,380533,380534,380535,380536,380537,380538,380539,380540,380541,380542,380543,380544,380545,380546,380707,380708,380709,380710,380711,380713,380714,380715,380716,380717,380718,380719,380720,380721,380722,380723,380724,380725,380726,380727,380728,380729,380730,380731,380732,380733,380734,380735,380736,380737,380738,380739,380740,380741,380892,380893,380894,380895,380896,380897,381145,381149,381288,381297,381578,381579,381591,382193,382498,382632,382633,382700,382864,382997,383170,384298,384477,385567,386654/tags/any,1038777,1039003,1039478,1040073,1040090,1040349'

I suggest to catch this error in pow and ignore it, instead trying to call my Rails app.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant