cancel
Showing results for 
Search instead for 
Did you mean: 

Firefox problem with Share Forms

sebbri
Champ in-the-making
Champ in-the-making
Hello,

I use the Community Version 201605 GA .

I am facing a strange problem .

With firefox, the forms do not work the same way. Indeed, under Chrome , either from the rule editor or from action transform form , I get a select field for selection. Firefox , I get a text field .

Example, I debugged the action form "Transform" which normally contains a dropdown menu with the choice of mime types .

[size=20]With Firefox, i have a text field :[/size]

2016-08-02 15:56:09,792  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] Returning "post" from getParameter for "method"
2016-08-02 15:56:09,792  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] Returning "json" from getParameter for "submitType"
2016-08-02 15:56:09,792  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] Returning "/api/action/transform/formprocessor" from getParameter for "submissionUrl"
2016-08-02 15:56:09,792  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] Returning "action" from getParameter for "itemKind"
2016-08-02 15:56:09,792  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] Returning "transform" from getParameter for "itemId"
2016-08-02 15:56:09,792  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] Returning "null" from getParameter for "formId"
2016-08-02 15:56:09,792  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] Returning "true" from getParameter for "showCancelButton"
2016-08-02 15:56:09,792  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] Returning "false" from getParameter for "showResetButton"
2016-08-02 15:56:09,792  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] Returning "true" from getParameter for "showSubmitButton"
2016-08-02 15:56:09,792  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] Returning "workspace://SpacesStore/7f095ba3-1dd8-4213-9f8a-f955e25fde82" from getParameter for "destination"
2016-08-02 15:56:09,792  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] Returning "null" from getParameter for "redirect"
2016-08-02 15:56:09,792  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] Returning "null" from getParameter for "js"
2016-08-02 15:56:09,792  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] Fields configured to be visible for create mode = [mime-type, destination-folder]
2016-08-02 15:56:09,792  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] Fields configured to be visible for set "" = [mime-type, destination-folder]
2016-08-02 15:56:09,792  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] Returning label for set: Défaut
2016-08-02 15:56:09,792  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] Generating model for field "mime-type"
2016-08-02 15:56:09,793  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] Generating model for field "destination-folder"
2016-08-02 15:56:09,793  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] Returning "false" from getParameter for "showCaption"
2016-08-02 15:56:09,793  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-4] formUIModel =
{
   enctype: "application/json",
   method: "post",
   data:
   {
   },
   destination: "workspace://SpacesStore/7f095ba3-1dd8-4213-9f8a-f955e25fde82",
   constraints:
   [
      constraint(fieldId=prop_mime-type id=MANDATORY validationHandler=Alfresco.forms.validation.mandatory event=keyup,change message=Une valeur doit être indiquée.),
      constraint(fieldId=assoc_destination-folder id=MANDATORY validationHandler=Alfresco.forms.validation.mandatory event=keyup,change message=Une valeur doit être indiquée.)
   ],
   structure:
   [
      set(id= appearance=null label=Défaut template=null children=[field(prop_mime-type), field(assoc_destination-folder)])
   ],
   showCancelButton: true,
   mode: "create",
   showResetButton: false,
   showSubmitButton: true,
   arguments:
   {
      itemKind: "action",
      formId: null,
      itemId: "transform"
   },
   showCaption: false,
   submissionUrl: "/share/proxy/alfresco/api/action/transform/formprocessor",
   fields:
   {
      prop_mime-type: field(id=prop_mime-type name=prop_mime-type configName=mime-type type=property value= label=Format requis description=mime-type help=null helpEncodeHtml=true dataKeyName=mime-type dataType=text endpointDirection=null disabled=false mandatory=true repeating=false transitory=false indexTokenisationMode=null control(template=/org/alfresco/components/form/controls/textfield.ftl params={})),
      assoc_destination-folder: field(id=assoc_destination-folder name=assoc_destination-folder configName=destination-folder type=association value= label=Destination description=destination-folder help=null helpEncodeHtml=true dataKeyName=destination-folder dataType=cm:cmobject endpointDirection=TARGET disabled=false mandatory=true repeating=false transitory=false indexTokenisationMode=null control(template=/org/alfresco/components/form/controls/association.ftl params={}))
   }
}

[size=20]With Chrome, i have a select field :[/size]

