https://bugzilla.redhat.com/show_bug.cgi?id=1278154
Bug ID: 1278154 Summary: Review Request: nodejs-csrf - Primary logic behind csrf tokens Product: Fedora Version: rawhide Component: Package Review Severity: medium Priority: medium Assignee: nobody@fedoraproject.org Reporter: jsmith.fedora@gmail.com QA Contact: extras-qa@fedoraproject.org CC: package-review@lists.fedoraproject.org
Spec URL: https://jsmith.fedorapeople.org/Packaging/nodejs-csrf/nodejs-csrf.spec SRPM URL: https://jsmith.fedorapeople.org/Packaging/nodejs-csrf/nodejs-csrf-3.0.0-1.fc... Description: Primary logic behind csrf tokens Fedora Account System Username: jsmith
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
Jared Smith jsmith.fedora@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |956806 (nodejs-reviews), | |1269538 (IoT)
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=956806 [Bug 956806] Node.js Review Tracker https://bugzilla.redhat.com/show_bug.cgi?id=1269538 [Bug 1269538] Tracker for IoT on Fedora
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
Jared Smith jsmith.fedora@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |1278150
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1278150 [Bug 1278150] Review Request: nodejs-rndm - Random string generator
https://bugzilla.redhat.com/show_bug.cgi?id=1278154 Bug 1278154 depends on bug 1278150, which changed state.
Bug 1278150 Summary: Review Request: nodejs-rndm - Random string generator https://bugzilla.redhat.com/show_bug.cgi?id=1278150
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Resolution|--- |RAWHIDE
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
Tom Hughes tom@compton.nu changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |tom@compton.nu Assignee|nobody@fedoraproject.org |tom@compton.nu Flags| |fedora-review?
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
Tom Hughes tom@compton.nu changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |1278157
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1278157 [Bug 1278157] Review Request: nodejs-uid-safe - URL and cookie safe UIDs
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
--- Comment #1 from Tom Hughes tom@compton.nu --- Package Review ==============
Legend: [x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated [ ] = Manual review needed
Issues: ======= - Package installs properly. Note: Installation errors (see attachment) See: https://fedoraproject.org/wiki/Packaging:Guidelines
===== MUST items =====
Generic: [x]: Package is licensed with an open-source compatible license and meets other legal requirements as defined in the legal section of Packaging Guidelines. [x]: License field in the package spec file matches the actual license. Note: Checking patched sources after %prep for licenses. Licenses found: "MIT/X11 (BSD like)", "Unknown or generated". 5 files have unknown license. Detailed output of licensecheck in /home/tom/nodejs- csrf/licensecheck.txt [x]: Package contains no bundled libraries without FPC exception. [x]: Changelog in prescribed format. [x]: Sources contain only permissible code or content. [-]: Package contains desktop file if it is a GUI application. [-]: Development files must be in a -devel package [x]: Package uses nothing in %doc for runtime. [x]: Package consistently uses macros (instead of hard-coded directory names). [x]: Package is named according to the Package Naming Guidelines. [x]: Package does not generate any conflict. [x]: Package obeys FHS, except libexecdir and /usr/target. [-]: If the package is a rename of another package, proper Obsoletes and Provides are present. [x]: Requires correct, justified where necessary. [x]: Spec file is legible and written in American English. [-]: Package contains systemd file(s) if in need. [x]: Package is not known to require an ExcludeArch tag. [-]: Large documentation must go in a -doc subpackage. Large could be size (~1MB) or number of files. Note: Documentation size is 10240 bytes in 2 files. [x]: Package complies to the Packaging Guidelines [x]: Package successfully compiles and builds into binary rpms on at least one supported primary architecture. [x]: Rpmlint is run on all rpms the build produces. Note: There are rpmlint messages (see attachment). [x]: If (and only if) the source package includes the text of the license(s) in its own file, then that file, containing the text of the license(s) for the package is included in %license. [x]: Package requires other packages for directories it uses. [x]: Package must own all directories that it creates. [x]: Package does not own files or directories owned by other packages. [x]: All build dependencies are listed in BuildRequires, except for any that are listed in the exceptions section of Packaging Guidelines. [x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT [x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the beginning of %install. [x]: Macros in Summary, %description expandable at SRPM build time. [x]: Dist tag is present. [x]: Package does not contain duplicates in %files. [x]: Permissions on files are set properly. [x]: Package use %makeinstall only when make install DESTDIR=... doesn't work. [x]: Package is named using only allowed ASCII characters. [x]: Package does not use a name that already exists. [x]: Package is not relocatable. [x]: Sources used to build the package match the upstream source, as provided in the spec URL. [x]: Spec file name must match the spec package %{name}, in the format %{name}.spec. [x]: File names are valid UTF-8. [x]: Packages must not store files under /srv, /opt or /usr/local
===== SHOULD items =====
Generic: [x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file [-]: If the source package does not include license text(s) as a separate file from upstream, the packager SHOULD query upstream to include it. [!]: Final provides and requires are sane (see attachments). [?]: Package functions as described. [x]: Latest version is packaged. [x]: Package does not include license text files separate from upstream. [x]: SourceX tarball generation or download is documented. Note: Package contains tarball without URL, check comments [-]: Description and summary sections in the package spec file contains translations for supported Non-English languages, if available. [x]: %check is present and all tests pass. [x]: Packages should try to preserve timestamps of original installed files. [x]: Sources can be downloaded from URI in Source: tag [x]: Reviewer should test that the package builds in mock. [x]: Buildroot is not present [x]: Package has no %clean section with rm -rf %{buildroot} (or $RPM_BUILD_ROOT) [x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin. [x]: SourceX is a working URL. [x]: Package should compile and build into binary rpms on all supported architectures. [x]: Spec use %global instead of %define unless justified.
===== EXTRA items =====
Generic: [!]: Rpmlint is run on all installed packages. Note: Mock build failed See: http://fedoraproject.org/wiki/Packaging/Guidelines#rpmlint
Installation errors ------------------- INFO: mock.py version 1.2.14 starting (python version = 3.4.3)... Start: init plugins INFO: selinux disabled Finish: init plugins Start: run Start: chroot init INFO: calling preinit hooks INFO: enabled root cache INFO: enabled dnf cache Start: cleaning dnf metadata Finish: cleaning dnf metadata INFO: enabled ccache Mock Version: 1.2.14 INFO: Mock Version: 1.2.14 Finish: chroot init INFO: installing package(s): /home/tom/nodejs-csrf/results/nodejs-csrf-3.0.0-3.fc24.noarch.rpm ERROR: Command failed. See logs for output. # /usr/bin/dnf --installroot /var/lib/mock/compton-rawhide-x86_64/root/ --releasever 24 --setopt=deltarpm=false install /home/tom/nodejs-csrf/results/nodejs-csrf-3.0.0-3.fc24.noarch.rpm
Rpmlint ------- Checking: nodejs-csrf-3.0.0-3.fc24.noarch.rpm nodejs-csrf-3.0.0-3.fc24.src.rpm nodejs-csrf.noarch: W: only-non-binary-in-usr-lib nodejs-csrf.noarch: W: dangling-symlink /usr/lib/node_modules/csrf/node_modules/uid-safe /usr/lib/node_modules/uid-safe nodejs-csrf.noarch: W: dangling-symlink /usr/lib/node_modules/csrf/node_modules/base64-url /usr/lib/node_modules/base64-url nodejs-csrf.noarch: W: dangling-symlink /usr/lib/node_modules/csrf/node_modules/rndm /usr/lib/node_modules/rndm nodejs-csrf.noarch: W: dangling-symlink /usr/lib/node_modules/csrf/node_modules/scmp /usr/lib/node_modules/scmp nodejs-csrf.src: W: invalid-url Source1: tests-3.0.0.tar.bz2 2 packages and 0 specfiles checked; 0 errors, 6 warnings.
Requires -------- nodejs-csrf (rpmlib, GLIBC filtered): nodejs nodejs(engine) npm(base64-url) npm(rndm) npm(scmp) npm(uid-safe)
Provides -------- nodejs-csrf: nodejs-csrf npm(csrf)
Source checksums ---------------- https://registry.npmjs.org/csrf/-/csrf-3.0.0.tgz : CHECKSUM(SHA256) this package : 5b143da83a7edbe6e2f4a600b0e021200dbcd840523c454dca9d272402030d27 CHECKSUM(SHA256) upstream package : 5b143da83a7edbe6e2f4a600b0e021200dbcd840523c454dca9d272402030d27
Generated by fedora-review 0.6.0 (3c5c9d7) last change: 2015-05-20 Command line :/usr/bin/fedora-review -m compton-rawhide-x86_64 -rn /home/tom/rpm/SRPMS/nodejs-csrf-3.0.0-3.fc23.src.rpm Buildroot used: compton-rawhide-x86_64 Active plugins: Generic, Shell-api Disabled plugins: Java, C/C++, Python, fonts, SugarActivity, Ocaml, Perl, Haskell, R, PHP, Ruby Disabled flags: EXARCH, DISTTAG, EPEL5, BATCH, EPEL6
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
--- Comment #2 from Tom Hughes tom@compton.nu --- Spec file in srpm is missing some BRs.
You should probably also add a BR on base64-url as it is required and I assume things are only working because one of the other BRs is dragging it in.
Needs a fixdep for scmp.
https://bugzilla.redhat.com/show_bug.cgi?id=1278154 Bug 1278154 depends on bug 1278157, which changed state.
Bug 1278157 Summary: Review Request: nodejs-uid-safe - URL and cookie safe UIDs https://bugzilla.redhat.com/show_bug.cgi?id=1278157
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution|--- |RAWHIDE
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
Jared Smith jsmith.fedora@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |1352321
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1352321 [Bug 1352321] Review Request: nodejs-tsscmp - Timing safe string compare using double HMAC
https://bugzilla.redhat.com/show_bug.cgi?id=1278154 Bug 1278154 depends on bug 1352321, which changed state.
Bug 1352321 Summary: Review Request: nodejs-tsscmp - Timing safe string compare using double HMAC https://bugzilla.redhat.com/show_bug.cgi?id=1352321
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution|--- |RAWHIDE
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
Peter Robinson pbrobinson@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1387531 (Node-RED)
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1387531 [Bug 1387531] Package tracker for supporting Node-RED
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
Peter Robinson pbrobinson@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks|1269538 (IoT) |
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1269538 [Bug 1269538] Tracker for IoT on Fedora
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
Robert-André Mauchin zebob.m@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zebob.m@gmail.com Depends On| |1370839
--- Comment #3 from Robert-André Mauchin zebob.m@gmail.com --- - Please bump to 3.0.6.
- Package now depends on nodejs-tsscmp instead of nodejs-scmp:
BuildRequires: nodejs-packaging
%if 0%{?enable_tests} BuildRequires: mocha BuildRequires: npm(bluebird) BuildRequires: npm(rndm) BuildRequires: npm(tsscmp) BuildRequires: npm(uid-safe) %endif
- Package requires an update of npm(uid-safe) >= 2.1.4 (bug #1370839)
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1370839 [Bug 1370839] nodejs-uid-safe-2.1.4 is available
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
--- Comment #4 from Jared Smith jsmith.fedora@gmail.com --- Spec URL: https://jsmith.fedorapeople.org/Packaging/nodejs-csrf/nodejs-csrf.spec SRPM URL: https://jsmith.fedorapeople.org/Packaging/nodejs-csrf/nodejs-csrf-3.0.6-1.fc...
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
Robert-André Mauchin zebob.m@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |POST Flags|fedora-review? |fedora-review+
--- Comment #5 from Robert-André Mauchin zebob.m@gmail.com --- All good, except:
mixed-use-of-spaces-and-tabs (spaces: line 30, tab: line 6)
Package accepted.
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
--- Comment #6 from Tom Hughes tom@compton.nu --- Hang on - this was assigned to me!
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
Tom Hughes tom@compton.nu changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|POST |ASSIGNED Flags|fedora-review+ |fedora-review?
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
--- Comment #7 from Tom Hughes tom@compton.nu --- Package Review ==============
Legend: [x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated [ ] = Manual review needed
Issues: ======= - Package installs properly. Note: Installation errors (see attachment) See: https://fedoraproject.org/wiki/Packaging:Guidelines
===== MUST items =====
Generic: [x]: Package is licensed with an open-source compatible license and meets other legal requirements as defined in the legal section of Packaging Guidelines. [x]: License field in the package spec file matches the actual license. Note: Checking patched sources after %prep for licenses. Licenses found: "MIT/X11 (BSD like)", "Unknown or generated". 6 files have unknown license. Detailed output of licensecheck in /home/tom/1278154 -nodejs-csrf/licensecheck.txt [x]: Package contains no bundled libraries without FPC exception. [x]: Changelog in prescribed format. [x]: Sources contain only permissible code or content. [-]: Package contains desktop file if it is a GUI application. [-]: Development files must be in a -devel package [x]: Package uses nothing in %doc for runtime. [x]: Package consistently uses macros (instead of hard-coded directory names). [x]: Package is named according to the Package Naming Guidelines. [x]: Package does not generate any conflict. [x]: Package obeys FHS, except libexecdir and /usr/target. [-]: If the package is a rename of another package, proper Obsoletes and Provides are present. [!]: Requires correct, justified where necessary. [x]: Spec file is legible and written in American English. [-]: Package contains systemd file(s) if in need. [x]: Package is not known to require an ExcludeArch tag. [-]: Large documentation must go in a -doc subpackage. Large could be size (~1MB) or number of files. Note: Documentation size is 10240 bytes in 2 files. [x]: Package complies to the Packaging Guidelines [x]: Package successfully compiles and builds into binary rpms on at least one supported primary architecture. [x]: Rpmlint is run on all rpms the build produces. Note: There are rpmlint messages (see attachment). [x]: If (and only if) the source package includes the text of the license(s) in its own file, then that file, containing the text of the license(s) for the package is included in %license. [x]: Package requires other packages for directories it uses. [x]: Package must own all directories that it creates. [x]: Package does not own files or directories owned by other packages. [x]: All build dependencies are listed in BuildRequires, except for any that are listed in the exceptions section of Packaging Guidelines. [x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT [x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the beginning of %install. [x]: Macros in Summary, %description expandable at SRPM build time. [x]: Dist tag is present. [x]: Package does not contain duplicates in %files. [x]: Permissions on files are set properly. [x]: Package use %makeinstall only when make install DESTDIR=... doesn't work. [x]: Package is named using only allowed ASCII characters. [x]: Package does not use a name that already exists. [x]: Package is not relocatable. [x]: Sources used to build the package match the upstream source, as provided in the spec URL. [x]: Spec file name must match the spec package %{name}, in the format %{name}.spec. [x]: File names are valid UTF-8. [x]: Packages must not store files under /srv, /opt or /usr/local
===== SHOULD items =====
Generic: [-]: If the source package does not include license text(s) as a separate file from upstream, the packager SHOULD query upstream to include it. [!]: Final provides and requires are sane (see attachments). [?]: Package functions as described. [x]: Latest version is packaged. [x]: Package does not include license text files separate from upstream. [x]: SourceX tarball generation or download is documented. Note: Package contains tarball without URL, check comments [-]: Description and summary sections in the package spec file contains translations for supported Non-English languages, if available. [x]: %check is present and all tests pass. [x]: Packages should try to preserve timestamps of original installed files. [x]: Reviewer should test that the package builds in mock. [x]: Buildroot is not present [x]: Package has no %clean section with rm -rf %{buildroot} (or $RPM_BUILD_ROOT) [x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin. [x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file [x]: Sources can be downloaded from URI in Source: tag [x]: SourceX is a working URL. [x]: Package should compile and build into binary rpms on all supported architectures. [x]: Spec use %global instead of %define unless justified.
===== EXTRA items =====
Generic: [!]: Rpmlint is run on all installed packages. Note: Mock build failed See: http://fedoraproject.org/wiki/Packaging/Guidelines#rpmlint [x]: Spec file according to URL is the same as in SRPM.
Installation errors ------------------- INFO: mock.py version 1.4.6 starting (python version = 3.6.2)... Start: init plugins INFO: selinux disabled Finish: init plugins Start: run Start: chroot init INFO: calling preinit hooks INFO: enabled root cache INFO: enabled dnf cache Start: cleaning dnf metadata Finish: cleaning dnf metadata INFO: enabled ccache INFO: enabled HW Info plugin Mock Version: 1.4.6 INFO: Mock Version: 1.4.6 Finish: chroot init INFO: installing package(s): /home/tom/1278154-nodejs-csrf/results/nodejs-csrf-3.0.6-1.fc28.noarch.rpm ERROR: Command failed: # /usr/bin/dnf --installroot /var/lib/mock/compton-rawhide-x86_64/root/ --releasever 28 --disableplugin=local --setopt=deltarpm=False install /home/tom/1278154-nodejs-csrf/results/nodejs-csrf-3.0.6-1.fc28.noarch.rpm
Rpmlint ------- Checking: nodejs-csrf-3.0.6-1.fc28.noarch.rpm nodejs-csrf-3.0.6-1.fc28.src.rpm nodejs-csrf.noarch: W: only-non-binary-in-usr-lib nodejs-csrf.noarch: W: dangling-symlink /usr/lib/node_modules/csrf/node_modules/rndm /usr/lib/node_modules/rndm nodejs-csrf.noarch: W: dangling-symlink /usr/lib/node_modules/csrf/node_modules/scmp /usr/lib/node_modules/scmp nodejs-csrf.noarch: W: dangling-symlink /usr/lib/node_modules/csrf/node_modules/tsscmp /usr/lib/node_modules/tsscmp nodejs-csrf.noarch: W: dangling-symlink /usr/lib/node_modules/csrf/node_modules/uid-safe /usr/lib/node_modules/uid-safe nodejs-csrf.src:30: W: mixed-use-of-spaces-and-tabs (spaces: line 30, tab: line 6) nodejs-csrf.src: W: invalid-url Source1: tests-3.0.6.tar.bz2 2 packages and 0 specfiles checked; 0 errors, 7 warnings.
Requires -------- nodejs-csrf (rpmlib, GLIBC filtered): nodejs(engine) npm(rndm) npm(scmp) npm(tsscmp) npm(uid-safe)
Provides -------- nodejs-csrf: nodejs-csrf npm(csrf)
Source checksums ---------------- https://registry.npmjs.org/csrf/-/csrf-3.0.6.tgz : CHECKSUM(SHA256) this package : 5aa732e8d67d45a91e294cca36c9a470638406545ae6c08aef3b32749bab7c02 CHECKSUM(SHA256) upstream package : 5aa732e8d67d45a91e294cca36c9a470638406545ae6c08aef3b32749bab7c02
Generated by fedora-review 0.6.1 (f03e4e7) last change: 2016-05-02 Command line :/usr/bin/fedora-review -m compton-rawhide-x86_64 -b 1278154 Buildroot used: compton-rawhide-x86_64 Active plugins: Generic, Shell-api Disabled plugins: Java, C/C++, Python, fonts, SugarActivity, Ocaml, Perl, Haskell, R, PHP Disabled flags: EXARCH, DISTTAG, EPEL5, BATCH, EPEL6
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
--- Comment #8 from Tom Hughes tom@compton.nu --- In addition to the rpmlint warning previously reported there are two dependency issues.
Firstly it has a dependency on npm(scmp) added by fixdep presumably in response to my previous review, but that is no longer needed in the new version.
Second it has a hard dependency on npm(uid-safe) = 2.1.4 but rawhide has 2.1.5 so that will need relaxing.
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
--- Comment #9 from Jared Smith jsmith.fedora@gmail.com --- Spec URL: https://jsmith.fedorapeople.org/Packaging/nodejs-csrf/nodejs-csrf.spec SRPM URL: https://jsmith.fedorapeople.org/Packaging/nodejs-csrf/nodejs-csrf-3.0.6-2.fc...
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
Tom Hughes tom@compton.nu changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|fedora-review? |fedora-review+
--- Comment #10 from Tom Hughes tom@compton.nu --- Looks good now.
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
--- Comment #12 from Gwyn Ciesla limburgher@gmail.com --- (fedrepo-req-admin): The Pagure repository was created at https://src.fedoraproject.org/rpms/nodejs-csrf
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
Jared Smith jsmith.fedora@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED
--- Comment #11 from Jared Smith jsmith.fedora@gmail.com --- Requested package in ticket https://pagure.io/releng/fedora-scm-requests/issue/2046
https://bugzilla.redhat.com/show_bug.cgi?id=1278154
Jared Smith jsmith.fedora@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |CLOSED Resolution|--- |RAWHIDE Last Closed| |2017-10-09 15:48:28
--- Comment #13 from Jared Smith jsmith.fedora@gmail.com --- In rawhide, closing bug
package-review@lists.fedoraproject.org