2016-08-02 15:53:21,913  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] Returning "post" from getParameter for "method"
2016-08-02 15:53:21,914  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] Returning "json" from getParameter for "submitType"
2016-08-02 15:53:21,914  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] Returning "/api/action/transform/formprocessor" from getParameter for "submissionUrl"
2016-08-02 15:53:21,914  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] Returning "action" from getParameter for "itemKind"
2016-08-02 15:53:21,914  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] Returning "transform" from getParameter for "itemId"
2016-08-02 15:53:21,914  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] Returning "null" from getParameter for "formId"
2016-08-02 15:53:21,914  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] Returning "true" from getParameter for "showCancelButton"
2016-08-02 15:53:21,914  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] Returning "false" from getParameter for "showResetButton"
2016-08-02 15:53:21,914  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] Returning "true" from getParameter for "showSubmitButton"
2016-08-02 15:53:21,914  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] Returning "workspace://SpacesStore/7f095ba3-1dd8-4213-9f8a-f955e25fde82" from getParameter for "destination"
2016-08-02 15:53:21,914  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] Returning "null" from getParameter for "redirect"
2016-08-02 15:53:21,914  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] Returning "null" from getParameter for "js"
2016-08-02 15:53:21,914  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] Fields configured to be visible for create mode = [mime-type, destination-folder]
2016-08-02 15:53:21,914  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] Fields configured to be visible for set "" = [mime-type, destination-folder]
2016-08-02 15:53:21,914  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] Returning label for set: Défaut
2016-08-02 15:53:21,914  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] Generating model for field "mime-type"
2016-08-02 15:53:21,915  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] Generating model for field "destination-folder"
2016-08-02 15:53:21,915  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] Returning "false" from getParameter for "showCaption"
2016-08-02 15:53:21,960  DEBUG [scripts.forms.FormUIGet] [ajp-apr-8009-exec-7] formUIModel =
{
   enctype: "application/json",
   method: "post",
   data:
   {
   },
   destination: "workspace://SpacesStore/7f095ba3-1dd8-4213-9f8a-f955e25fde82",
   constraints:
   [
      constraint(fieldId=prop_mime-type id=MANDATORY validationHandler=Alfresco.forms.validation.mandatory event=keyup,change message=Une valeur doit être indiquée.),
      constraint(fieldId=prop_mime-type id=LIST validationHandler=Alfresco.forms.validation.inList event=blur message=La valeur ne figure pas dans la liste.),
      constraint(fieldId=assoc_destination-folder id=MANDATORY validationHandler=Alfresco.forms.validation.mandatory event=keyup,change message=Une valeur doit être indiquée.)
   ],
   structure:
   [
      set(id= appearance=null label=Défaut template=null children=[field(prop_mime-type), field(assoc_destination-folder)])
   ],
   showCancelButton: true,
   mode: "create",
   showResetButton: false,
   showSubmitButton: true,
   arguments:
   {
      itemKind: "action",
      formId: null,
      itemId: "transform"
   },
   showCaption: false,
   submissionUrl: "/share/proxy/alfresco/api/action/transform/formprocessor",
   fields:
   {
      prop_mime-type: field(id=prop_mime-type name=prop_mime-type configName=mime-type type=property value= label=Format requis description=mime-type help=null helpEncodeHtml=true dataKeyName=mime-type dataType=text endpointDirection=null disabled=false mandatory=true repeating=false transitory=false indexTokenisationMode=null control(template=/org/alfresco/components/form/controls/selectone.ftl params={options=application/acp|Alfresco Content Package#alf#application/dita+xml|DITA#alf#application/eps|EPS Type PostScript#alf#application/framemaker|Adobe FrameMaker#alf#application/illustrator|Adobe Illustrator File#alf#application/java|Java Class#alf#application/java-archive|Java Archive#alf#application/json|JSON#alf#application/msword|Microsoft Word#alf#application/octet-stream|Binary File (Octet Stream)#alf#application/ogg|Ogg Multiplex#alf#application/pagemaker|Adobe PageMaker#alf#application/pdf|Adobe PDF Document#alf#application/postscript|PostScript#alf#application/remote-printing|Printer Text File#alf#application/rss+xml|RSS#alf#application/rtf|Rich Text Format#alf#application/sgml|SGML (Machine Readable)#alf#application/vnd.adobe.aftereffects.project|Adobe AfterEffects Project#alf#application/vnd.adobe.aftereffects.template|Adobe AfterEffects Template#alf#application/vnd.adobe.air-application-installer-package+zip|Adobe AIR#alf#application/vnd.adobe.xdp+xml|Adobe Acrobat XML Data Package#alf#application/vnd.android.package-archive|Android Package#alf#application/vnd.apple.keynote|Apple iWork Keynote#alf#application/vnd.apple.numbers|Apple iWork Numbers#alf#application/vnd.apple.pages|Apple iWork Pages#alf#application/vnd.ms-excel|Microsoft Excel#alf#application/vnd.ms-excel.addin.macroenabled.12|Microsoft Excel 2007 add-in#alf#application/vnd.ms-excel.sheet.binary.macroenabled.12|Microsoft Excel 2007 binary workbook#alf#application/vnd.ms-excel.sheet.macroenabled.12|Microsoft Excel 2007 macro-enabled workbook#alf#application/vnd.ms-excel.template.macroenabled.12|Microsoft Excel 2007 macro-enabled workbook template#alf#application/vnd.ms-outlook|Microsoft Outlook Message#alf#application/vnd.ms-powerpoint|Microsoft PowerPoint#alf#application/vnd.ms-powerpoint.addin.macroenabled.12|Microsoft PowerPoint 2007 add-in#alf#application/vnd.ms-powerpoint.presentation.macroenabled.12|Microsoft PowerPoint 2007 macro-enabled presentation#alf#application/vnd.ms-powerpoint.slide.macroenabled.12|Microsoft PowerPoint 2007 macro-enabled slide#alf#application/vnd.ms-powerpoint.slideshow.macroenabled.12|Microsoft PowerPoint 2007 macro-enabled slide show#alf#application/vnd.ms-powerpoint.template.macroenabled.12|Microsoft PowerPoint 2007 macro-enabled presentation template#alf#application/vnd.ms-project|Microsoft Project#alf#application/vnd.ms-word.document.macroenabled.12|Microsoft Word 2007 macro-enabled document#alf#application/vnd.ms-word.template.macroenabled.12|Microsoft Word 2007 macro-enabled document template#alf#application/vnd.oasis.opendocument.chart|OpenDocument Chart#alf#application/vnd.oasis.opendocument.database|OpenDocument Database#alf#application/vnd.oasis.opendocument.formula|OpenDocument Formula#alf#application/vnd.oasis.opendocument.graphics|OpenDocument Drawing#alf#application/vnd.oasis.opendocument.graphics-template|OpenDocument Drawing Template#alf#application/vnd.oasis.opendocument.image|OpenDocument Image#alf#application/vnd.oasis.opendocument.presentation|OpenDocument Presentation#alf#application/vnd.oasis.opendocument.presentation-template|OpenDocument Presentation Template#alf#application/vnd.oasis.opendocument.spreadsheet|OpenDocument Spreadsheet#alf#application/vnd.oasis.opendocument.spreadsheet-template|OpenDocument Spreadsheet Template#alf#application/vnd.oasis.opendocument.text|OpenDocument Text (OpenOffice 2.0)#alf#application/vnd.oasis.opendocument.text-master|OpenDocument Master Document#alf#application/vnd.oasis.opendocument.text-template|OpenDocument Text Template#alf#application/vnd.oasis.opendocument.text-web|HTML Document Template#alf#application/vnd.openxmlformats-officedocument.presentationml.presentation|Microsoft PowerPoint 2007#alf#application/vnd.openxmlformats-officedocument.presentationml.slide|Microsoft PowerPoint 2007 slide#alf#application/vnd.openxmlformats-officedocument.presentationml.slideshow|Microsoft PowerPoint 2007 slide show#alf#application/vnd.openxmlformats-officedocument.presentationml.template|Microsoft PowerPoint 2007 template#alf#application/vnd.openxmlformats-officedocument.spreadsheetml.sheet|Microsoft Excel 2007#alf#application/vnd.openxmlformats-officedocument.spreadsheetml.template|Microsoft Excel template 2007#alf#application/vnd.openxmlformats-officedocument.wordprocessingml.document|Microsoft Word 2007#alf#application/vnd.openxmlformats-officedocument.wordprocessingml.template|Microsoft Word 2007 template#alf#application/vnd.stardivision.calc|StarCalc 5.x#alf#application/vnd.stardivision.chart|StaChart 5.x#alf#application/vnd.stardivision.draw|StarDraw 5.x#alf#application/vnd.stardivision.impress|StarImpress 5.x#alf#application/vnd.stardivision.impress-packed|StarImpress Packed 5.x#alf#application/vnd.stardivision.math|StarMath 5.x#alf#application/vnd.stardivision.writer|StarWriter 5.x#alf#application/vnd.stardivision.writer-global|StarWriter 5.x global#alf#application/vnd.sun.xml.calc|OpenOffice 1.0/StarOffice6.0 Calc 6.0#alf#application/vnd.sun.xml.calc.template|OpenOffice 1.0/StarOffice6.0 Calc 6.0 Template#alf#application/vnd.sun.xml.draw|OpenOffice 1.0/StarOffice6.0 Draw 6.0#alf#application/vnd.sun.xml.impress|OpenOffice 1.0/StarOffice6.0 Impress 6.0#alf#application/vnd.sun.xml.impress.template|OpenOffice 1.0/StarOffice6.0 Impress 6.0 Template#alf#application/vnd.sun.xml.writer|OpenOffice 1.0/StarOffice6.0 Writer 6.0#alf#application/vnd.sun.xml.writer.template|OpenOffice 1.0/StarOffice6.0 Writer 6.0 Template#alf#application/vnd.visio|Microsoft Visio#alf#application/vnd.visio2013|Microsoft Visio 2013#alf#application/wordperfect|WordPerfect#alf#application/x-compress|Z Compress#alf#application/x-dosexec|Binary File#alf#application/x-fla|Flash Source#alf#application/x-gtar|GZIP Tarball#alf#application/x-gzip|GZIP#alf#application/x-indesign|Adobe InDesign Document#alf#application/x-javascript|JavaScript#alf#application/x-latex|LaTeX#alf#application/x-rar-compressed|RAR Archive#alf#application/x-sh|Shell Script#alf#application/x-shockwave-flash|Shockwave Flash#alf#application/x-tar|Tarball#alf#application/x-tex|Tex#alf#application/x-texinfo|Tex Info#alf#application/x-troff-man|Man Page#alf#application/x-zip|Adobe Flex Project File#alf#application/xhtml+xml|XHTML#alf#application/zip|ZIP#alf#audio/basic|Basic Audio#alf#audio/mp4|MPEG4 Audio#alf#audio/mpeg|MPEG Audio#alf#audio/ogg|Ogg Audio#alf#audio/vnd.adobe.soundbooth|Adobe SoundBooth#alf#audio/vorbis|Ogg Vorbis Audio#alf#audio/x-aiff|AIFF Audio#alf#audio/x-flac|FLAC Audio#alf#audio/x-ms-wma|MS WMA Streaming Audio#alf#audio/x-wav|WAV Audio#alf#image/bmp|Bitmap Image#alf#image/cgm|CGM Image#alf#image/gif|GIF Image#alf#image/ief|IEF Image#alf#image/jp2|JPEG 2000 Image#alf#image/jpeg|JPEG Image#alf#image/png|PNG Image#alf#image/svg+xml|Scalable Vector Graphics Image#alf#image/tiff|TIFF Image#alf#image/vnd.adobe.photoshop|Adobe Photoshop#alf#image/vnd.adobe.premiere|Adobe Premiere#alf#image/vnd.dwg|AutoCAD Drawing#alf#image/x-cmu-raster|Raster Image#alf#image/x-dwt|AutoCAD Template#alf#image/x-portable-anymap|Anymap Image#alf#image/x-portable-bitmap|Portable Bitmap#alf#image/x-portable-graymap|Greymap Image#alf#image/x-portable-pixmap|Pixmap Image#alf#image/x-raw-adobe|Adobe Digital Negative Image#alf#image/x-raw-canon|Canon RAW Image#alf#image/x-raw-fuji|Fuji RAW Image#alf#image/x-raw-hasselblad|Hasselblad RAW Image#alf#image/x-raw-kodak|Kodak RAW Image#alf#image/x-raw-leica|Leica RAW Image#alf#image/x-raw-minolta|Minolta RAW Image#alf#image/x-raw-nikon|Nikon RAW Image#alf#image/x-raw-olympus|Olympus RAW Image#alf#image/x-raw-panasonic|Panasonic RAW Image#alf#image/x-raw-pentax|Pentax RAW Image#alf#image/x-raw-red|RED RAW Image#alf#image/x-raw-sigma|Sigma RAW Image#alf#image/x-raw-sony|Sony RAW Image#alf#image/x-rgb|RGB Image#alf#image/x-xbitmap|XBitmap Image#alf#image/x-xpixmap|XPixmap Image#alf#image/x-xwindowdump|XWindow Dump#alf#message/rfc822|EMail#alf#text/calendar|iCalendar File#alf#text/css|Style Sheet#alf#text/csv|Comma Separated Values (CSV)#alf#text/html|HTML#alf#text/mediawiki|MediaWiki Markup#alf#text/plain|Plain Text#alf#text/richtext|Rich Text#alf#text/sgml|SGML (Human Readable)#alf#text/tab-separated-values|Tab Separated Values#alf#text/x-java-source|Java Source File#alf#text/x-jsp|Java Server Page#alf#text/x-markdown|Markdown#alf#text/xml|XML#alf#video/3gpp|3G Video#alf#video/3gpp2|3G2 Video#alf#video/mp2t|MPEG Transport Stream#alf#video/mp4|MPEG4 Video#alf#video/mpeg|MPEG Video#alf#video/mpeg2|MPEG2 Video#alf#video/ogg|Ogg Video#alf#video/quicktime|Quicktime Video#alf#video/webm|WebM Video#alf#video/x-flv|Flash Video#alf#video/x-m4v|MPEG4 Video (m4v)#alf#video/x-ms-asf|MS ASF Streaming Video#alf#video/x-ms-wmv|MS WMV Streaming Video#alf#video/x-msvideo|MS Video#alf#video/x-rad-screenplay|RAD Screen Display#alf#video/x-sgi-movie|SGI Video#alf#x-world/x-vrml|VRML, optionSeparator=#alf#})),
      assoc_destination-folder: field(id=assoc_destination-folder name=assoc_destination-folder configName=destination-folder type=association value= label=Destination description=destination-folder help=null helpEncodeHtml=true dataKeyName=destination-folder dataType=cm:cmobject endpointDirection=TARGET disabled=false mandatory=true repeating=false transitory=false indexTokenisationMode=null control(template=/org/alfresco/components/form/controls/association.ftl params={}))
   }
}

Why ???

It's the same Form !!!

Thank You !!!
Sébastien Brière
4 REPLIES 4

sebbri
Champ in-the-making
Champ in-the-making
Other info :

It seems that the header of the query is not the same (X- Requested- Width).

With Chrome :
Accept:*/*
Accept-Encoding:gzip,deflate
Accept-Language:fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4
Alfresco-CSRFToken:0JOZ5uZiRocaEcJymeGdMk4CZoDmaPpkHMYrN3DtkcQ=
Connection:keep-alive
Content-Type:application/x-www-form-urlencoded
Cookie:JSESSIONID=BD287DFDEA5CA3DE29493392F062FB94; Alfresco-CSRFToken=0JOZ5uZiRocaEcJymeGdMk4CZoDmaPpkHMYrN3DtkcQ%3d; MOD_AUTH_CAS_S=6aea19029b88719715a34252eb514b29
Host:alfresco-dev.ville-selestat.fr
Referer:https://alfresco-dev.ville-selestat.fr/share/page/repository
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36
X-Requested-With:application/json

With Firefox :

Accept:*/*
Accept-Encoding:gzip, deflate
Accept-Language:fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
Alfresco-CSRFToken:0iPVn7GpocPQyT7zN6Nt2EQspMTCp5onLIVGZUmExI0=
Content-Type:application/x-www-form-urlencoded
Cookie:JSESSIONID=808D56E35E9F981A5DB7C255620D2940; Alfresco-CSRFToken=0iPVn7GpocPQyT7zN6Nt2EQspMTCp5onLIVGZUmExI0%3d;MOD_AUTH_CAS_S=97ad268c20312ac8df364caf992922ec; MOD_AUTH_CAS_S=3b6882c1dcd95fcc865b8d93626eeaabDNT1
Host:alfresco-dev.ville-selestat.fr
Referer:https://alfresco-dev.ville-selestat.fr/share/page/repository
User-Agent:Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0
X-Requested-With:XMLHttpRequest
Sébastien Brière

sebbri
Champ in-the-making
Champ in-the-making
I would be surprised that for the popularity of Firefox , no one encountered this problem !

Thx
Sébastien Brière

sebbri
Champ in-the-making
Champ in-the-making
I add that I have this problem with all forms in Share . Whenever I 'm supposed to get a drop down menu , I get a text field
Sébastien Brière

sebbri
Champ in-the-making
Champ in-the-making
It seems that this problem is resolved with the 201606 EA which I have tested. I'll wait it passes to GA.
Sébastien Brière